BookmarkSubscribeRSS Feed
glmsas
Calcite | Level 5
I'm trying to open, but not submit a .SAS pgm that i just created from a data step.
Is there a way to submit SAS commands from the editor and not the command line?
something like the wedit command from a macro or data step?
thanks
gary
4 REPLIES 4
glmsas
Calcite | Level 5
well i found the DM command works somewhat for my issue.

DM 'pgm';
DM 'inc c:\sas_pgms\test_me2.sas';

opens the program up in a program editor window, but yet to find how to do the same with the enhanced editor window.
Peter_C
Rhodochrosite | Level 12
try command
Wedit 'your file'
glmsas
Calcite | Level 5
yea i've tried that before but just to make sure i tried it with/without the DM syntax and quotes/noquotes

1626 Wedit 'c:\temp\test_me2.sas';
-----
180

ERROR 180-322: Statement is not valid or it is used out of proper order.
Peter_C
Rhodochrosite | Level 12
the statement should be
dm "wedit 'c:\temp\test_me2.sas' " ;

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