BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Nasser_DRMCP
Lapis Lazuli | Level 10

Hi,

I would like to get the launching mode, interactiv or batch. I use &sysenv. but i see that "BACK" is returned in both modes.

however "FORE" was expected in interactiv mode.

thanks in advance for your help

regards

Nasser

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Shmuel
Garnet | Level 18

If you use SAS STUDIO (SAS UE / SAS Analytics ...) it will always be 'BACK" because the action

is done in a server and not in your PC.

View solution in original post

5 REPLIES 5
Shmuel
Garnet | Level 18

If you use SAS STUDIO (SAS UE / SAS Analytics ...) it will always be 'BACK" because the action

is done in a server and not in your PC.

Nasser_DRMCP
Lapis Lazuli | Level 10

thanks Shmuel.

I wonder if there is a workaround to get the mode with sas studio. UE, analytics...

thanks

Shmuel
Garnet | Level 18

I don't know if there is any sas macro variable to enable it.

I'm using SAS UE and have no need to run batch.

What tool you use to run batch mode? what scheduler?

Maybe the scheduler can forward that information by an environment variable ?!

Nasser_DRMCP
Lapis Lazuli | Level 10

I do not know the scheduler.

I found the environment variable "SASCLI". and this is exactly what I need

in saseg the returned value is "SASEG"

in batch the returned value is "BATCH"

 

thanks for your help

Shmuel
Garnet | Level 18

Just for the knowledge - I have tested %put &sascli; - and got that the macro variable is not resolved. It seems that SAS invested into SAS EG more than in SAS Studio - UE.

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 847 views
  • 0 likes
  • 2 in conversation