BookmarkSubscribeRSS Feed
Q1983
Lapis Lazuli | Level 10

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

2 REPLIES 2
ballardw
Super User

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.

 

 

Tom
Super User Tom
Super User

Why are you re-directing the ALTLOG but letting SAS decide where to write the real log?

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 952 views
  • 0 likes
  • 3 in conversation