|
View previous topic :: View next topic
|
| Author |
Message |
shell100
New User
Joined: 14 Apr 2006 Posts: 25 Location: Banglore,India
|
|
|
|
Hi Guys,
I am looking for the reason of below problem. Hope i could get help here.
i have job with first step as FTP step which is picking up file(x.y.z(+1)) from another servor in GDG format.
2nd step execute program to process this file where i have used DSN as x.y.z(+1),
This gave error in Jscan as file is not catalogued, as expected.
I changed DSN as x.y.z(+0),it ran fine but when i checked logs it picked up last version of DSN
instead of taking the one which was done FTP.
As per my understanding it should have picked up x.y.z(+0)(FTP one) in 2nd step rather than x.y.z(-1).
Thanks,
shell |
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
| No, +1 was right, look to the FTP to have not created the file, FTP failed? |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
If you post the jcl and the message(s) you received, we will be better able to help. |
|
| Back to top |
|
 |
shell100
New User
Joined: 14 Apr 2006 Posts: 25 Location: Banglore,India
|
|
|
|
This is what i got when i submit it with (+1).
IEF472I JOBNAME RMS@30 CA07RMS - COMPLETION CODE - SYSTEM=000 USER=0064 REASON=00000000
ABC@30 is proc which run on jobtrac before it submit the job to verify the job. This got error initially as i said due to (+1) version of file used in 2nd step.
I created empty version of file & it ran file. That reason i got.
But now when i am using (+0) version why it is taking last day FTP file. FTP was successful that i am sure of.
Here is the JCL i am using:
| Code: |
//STEP1 EXEC PGM=FTP, /* FTP UTI
// COND=(1,LT,SETCOND), /* RUN IF
// PARM='(EXIT' /* FTP PAR*
//INPUT DD DSN=ABC.PARMLIB(XXXXX),
//* =====> FTP PARM CARD WITH USER ID, PASSWORD,
// DISP=SHR
//*
// DD DSN=ABC.PARMLIB(YYYYY),
//* =====> FTP PARM CARD WITH FTP LOCATION
// DISP=SHR
|
YYYYY=
GET AAA.TXT 'X.Y.Z(+1)' (REPLACE
| Code: |
//STEP2 EXEC PGM=PROGRAM,
//*
//INPUT DD DSN=X.Y.Z(+0),
// DISP=SHR
//OUTPUT DD DSN=C.B.Y(+1),
// DISP=(NEW,CATLG,DELETE),
// SPACE=(80,(800,400),RLSE),
// AVGREC=K,
// LRECL=80,
// DATACLAS=DATAF
|
|
|
| Back to top |
|
 |
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Again?
| William Thompson wrote: |
| No, +1 was right, look to the FTP to have not created the file, FTP failed? |
|
|
| Back to top |
|
 |
shell100
New User
Joined: 14 Apr 2006 Posts: 25 Location: Banglore,India
|
|
|
|
With (+1) i got above error message which i posted USER=0064.
Job couldn't even start.
I got what you are trying to say.
It should have (+1) version. I got error because ABC@30 got message "DSN not catalogued" & thats why when i created one empty file it ran fine & took correct file.
with (+0) it will take (-1) version ....i got that also.
Thanks a lot!!!! |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I don't get the logic behind that code. Why wouldn't it have been coded:
| Code: |
//STEP1 EXEC PGM=FTP,
// COND=(1,LT,SETCOND),
// PARM='(EXIT'
//INPUT DD DSN=ABC.PARMLIB(XXXXX),DISP=SHR
// DD DSN=ABC.PARMLIB(YYYYY),DISP=SHR
//OUTPUT DD SYSOUT=*
//OUTDSN DD DSN=DSN=X.Y.Z(+1),DISP=(,CATLG,DELETE),....
//*
//STEP2 EXEC PGM=PROGRAM
//INPUT DD DSN=X.Y.Z(+1),
// DISP=SHR
//OUTPUT DD DSN=C.B.Y(+1),
// DISP=(,CATLG,DELETE),
// SPACE=(80,(800,400),RLSE),
// AVGREC=K,
// LRECL=80,
// DATACLAS=DATAF
|
where YYYYY =
GET AAA.TXT //DD:OUTDSN |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|