DATA Step, Macro, Functions and more

windows SAS trying to programaticaly open a pgm with the EE

Reply
Contributor
Posts: 20

windows SAS trying to programaticaly open a pgm with the EE

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
Contributor
Posts: 20

Re: windows SAS trying to programaticaly open a pgm with the EE

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.
Valued Guide
Posts: 2,175

Re: windows SAS trying to programaticaly open a pgm with the EE

try command
Wedit 'your file'
Contributor
Posts: 20

Re: windows SAS trying to programaticaly open a pgm with the EE

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.
Valued Guide
Posts: 2,175

Re: windows SAS trying to programaticaly open a pgm with the EE

the statement should be
dm "wedit 'c:\temp\test_me2.sas' " ;
Ask a Question
Discussion stats
  • 4 replies
  • 146 views
  • 0 likes
  • 2 in conversation