My .ksh file is as follows Name of file is r50.ksh
#!/usr/bin/ksh
echo 'Arguement passed... ' $1
USER1=$(whoami)
. /sas/profile/profile.sas.sh
#or
# . /etc/profile.d/profile.sas.sh
/sas/sasbatch /reporting/dev/output/test1/ML/$1.sas "-altlog
/reporting/dev/output/test1/ML/$1.log" "
-print /reporting/dev/output/test1/ML//$1.lst" &
My startup looks like this Name of startup is Test_Report.sas
%LET rptloc = /reporting/dev/output/test1/ML;
%LET OutDir = /reporting/dev/output/test1/ML;
%LET pgmdir = /reporting/dev/output/test1/ML;
%include "&pgmdir/smart_pay1.sas";
Both Test.sas and R50 were placed in the /reporting/dev/output/test1/ML; area
In putty I access the area with cd /reporting/dev/output/test1/ML;
I checked permission to ensure I can execute. I then do the following;
R50.ksh Test_Report and clck enter
---------------------------------
1 = /reporting/dev/output/test1/ML/Test_Report.sas
2 = -altlog /reporting/dev/output/test1/ML/Test_Report.log
3 = -print /reporting/dev/output/test1/ML/Test_Report.lst
4 =
5 =
All is /reporting/dev/output/test1/ML/Test_Report.sas -altlog /reporting/dev/output/test1/ML/Test_Report.log -print /reporting/dev/output/test1/ML/Test_Report.lst
LSB_SUB_QUEUE = "batch"
---------------------------------
I AM TRYING TO DETERMIN WHY I GET NO OUTPUT EVEN THOUGH THE SCRIPT SEEMS TO RUN WITHOUT ISSUE
What does the log show?
If it isn't sensitive you might want to copy the text from the log and paste it here in a code box opened with the forum's {I} or "running man" icon.
Why are you re-directing the ALTLOG but letting SAS decide where to write the real log?
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.