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.)

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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