Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
File version problem with FTP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: File version problem with FTP
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: 3158
Location: Tucson AZ

PostPosted: Sun Feb 25, 2007 4:32 am    Post subject:
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

Site Director


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

PostPosted: Sun Feb 25, 2007 4:52 am    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Sun Feb 25, 2007 6:03 am    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Sun Feb 25, 2007 9:52 am    Post subject: Re: File version problem
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 8 Fri Sep 22, 2017 11:35 pm
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts BUILD OUTFIL based on condition other... balaji81_k DFSORT/ICETOOL 13 Fri Sep 08, 2017 11:06 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us