Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

MGET to FTP multiple files form Server to Mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
srinathds83

New User


Joined: 17 Jul 2007
Posts: 41
Location: pune

PostPosted: Tue May 28, 2013 11:38 am    Post subject: MGET to FTP multiple files form Server to Mainframe
Reply with quote

Hi,

I'm trying to FTP multiple files from a server to mainframe file. the file names will change its not static, for this i tired the following code,


Code:
//INPUT    DD  *                     
XXXXXXXXXXXXX.COM                     
loginid                               
password                             
CD \xxxxx\in                         
lcd 'TXXX.XXXXXX.XXXXXX.RETUR2'       
locsite lrecl=120 blksize=0 recfm=fb 
ascii                                 
MGET *.out  (append                   
//                                   


When i execute the job i'm getting the following error,
Code:
EZA1685W Invalid local file identifier


Thanks
Srinath
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Tue May 28, 2013 3:06 pm    Post subject: Reply to: MGET to FTP multiple files form Server to Mainfram
Reply with quote

Append is not a valid parameter for mget. Try removing it.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Tue May 28, 2013 3:09 pm    Post subject:
Reply with quote

Possibility 1: TXXX.XXXXXX.XXXXXX.RETUR2 is a PDS, in which case you cannot MGET *.out files since "<aything>.out" would NOT be a valid member name.

Possibility 2: TXXX.XXXXXX.XXXXXX.RETUR2 is the high-level qualifier under which you want to save the files, in which case one (or more) of the files you are attempting to transfer do not meet z/OS file name requirements. The total length of the DSNAME could be more than 44 characters, or a file name may be more than 8 characters without a period, or there may be invalid characters (i.e., ones that z/OS does not support) in the file name.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Liberty Angel Server using RACF Keyring martin9 CICS 0 Tue May 02, 2017 5:49 pm
No new posts SNMP trap from Mainframe bipinpeter Compuware & Other Tools 6 Wed Apr 26, 2017 3:05 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us