BookmarkSubscribeRSS Feed
JMarkW
Fluorite | Level 6
I'm looking for a UNIX equivalent to a MVS technique. In MVS a datasat can be opened as MOD so that additional records will automatically be appended to the end. I need to do the same thing in UNIX but have not found the syntax.

Note that this is not a PROC APPEND or PROC DATASETS type of action. The volume of data is too high to make hundreds of thousands of datasets and append them together. This process needs to write to a single output file as the data is derived.

Does anybody know the UNIX method for opening a file for appending records or the location of this method in SAS docs?
2 REPLIES 2
LinusH
Tourmaline | Level 20
Is this a SAS question? Or is it purely about UNIX file management? What do you mean by "data is derived"?
You can use cat command to concatenate files.

/Linus
Data never sleeps
JMarkW
Fluorite | Level 6
I figured out how to do it with filename instead of libname. It is pretty much the same as MVS using the NEW then MOD options with the unix filename. No PIPE.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 2 replies
  • 739 views
  • 0 likes
  • 2 in conversation