MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Splitting GET (ftp) command into two lines in MVS

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
pvrajesh31
Beginner


Joined: 10 Aug 2004
Posts: 31
Topics: 11

PostPosted: Tue Aug 10, 2004 8:02 am    Post subject: Splitting GET (ftp) command into two lines in MVS Reply with quote

Hi,
I want to receive file from a server through FTP in MVS.The length of the dataset name into which file is received plus filename in server exceeds of 80 characters.As JCL can have record length of 80, i need to split the GET command into two lines. Can anybody help me with syntax for this.

GET 'FILENAME IN SERVER' 'DATASET NAME' (REPLACE

My Case:

GET 'MANUAL-SHEET-SHF-SCO-2004-06.TXT'
'APPCOM.RAJESH.FILESRVR.D060823.SWISS.SCODTLS' (REPLACE

This command exceeds 80 characters.So this command should be splitted into two lines. I need the syntax for splitting into two lines.Simply splitting into two lines is not working.
_________________
Rajesh
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12369
Topics: 75
Location: San Jose

PostPosted: Tue Aug 10, 2004 8:08 am    Post subject: Reply with quote

Rajesh,

A blank followed by a plus sign ( + ) at the end of an FTP subcommand line is used as a continuation indicator for all FTP subcommands except the QUOTE subcommand. When the continuation indicator is encountered at the end of an FTP subcommand line, the next line is appended to the subcommand. For example,


Code:

         PUT SOURCE.DS.NAME +
         DEST.DS.NAME


is interpreted as:
Code:

         PUT SOURCE.DS.NAME DEST.DS.NAME


so in your case put a plus sign at the end of first line.
Code:

  GET 'MANUAL-SHEET-SHF-SCO-2004-06.TXT'  +
   'APPCOM.RAJESH.FILESRVR.D060823.SWISS.SCODTLS' (REPLACE


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pvrajesh31
Beginner


Joined: 10 Aug 2004
Posts: 31
Topics: 11

PostPosted: Tue Aug 10, 2004 9:19 am    Post subject: Reply with quote

Hi kolusu,
Thanx.It is working.
_________________
Rajesh
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group