BookmarkSubscribeRSS Feed
acordes
Rhodochrosite | Level 12

I'd like to "run" this job from another program. I'm looking for an include funcionality but for jobs in sas viya 3.5 or higher. 

 

Here's job and its related prompt but I want to prevent the user from accessing the code. 

Therefore a caller from another program is highly appreciated. 

 

ok.png

3 REPLIES 3
sbxkoenk
SAS Super FREQ

Hello,

 

You need a

FILENAME Statement with the FILESRVC Access Method to make a fileref (file reference) pointing to that program.

Suppose your fileref is : abc.

 

Then do:

options source2;
%INCLUDE abc;

Koen

acordes
Rhodochrosite | Level 12

the "create file reference" option is not available for this kind of file (job). meanwhile this option shows up for .sas files it does not behave like this for jobs. 

sbxkoenk
SAS Super FREQ

Sorry.

I thought it was a .sas program, but it is a job indeed.

Should be possible to!

I guess someone else will chime in. If not, I will give it a 2nd look tomorrow.

Thanks,

Koen

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 3 replies
  • 986 views
  • 1 like
  • 2 in conversation