The SAS Output Delivery System and reporting techniques

while executing the sas programm ask the record no and print that record

Reply
N/A
Posts: 0

while executing the sas programm ask the record no and print that record

hI,
i have a table like this

number value
1 12
2 23
3 45

While executing the sas programm ask the number and print that record only

i.e you give 1

then output like this

Number Value
1 12
***************
i.e you give 2

then output like this

Number Value
2 23
SAS Employee
Posts: 5

Re: while executing the sas programm ask the record no and print that recor

Posted in reply to deleted_user
Here is an example:

data test;
input number 1 value $3-4;
cards;
1 12
2 23
3 45
;
run;

%macro pr(lineNum);
proc print data=test(firstobs=&lineNum obs=&lineNum);
run;
%mend;
options mprint;
%pr(4);
Ask a Question
Discussion stats
  • 1 reply
  • 106 views
  • 0 likes
  • 2 in conversation