BookmarkSubscribeRSS Feed
kannand
Lapis Lazuli | Level 10

Hello,

 

Here is a challenge I am presented, with GDG like structure for "Text Files" in "Unix environment" to be used by Unix-SAS.  I am trying to see if this has already been done by someone or if there is a "Utility" available, instead of re-inventing the wheel.  

 

The new SAS environment that I am working on, is in need of migration of "SAS and TEXT GDG files" from mainframe to Unix SAS.   For the SAS datasets in GDGs, I'm able to leverage SAS generational datasets or GDS feature available within SAS in the Unix evironment. However, I'm trying to see how gdgs on mainframe that have text data(sequential gdg files) be moved to Unix and handled the way GDG's are handled by a JCL.

 

I'm thinking I need to build a Utility on Unix to start building files with automatically creating generation numbers appended to the end of the filenames and, everytime, check for the generation number to increment to create a new filename.   If there is already something available, please share as I am new to Unix environment and will be running SAS in Unix. Similarly, to grab the gen# from the file name and to parse it to see which generation to read while reading using a generation number reference.   Obviously the reference needs to be made from the current or highest gen# available which would be the most recent.

 

I'd like to know if I am thinking this through right or if there are other ideas from the community, which I welcome.

 

Thanks in advance.

Kannan Deivasigamani
1 REPLY 1
LinusH
Tourmaline | Level 20
Even if there are many mainframe and UNIX specialists here, the main focus here is SAS. If I understand correctly the question I'd about files outside SAS, so guess you better of asking thus on a UNIX or mainframe forum.
Data never sleeps

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
  • 1 reply
  • 619 views
  • 1 like
  • 2 in conversation