IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

File version problem with FTP


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
shell100

New User


Joined: 14 Apr 2006
Posts: 25
Location: Banglore,India

PostPosted: Sun Feb 25, 2007 4:20 am
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Feb 25, 2007 4:32 am
Reply with quote

No, +1 was right, look to the FTP to have not created the file, FTP failed?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Feb 25, 2007 4:52 am
Reply with quote

Hello,

If you post the jcl and the message(s) you received, we will be better able to help.
Back to top
View user's profile Send private message
shell100

New User


Joined: 14 Apr 2006
Posts: 25
Location: Banglore,India

PostPosted: Sun Feb 25, 2007 5:54 am
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Feb 25, 2007 6:03 am
Reply with quote

Again?
William Thompson wrote:
No, +1 was right, look to the FTP to have not created the file, FTP failed?
Back to top
View user's profile Send private message
shell100

New User


Joined: 14 Apr 2006
Posts: 25
Location: Banglore,India

PostPosted: Sun Feb 25, 2007 6:15 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sun Feb 25, 2007 9:52 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 9
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top