z/OS Communications Server: IP User's Guide and Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Submitting requests without input and output data sets

z/OS Communications Server: IP User's Guide and Commands
SC27-3662-00

Figure 1 shows an easier way to submit a batch job, because you can avoid referring to data sets for input and output.
Figure 1. JCL to run FTP in batch without using data sets
//USERIDX  JOB USERID,MSGLEVEL=(1,1),NOTIFY=USERID,MSGCLASS=H,TIME=9
//FTP   EXEC PGM=FTP,REGION=4096K
//INPUT DD *
nodeid
userid
password
CD
DIR
GET hostfile.name locfile.name
QUIT
Figure 2 shows step 1 creating a new GDS in batch and FTP getting the data set.
Figure 2. Job to create a new GDS in batch
//USERIDX  JOB USERID,MSGLEVEL=(1,1),NOTIFY=USERID,MSGCLASS=H,TIME=9
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSIN    DD DUMMY
//SYSUT1   DD DSN=USER31.SOURCE.DATA,DISP=SHR     (MYGDG.G0008V00)
//SYSUT2   DD DSN=MYGDG(+1),DISP=(,CATLG),
              UNIT=SYSDA, SPACE=(TRK,(1,1)),DCB=(MODEL)
//FTP   EXEC PGM=FTP,REGION=4096K
//INPUT DD *
nodeid
userid
password
CD /u/joe
DIR
GET MYGDG(0) A.DATA.SET
QUIT
//SYSPRINT DD SYSOUT=*
Note: All the GDG allocation in batch must be complete before the start of FTP.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2013
This information center is Built on Eclipse™ ( www.eclipse.org ).