On the JCL that you use the invoke SAS, i.e.JCL which has EXEC PGM=SAS
you could add DD statements which contain the parms that need to be passed to the SAS program & then use a %include statement on the DD statement.
//STEP1 EXEC PGM=SAS
//PARM1 DD *
VALUE1 = 'Y';
//PARM2 DD *
VALUE2 = 'N';
//SYSIN DD *
PUT 'THE VALUE READ FROM PARM1 IS ' VALUE1;
PUT 'THE VALUE READ FROM PARM2 IS ' VALUE2;
Joined: 30 Mar 2011 Posts: 48 Location: United States
Go to the URL http://www.caliberdt.com/tips/Jul2005.htm and you will find a discussion on how to pass parm data from JCL to SAS. You will need to know something about SAS macro variables to use this code. I just tested this link and it is active.