by Galbi » Fri Oct 08, 2010 7:09 pm
The problem solution it’s a IEBGENER.
i builded a cobol program, inside I wrote the jcl for the FTP transfer to the server of the file.
When the program finish the elaboration, the file created, with the jcl, it’s a input to a IEBGENER
//SYSUT1 DD dsn=file.name.with.jcl,disp=shr
The SYSUT2 is dummy, but, and this is solution key, inside the job there is a SYSOUT card with the parameter who indicate the execution class and the initiator reader
//SYSOUT DD SYSOUT=(B,INIRDR)
At the end of the job the new job start
The job example:
//*--------------------------------------------------------------------*
//*--- ESECUZIONE DELL'FTP
//*--------------------------------------------------------------------*
//FTP EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=file.name.with.jcl,DISP=SHR
//SYSUT2 DD SYSOUT=(X,INTRDR)
A consideration, inside the cobol program I used the dynamic allocation and managing of the files, the same file who I want to transfer to server.
Bye bye