I have a scenario wherein I am reading an external file using file reference. My file contains several input lines which are blank. But sas condenses multiple blank lines into a single blank line when I am writing it to a file of RECFM=FBA. But it works fine with RECFM=FB.
Please let me know how to overcome this problem.
Here is the piece of code I am using.
infile 'test file' missover print truncover;
input @1 record $133;
file out1 notitle;
put @1 _infile_;
If you inspect the file, column 1 contains a print-control character for single, double-spacing. One technique to force a data line to be generated is to use a non-print character such as hex-00, as in:
The caveat here is that you are asking for system-controlled line-skip and pagination print with the RECFM=FBA and the FILE stmt parameter PRINT, correct? The only alternative I can identify for you is to put something other than a blank line, as I have described above.
Any type of check will depend on your SAS program and what you expect it to generate for output. If you simply want to generate extra blank lines and not have the system-generated line-control character, you would use the PUT statement without any checks. So, it will depend on your output requirements.