View previous topic :: View next topic
|
Author |
Message |
Aham
New User
Joined: 24 Oct 2007 Posts: 42 Location: chennai
|
|
|
|
Hi ,
I have a requirement that all of us in our team may use the same job say Job X. After job X is over we have a FTP job to get the reports to our own Lotus notes ID thru IEBGENER. Based on the person who is submitting the job X, second job need to be submitted(because destination address is changing). Can I add a Batch REXX step in the job X which could check the User ID and submit the FTP job accordingly(using SELECT WHEN) ?
Please help |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
Aham
New User
Joined: 24 Oct 2007 Posts: 42 Location: chennai
|
|
|
|
Hi Kevin - Thanks for the material. I think I have confusion in getting this.
Let me say we have four IDs W1, W2, W3,W4. If the user's ID is W1 the job TEST.PDS(W1FTP) should be submitted. If Id is W2 then TEST.PDS(W2FTP) should be submitted and similarly for W3 and W4. Can you tell me how my rexx code should look like ? Also Can I use the same rexx code to execute directly using TSO EXEC 'rexx.exec' which I am using in batch using IRXJCL without any code changes ? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Wouldn't you just code:
Code: |
/* REXX */
....
member = SYSVAR(SYSUID)||'FTP'
"SUBMIT 'TEST.PDS("member")'"
...
Exit
|
|
|
Back to top |
|
|
Aham
New User
Joined: 24 Oct 2007 Posts: 42 Location: chennai
|
|
|
|
Thanks a lot .. I was unaware of the concatenation symbol before. Now I learnt one other thing too. Your patience to guide people like me really deserves great appreciation. |
|
Back to top |
|
|
|