BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Jagadeesh2907
Obsidian | Level 7

Hi All,

 

Some years back I was using SAS DI studio to create the SAS jobs and hence we are having SAS DI jobs deployed for running the jobs.

 

However, off late, we are moving away from SAS DI studio and using SAS EG to create the jobs using Base SAS program and does not use any DI components. Now we are looking to move the DI programs also into a Base SAS programs. On the outset we have identified library references what needs to be amended. 

 

Is there any utility which allows me to do it in SAS or what will be the pointers which i need to watchout when i try to remove the metadata components like tranformation ID, DI macros etc. 

 

Please advice

1 ACCEPTED SOLUTION

Accepted Solutions
Patrick
Opal | Level 21

The deployed jobs are just .sas files without any dependency on DI Studio. To my knowledge all the DI Studio specific macros are defined within the deployed jobs and get compiled during run-time. There isn't any DI specific macro library.

From this perspective you wouldn't have to change a thing.

 

If your company intends to get rid of DI Studio/the license for the SAS module with which DI Studio comes, then I'd discuss with SAS the implications and especially what this means for already deployed jobs (.sas files). I'm not sure if this would still be seen as code requiring the license given that it had been generated using SAS IP using DIS.

 

Going forward: Yes, SAS DIS generated SAS code is not how you would code "manually" and it's certainly not that simple to maintain especially if you've used things like the Loop transformation.

I don't really know but would bet that there isn't some script that converts your DIS generated SAS code to something else - which means that's going to become a manual task.

View solution in original post

8 REPLIES 8
Patrick
Opal | Level 21

The deployed jobs are just .sas files without any dependency on DI Studio. To my knowledge all the DI Studio specific macros are defined within the deployed jobs and get compiled during run-time. There isn't any DI specific macro library.

From this perspective you wouldn't have to change a thing.

 

If your company intends to get rid of DI Studio/the license for the SAS module with which DI Studio comes, then I'd discuss with SAS the implications and especially what this means for already deployed jobs (.sas files). I'm not sure if this would still be seen as code requiring the license given that it had been generated using SAS IP using DIS.

 

Going forward: Yes, SAS DIS generated SAS code is not how you would code "manually" and it's certainly not that simple to maintain especially if you've used things like the Loop transformation.

I don't really know but would bet that there isn't some script that converts your DIS generated SAS code to something else - which means that's going to become a manual task.

Jagadeesh2907
Obsidian | Level 7
Thank you Patrick. I agree that I can use the same code (.sas program) to run in the scheduler and it should run fine. My main point of suspicion is around the libraries. For Example: In DI - the library references always gets the information from the metadata. So in different environments it takes the different locations. similarly RDBMS libraries point differently as they are mapped in metadata in DIS. so these needs to be updated manually.
Quentin
Super User

So are you getting rid of your metadata environment too?  

 

When EG is connected to a metadata server, it uses the same metadata libraries as DI studio.  So this shouldn't be an issue.  The metadata objects are defined on the metadata server, not by the application.

 

If you  have gone to a non-metadata environment (e.g. PC SAS or simple SAS Server with metadata setup), then any metadata objects (libraries, tables, prompts...) would need to be replaced/updated.

BASUG is hosting free webinars Next up: Mark Keintz presenting History Carried Forward, Future Carried Back: Mixing Time Series of Differing Frequencies on May 8. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
Jagadeesh2907
Obsidian | Level 7
Hi Quentin - we are not getting rid of metadata environment, but however, stop using DI studio for any job creation. True that this will not impact the code by application. however, checking for what to remove and not to remove to avoid any future breakdown of jobs.
Patrick
Opal | Level 21

@Jagadeesh2907 To define often used libraries in metadata is a good thing not only when using DIS. You will still have SMC (SAS Management Console) to maintain such metadata.

If current scheduling uses the deployed job metadata objects then make sure you keep these even when "archiving" the DIS job objects. Deployed job metadata objects can also get created directly from .sas files in SMC so things can continue here as before. If you're using lsf then you might have to ensure that it's not tied to the DIS license - and if it is then you might either have to license lsf directly or change the scheduler.

Jagadeesh2907
Obsidian | Level 7
@Patrick Thank you for these pointers. This helps in great deal in the understanding. we will try using the SMC for keeping the metadata objects which will help us in running the existing codes.
AllanBowe
Barite | Level 11

As you mentioned that you are moving from Metadata to Base SAS - we have built a Flow Manager for jobs, which normally runs on Viya, however we'll soon be updating it to run for SASjs Server as well (ie, on Base SAS).   The docs are here:  https://cli.sasjs.io/flow/

 

It's MIT open source (free for commercial use), happy to chat more if you see utility in it.  The overarching framework (SASjs) can also be used to for migrating Stored Process Web Apps (either to Viya or Base SAS, it works the same on all three platforms).

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs
Jagadeesh2907
Obsidian | Level 7
Thank you Allan. i will look into these and see if i can utilize them. Will get in touch with you if needed.

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
  • 8 replies
  • 590 views
  • 0 likes
  • 4 in conversation