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
 
FTP Skip or ignore error and process other files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
AJAYREDDY

New User


Joined: 17 Feb 2007
Posts: 52
Location: USA

PostPosted: Wed Sep 27, 2017 8:12 pm    Post subject: FTP Skip or ignore error and process other files
Reply with quote

Can anyone please let me know if we can skip processing any File from FTP step that is getting in error and continue with rest of other files?

Here are the 2 type of errors I am getting but error code is same.

550 The system cannot find the file specified.
Std Return Code = 16550, Error Code = 00002
FTP000 - ENDED BY CC 0166


550 The process cannot access the file because it is being used by another process
EZA1735I Std Return Code = 16550, Error Code = 00002
FTP000 - ENDED BY CC 0166


Here is the FTP step. If FILE3.txt gets any of the above error I need to skip/ignore that file and continue process FILE4.txt and FILE5.txt. Right now the Job gets abend and does not process rest of other files. We had to Manually process them later. Can we automate it to process rest of files?


IP Address
User
pwd
cd Myfolder\invoices
get FILE1.txt 'MAINFRM.FILE1' (REPLACE
get FILE2.txt 'MAINFRM.FILE2' (REPLACE
get FILE3.txt 'MAINFRM.FILE3' (REPLACE
get FILE4.txt 'MAINFRM.FILE4' (REPLACE
get FILE5.txt 'MAINFRM.FILE5' (REPLACE
close IP Address
quit
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2110
Location: UK

PostPosted: Wed Sep 27, 2017 10:14 pm    Post subject:
Reply with quote

Or do it the only way I have seen it done at the various places that I have worked - one data set per FTP execution. Use condition codes to continue processing.
Back to top
View user's profile Send private message
AJAYREDDY

New User


Joined: 17 Feb 2007
Posts: 52
Location: USA

PostPosted: Fri Sep 29, 2017 9:17 pm    Post subject: Reply to: FTP Skip or ignore error and process other files
Reply with quote

Thanks Nic. I think that is what we are going to do. I gave that one as example. We have around 70 files to split in different FTP steps LOL.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2110
Location: UK

PostPosted: Sat Sep 30, 2017 3:35 am    Post subject:
Reply with quote

That should keep you busy - for abouit an hour.
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 Process Last Key of a record based on... naveen katkuri DFSORT/ICETOOL 5 Mon Nov 12, 2018 9:54 am
No new posts Error reading file in REXX module ashek15 CLIST & REXX 3 Wed Oct 24, 2018 4:50 am
No new posts Anyone know how to copy Unix files? John Poulakos JCL & VSAM 7 Wed Oct 10, 2018 12:57 am
No new posts Process only last key record in a fil... Naveen.katkuri24 DFSORT/ICETOOL 8 Tue Oct 09, 2018 9:39 am
No new posts PL/I read error for HFS files Joe Kirsch PL/I & Assembler 6 Fri Sep 28, 2018 9:13 pm

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