DATA Step, Macro, Functions and more

Issues using SAS FTP functionality fb and vb

Reply
N/A
Posts: 0

Issues using SAS FTP functionality fb and vb

When FTPing files using SAS it successfully transfer the files but the file is transferred as vb (variable block) even if I specify fb (fixed block).

Any ideas or suggestions how to fix it?
Trusted Advisor
Posts: 2,113

Re: Issues using SAS FTP functionality fb and vb

Perhaps you could show your code. FB and VB are attributes for mainframes, so I suspect the target needs to be a mainframe for this option to work. One example I found uses the RCMD= to send it.

http://support.sas.com/kb/18/665.html
N/A
Posts: 0

Re: Issues using SAS FTP functionality fb and vb

This is the code I used;

FILENAME f ftp "BCNE.BRYAN.FCBTEST"
host='10.33.255.17' user='PASS' pass='XXXXXX'/*cd='..'*/ debug RECFM=fb lrecl=80;

data _null_;
%let _EFIERR_ = 0; /* set the ERROR detection macro variable */
%let _EFIREC_ = 0; /* clear export record count macro variable */
file f RECFM=FB LRECL=80;;

set T03 end=EFIEOD;
format col1 $80. ;
do;
EFIOUT + 1;
put col1 $ ;
;
end;
if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */
if EFIEOD then call symputx('_EFIREC_',EFIOUT);
run;

Can anyone see any issues with it?
Frequent Contributor
Posts: 106

Re: Issues using SAS FTP functionality fb and vb

Doc's RCMD suggestion is worth following. Try to pass both STATUS and LOCSTAT commands to the FTP process in order to have both the server and client settings displayed.

(At least that's what I would try next. Not having used SAS's FTP access method I don't know whether you will get the messages though.)
Ask a Question
Discussion stats
  • 3 replies
  • 145 views
  • 0 likes
  • 3 in conversation