How to pass values to sysin(jcl) through REXX.



IBM's Command List programming language & Restructured Extended Executor

How to pass values to sysin(jcl) through REXX.

Postby Viswanathchandru » Fri May 18, 2012 7:43 pm

Dear all,

Again, here i'm to learn/get knowledge, hope i would get! Can anyone tell me how can we pass values to the sysin control card through rexx. Any links or libraries would help. Please advice.

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

Re: How to pass values to sysin(jcl) through REXX.

Postby steve-myers » Fri May 18, 2012 8:23 pm

This topic was discussed in this section of the forum last month. Read that topic first!
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: How to pass values to sysin(jcl) through REXX.

Postby Viswanathchandru » Fri May 18, 2012 8:33 pm

Thanks steve for your time! yes as advised i went through the forum. I'm able to find passing DD names but i can't find how to pass values to sysin control card. Please advice. Apologize if i or my thoughts are wrong!

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

Re: How to pass values to sysin(jcl) through REXX.

Postby mongan » Fri May 18, 2012 8:46 pm

Simply, you can not do it. You have to generate the sysin cards with the values resolved from your rexx and then use them. You will have to take a little more time and search for the many answers and solutions already posted here.
User avatar
mongan
 
Posts: 211
Joined: Tue Jan 11, 2011 8:32 pm
Has thanked: 1 time
Been thanked: 5 times

Re: How to pass values to sysin(jcl) through REXX.

Postby Pedro » Fri May 18, 2012 9:35 pm

pass values to the sysin control card through rexx


You need to provide more details. Where is the rexx running? What does your JCL look like.

It could be as simple as two job steps... the first is a rexx program that builds the SYSIN using a:
//FILE1    DD  DISP=(NEW,PASS),DSN=&&TMP

The second step would refer to the file with
//SYSIN   DD DISP=(OLD,DELETE),DSN=&&TMP
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: How to pass values to sysin(jcl) through REXX.

Postby Viswanathchandru » Fri May 18, 2012 9:47 pm

Hello Pedro,

Thanks for your time! sorry for not being clear! The REXX routine just gets a value either through panel/ or just through a pull and that variable has to be under the sysin control card. REXX runs under the ISPEXEC environment. I believe this could work. But how do write a single value into a Dataset. Confused. Will this work.? Just a wild guess. Apologize if its wrong!

Do i=1 to 2
pull list.i
"alloc dd(indd) da('"mxg.control.input"') shr reuse
"execio * diskw indd(finis"
end


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

Re: How to pass values to sysin(jcl) through REXX.

Postby NicC » Fri May 18, 2012 9:48 pm

Why do you not try it out?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How to pass values to sysin(jcl) through REXX.

Postby Pedro » Sat May 19, 2012 2:43 am

The real title of this thread should be 'How do I write to a dataset?'

When you mention 'passing values', 'JCL', and 'sysin', it clouds the issue and you get 'cannot be done' responses.
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post