I am trying to upload file on MVS using FTP command. I am successfully able to do it as Fixed length record format. But am unable to do it using Variable length format. Can anybody help me on this. Below is the syntax I am using(which gives error) and am writing a EBCIDIC data using SAS code data _null_
——————–
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.
@0118 NA_ISSUER_NO s370fzdu2.
@0120 NA_APP_REF_NO $ebcdic11.
@0131 NA_APP_RECV_DT $ebcdic8.
;
Run;
———————————————