MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

capture job id of job just submitted ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Wed Nov 28, 2007 4:17 pm    Post subject: capture job id of job just submitted ? Reply with quote

Please excuse me if this isn't the right forum for this question, but I'll take a chance and pose the following :

A co-worker asked me today if there is a way that he can programmatically capture the Job Id of a job just submitted.

I didn't ask him if he was submitting it via the internal reader or through REXX, but I would assume that that would be the logical 'tie in'.

If anyone has any information or ideas on this, I would appreciate it...

Thanks.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Nov 28, 2007 4:33 pm    Post subject: Reply with quote

if rexx, use outtrap()
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
tcurrier
Intermediate


Joined: 10 Feb 2006
Posts: 188
Topics: 68

PostPosted: Wed Nov 28, 2007 6:08 pm    Post subject: Reply with quote

Well, I ended up suggesting to him to use REXX..

Here is what I came up with :

[code:1:8ed5580083]//STEP1 EXEC PGM=FILEAID
//SYSPRINT DD SYSOUT=*
//SYSLIST DD SYSOUT=*
//SYSTOTAL DD SYSOUT=*
//DD01 DD DATA,DLM='
Back to top
View user's profile Send private message
Sreejith
Intermediate


Joined: 02 Dec 2002
Posts: 155
Topics: 25
Location: N.Ireland

PostPosted: Thu Nov 29, 2007 3:39 am    Post subject: Reply with quote

There is a COBOL program to achieve this

http://mvsforums.com/helpboards/viewtopic.php?t=1657&highlight=jobname
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Thu Nov 29, 2007 8:47 am    Post subject: Reply with quote

sreejith,

The example you refer to is for a program to find out it's OWN info, not the info on a second job just submitted by the first job.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Sreejith
Intermediate


Joined: 02 Dec 2002
Posts: 155
Topics: 25
Location: N.Ireland

PostPosted: Thu Nov 29, 2007 9:07 am    Post subject: Reply with quote

Bill,
You are right. I didn't read the post well.

Thanks
Sreejith
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group