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 

Uploading file in MVS variable length record using FTP

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
sam14
Beginner


Joined: 05 Nov 2007
Posts: 1
Topics: 1

PostPosted: Tue Nov 13, 2007 4:53 pm    Post subject: Uploading file in MVS variable length record using FTP Reply with quote

Can anyone help me to uploadfile in MVS using FTP. I am using following syntax. Which is not uploading the data. The data is in EBCIDIC form.
I am using SAS.

filename shell ftp "'&HostFile'"
RCMD="site RDW pri=&space sec=&space &alloc blk=32708 lrecl=4117 recfm=V"
host='pmdaftt.mfr.mbnainternational.com' prompt s370V lrecl=4117
DEBUG ;

data _null_;
set shellCASG;
file shell;
filler = ' ';
*** write the file ***;

put
@0001 NA_FUNCTION_CODE $ebcdic8.
@0009 NA_FUNCTION_VERSION $ebcdic1.
@0010 NA_USER_ID $ebcdic8.
@0066 NA_DATE_TIME_STAMP $ebcdic17.
@0116 NA_BUSINESS_UNIT $ebcdic2.
;
run;

Thanks
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 -> Application Programming 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