View previous topic :: View next topic
|
Author |
Message |
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hi,
Could you please let me know how to pass parms to SAS, when SAS is called by a REXX program.
I use the below code to call SAS from REXX,
Code: |
ADDRESS TSO "ALTLIB ACTIVATE APPL(CLIST) DA('WELLS.CLIST.CEXEC')"
"%SAS INPUT('''WELLS.SAS.PROG''') LOG('''WELLS.SAS.LOG''')"
|
The PDS WELLS.CLIST.CEXEC contains a member named SAS.
And this memeber is the standard CLIST supplied by SAS to invoke SAS from REXX or CLIST.
The program inside WELLS.SAS.PROG gets executed fine, but don't know how to pass parms to the program. Please help.
Thanks & Regards, |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Whilst waiting for a reply I'd not be able to resist just having a whack at PARM(...) |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Hello Bill,
I did try tagging the PARM keyword before posting,
Tried,
Code: |
"%SAS INPUT('''WELLS.SORTIN''') ,
LOG('''WELLS.SAS.LOG''') PARM('''SYSPARM="HELLO"''')"
|
The error was:
Code: |
IKJ56701I MISSING SPACE VALUE AND IF ANY, INCREMENT VALUE+
IKJ56716I EXTRANEOUS INFORMATION WAS IGNORED: 'SYSPARM=HELLO'
IKJ56701I MISSING NUMBER OF RECORDS |
The same error appeared for other variations of argument inside PARM().
The "SAS companion ZOS" has some information about SASPARM= PGMPARM= but they sound greek and latin to me :S
Regards, |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
This code worked for me:
Code: |
/* REXX */
"SAS INPUT(sas) OPT('SYSPARM=HELLO')"
Exit 0
|
Code: |
%PUT &SYSPARM;
RUN;
|
|
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Thanks Kevin,
Works Great!!
Could you please let me know the link which has information on the statement, or is it based on your earlier experiences.
(can't find it on the companion for ZOS) |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
|