View previous topic :: View next topic
|
Author |
Message |
sakthi_ksv
New User
Joined: 20 Jul 2006 Posts: 48 Location: Chennai
|
|
|
|
Hi,
While trying to get a file to mainframe dataset from a FTP server and if the file is not there, what will be the return code of the particular step. For example in the following code
Code: |
//STEP1 EXEC PGM=FTP,REGION=2M,PARM='(EXIT'
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//INPUT DD *
10.239.30.76
LOGINID
PASSWORD
CD MYFOLDR
LOCSITE LRECL=436
LOCSITE RECFM=VB
LOCSITE PRI=10
LOCSITE SEC=5
GET NITEST.TXT 'XIND81.SAKTHI.NITEST'
QUIT
|
what will be the return code of this step, if the file NITEST.TXT is not there in the folder.
Thanks in advance,
Sakthi. |
|
Back to top |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
|
|
Try running the job using this instead:
Code: |
GET THISISAFILETHATISNOTHERE.TXT 'XIND81.SAKTHI.NOFILE'
|
It will show you the return code and no one will have to look it up for you. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
|