Help using Base SAS procedures

How to submit partial line so f code?

Reply
Regular Contributor
Posts: 241

How to submit partial line so f code?

Hello all.

I have 10 lines of SAS code, but I want only submit line 3,5,6,7.I want submit it in command lane. subtop command can only submit top lines. what can I do?

 

Thanks!

Super User
Super User
Posts: 7,942

Re: How to submit partial line so f code?

Posted in reply to GeorgeSAS

Hi,

Gotta say I never execute code from the command line.  What I would say though is that the editor is advanced enought to comment out code, click to the left of the line to highlight the whole code line and press cntrl + / to comment out the row.  Then you can just submit the program.  Far easier once you get used to it.

Regular Contributor
Posts: 241

Re: How to submit partial line so f code?

thank you, but actually I have thousands lines of codes .I only want test several rows of them, I have to use command line because I don't use pc SAS
Super User
Super User
Posts: 7,942

Re: How to submit partial line so f code?

Posted in reply to GeorgeSAS

I would agree with @LinusH, IDE's are available for all OS's, at all levels and are designed to make testing, editing and such like far easier than typing things in at the command line.

Super User
Posts: 5,426

Re: How to submit partial line so f code?

Posted in reply to GeorgeSAS
What kind of SAS environment do you have then?
Sounds like you are mimic the programming and testing process from the seventies...
Data never sleeps
Occasional Contributor
Posts: 7

Re: How to submit partial line so f code?

Posted in reply to GeorgeSAS

is it helpful? (assume your program is stored in temp.sas)

 

data _null_;
length command $100.;
infile "~/temp.sas" ;
input;
if _n_ in (1 3 5) then  call execute(_infile_);
run;
Ask a Question
Discussion stats
  • 5 replies
  • 310 views
  • 0 likes
  • 4 in conversation