Thanks for giving me access to this forum ! Looks awesome to be part with the discussions you are having .need a help !
I a newbe in REXX .My assignment is as below
I have got around 60 Jobs in a library which is a simulation of production cycle but will be run in our Test Environment
whenever i run each job , i need to change the process date which is a symbolic variable. I have created the TEST JCL's .
but I want to automate the Jobs . i can do it using Internal Reader where i can do a mass change of the Process date
BUT i want to use REXX and develop this automation . hence going through the discussion in the forum I played my hand on a sample REXX routine
which is not working .The code is as below
when I am trying to execute it ... its giving me the Variable XINPARM and when i enter its going RC = 0 but the Job is not getting submitted in SPOOL
Please advice what wrong I am doing
000001 /*Rexx Program name : SUBMITTING THRU JCL
000002 description : MY JCL PARM PASING BY USER
000003 author : Nagesh
000004 date : 05-12-2014
000005 */
000006 SAY XINPARM
000007 ADDRESS TSO "NEWSTACK"
000008 QUEUE"//EDNSRICO JOB (EMOPB1000T,EAD2,2,99),'E GAHAN 79-4',"
000009 QUEUE"// MSGCLASS=X,NOTIFY=EDNSRI,TIME=2 "
000010 QUEUE"/*ROUTE PRINT DISCARD"
000011 QUEUE"/*WHILE NET07"
000012 QUEUE"//STEP040 EXEC PGM=IDCAMS,"
000013 QUEUE"// REGION=1024K"
000014 QUEUE"//INPUT01 DD DSN=EDNSRI.TEST.PPR,"
000015 QUEUE"// DISP=OLD"
000016 QUEUE"//OUTPUT01 DD DSN=EDVSAM1.UIS.CIYFR4.CCR.MIGRCLMS.CLUSTER,"
000017 QUEUE"// DISP=OLD"
000018 QUEUE"//SYSPRINT DD SYSOUT=(,)"
000019 QUEUE"//SYSIN DD DSN=ED.EDNSRI.JCL.NAGESH("XINPARM"),"
000020 QUEUE"// DISP=SHR"
000021 ADDRESS TSO "DELSTACK"
000002 description : MY JCL PARM PASING BY USER
000003 author : Nagesh
000004 date : 05-12-2014
000005 */
000006 SAY XINPARM
000007 ADDRESS TSO "NEWSTACK"
000008 QUEUE"//EDNSRICO JOB (EMOPB1000T,EAD2,2,99),'E GAHAN 79-4',"
000009 QUEUE"// MSGCLASS=X,NOTIFY=EDNSRI,TIME=2 "
000010 QUEUE"/*ROUTE PRINT DISCARD"
000011 QUEUE"/*WHILE NET07"
000012 QUEUE"//STEP040 EXEC PGM=IDCAMS,"
000013 QUEUE"// REGION=1024K"
000014 QUEUE"//INPUT01 DD DSN=EDNSRI.TEST.PPR,"
000015 QUEUE"// DISP=OLD"
000016 QUEUE"//OUTPUT01 DD DSN=EDVSAM1.UIS.CIYFR4.CCR.MIGRCLMS.CLUSTER,"
000017 QUEUE"// DISP=OLD"
000018 QUEUE"//SYSPRINT DD SYSOUT=(,)"
000019 QUEUE"//SYSIN DD DSN=ED.EDNSRI.JCL.NAGESH("XINPARM"),"
000020 QUEUE"// DISP=SHR"
000021 ADDRESS TSO "DELSTACK"