Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Process rexx in batch based on the User Id

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
Aham

New User


Joined: 24 Oct 2007
Posts: 42
Location: chennai

PostPosted: Tue Dec 25, 2007 3:59 pm    Post subject: Process rexx in batch based on the User Id
Reply with quote

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
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Dec 25, 2007 4:08 pm    Post subject: Reply to: Process rexx in batch based on the User Id
Reply with quote

Sure, don't see why not.

4.3.66 USERID.

4.4.11 SYSVAR.

1.46 SUBMIT Command.
Back to top
View user's profile Send private message
Aham

New User


Joined: 24 Oct 2007
Posts: 42
Location: chennai

PostPosted: Tue Dec 25, 2007 5:45 pm    Post subject:
Reply with quote

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
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Tue Dec 25, 2007 9:06 pm    Post subject: Reply to: Process rexx in batch based on the User Id
Reply with quote

Wouldn't you just code:

Code:

/* REXX */
....
member = SYSVAR(SYSUID)||'FTP'
"SUBMIT 'TEST.PDS("member")'"
...
Exit
Back to top
View user's profile Send private message
Aham

New User


Joined: 24 Oct 2007
Posts: 42
Location: chennai

PostPosted: Tue Dec 25, 2007 11:45 pm    Post subject: Reply to: Process rexx in batch based on the User Id
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us