02-27-2016 04:55 PM
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.
02-28-2016 11:39 AM