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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

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
  • 2 replies
  • 560 views
  • 0 likes
  • 2 in conversation