IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to pass parms to SAS from REXX.


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri Sep 23, 2011 1:02 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Sep 23, 2011 1:43 pm
Reply with quote

Whilst waiting for a reply I'd not be able to resist just having a whack at PARM(...)
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Fri Sep 23, 2011 2:18 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Sep 23, 2011 11:25 pm
Reply with quote

This code worked for me:

Code:

/* REXX */                                 
"SAS INPUT(sas) OPT('SYSPARM=HELLO')"       
Exit 0                                     


Code:

%PUT &SYSPARM;   
RUN;             
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Mon Sep 26, 2011 12:37 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Sep 29, 2011 1:15 am
Reply with quote

I think it might've been this site:

www.lexjansen.com/pharmasug/2002/proceed/coders/cc05.pdf
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top