Passing value from JCL to REXX.



IBM's Command List programming language & Restructured Extended Executor

Passing value from JCL to REXX.

Postby Viswanathchandru » Fri Apr 19, 2013 2:52 am

Dear all,

I need to pass a value from a JCL to REXX for further processing. My JCL goes like this:

//STEP3 EXEC PGM=IKJEFT01,PARM='SYS345V.VSAM.FILE'
//SYSEXEC DD DSN=SYS345V.JCL.PDS,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSUT2 DD SYSOUT=*
//SYSTSIN DD *
%VSAMUTI



and I'm not sure how to receive the value in the Called REXX program i.e., %VSAMUTI. I tried this way.

/*rexx */
Arg parm
..


It didn't work.. Can anyone suggest me the correct way pls..

Regards,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm
Has thanked: 25 times
Been thanked: 0 time

Re: Passing value from JCL to REXX.

 

Re: Passing value from JCL to REXX.

Postby enrico-sorichetti » Fri Apr 19, 2013 3:43 am

did You try with

//STEP3 EXEC PGM=IKJEFT01,PARM='VSAMUTI SYS345V.VSAM.FILE'
...
//SYSTSIN  DD DUMMY
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort

These users thanked the author enrico-sorichetti for the post:
Viswanathchandru (Fri Apr 19, 2013 3:54 am)
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Passing value from JCL to REXX.

Postby Viswanathchandru » Fri Apr 19, 2013 3:55 am

Task completed!! As usual, Mr.Sorichetti never fails!!

Thank you Enrico.

Regards,
Viswa
Viswanathchandru
 
Posts: 271
Joined: Mon Oct 25, 2010 2:24 pm
Has thanked: 25 times
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post