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).
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
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.