How to do user inputs and command line arguments in SAS? D&B

Answer Posted / segu

we can pass the paramters at run time.
here is an example which passes three parameters( 3 dates)
to a program calles pgm_name:

>sas pgm_name -sysparm "01aug95 05aug94 10jan60"

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the role of administrative users? : sas-grid-administration

859


To what type of programms have you used scratch macros?

2331


Name validation tools used in SAS

899


What is run-group processing?

854


Explain input and put function?

858


Explain by-group processing?

780


if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

1144


For clinical entire study how many tables will create approx?

1710


data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

2017


Mention how to limit decimal places for the variable using proc means?

837


Explain translate function?

855


Explain bmdp procedure?

798


What are the difference between the sas data step and sas procs?

821


What are the data types in sas?

801


hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?

1837