BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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?
3 REPLIES 3
Doc_Duke
Rhodochrosite | Level 12
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
deleted_user
Not applicable
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?
Robert_Bardos
Fluorite | Level 6
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.)

SAS Innovate 2025: Register Today!

 

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1035 views
  • 0 likes
  • 3 in conversation