IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Extract all jobs details from the spool using REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amail2you

New User


Joined: 17 Jul 2006
Posts: 2
Location: Bangalore

PostPosted: Tue Jul 18, 2006 4:53 pm
Reply with quote

Hi all,

Can anyone help me on how to extract all the jobs details such as Jobname , Jobnumber, start & end time, and status of job whose names have a prefix like REX* from the spool (SDSF) into a dataset using REXX

Thanks & Regards,
Prabhu V
Back to top
View user's profile Send private message
Ravi gaur

New User


Joined: 12 Jul 2005
Posts: 38

PostPosted: Tue Jul 18, 2006 7:11 pm
Reply with quote

some idea I can give you is RUN SDSF in job using the utility"ISFAFD" and use EDIT MACRO to give and fetch the values thru rexx..
Back to top
View user's profile Send private message
amail2you

New User


Joined: 17 Jul 2006
Posts: 2
Location: Bangalore

PostPosted: Wed Jul 26, 2006 4:30 pm
Reply with quote

Ravi gaur wrote:
some idea I can give you is RUN SDSF in job using the utility"ISFAFD" and use EDIT MACRO to give and fetch the values thru rexx..


Hi Ravi,

Thanks for your suggestion. I have tried out SDSF through JCL, but I need the same to be done through REXX. If you have any sample code pls. send it across.
Back to top
View user's profile Send private message
SBMF390

New User


Joined: 27 Jul 2006
Posts: 9

PostPosted: Thu Jul 27, 2006 3:38 pm
Reply with quote

Before i reply to ur Q'on, once ur job completes, How will u see ur spool details after 1 hr or 1 day.

-Boopathy
Back to top
View user's profile Send private message
virtualarun

New User


Joined: 18 Jan 2007
Posts: 3
Location: Chennai, India

PostPosted: Thu Jan 18, 2007 5:31 pm
Reply with quote

Hi Prabhu,

Hope you accomplished your need by now. Can you tell me how you got the details in spool including the Job Owner details through REXX ?
Back to top
View user's profile Send private message
Continuous Learner
Currently Banned

New User


Joined: 19 Jan 2007
Posts: 3
Location: Kolkata

PostPosted: Wed Jan 24, 2007 12:23 pm
Reply with quote

SBMF390 wrote:
Before i reply to ur Q'on, once ur job completes, How will u see ur spool details after 1 hr or 1 day.

-Boopathy


Hi,

If we are extracting the jobs after a day, then how to get the details

Thanks,
Siva
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jan 25, 2007 12:33 am
Reply with quote

Hello,

Depending on your requirements, i'd suggest looking into meeting your requirements using SMF data. The SMF data will be available than the jobs in the spool.

See your systems programmers for info on how to use the SMF data - they may already have something that will do what you need. An ability to report on jobs processed is quite common.
Back to top
View user's profile Send private message
Continuous Learner
Currently Banned

New User


Joined: 19 Jan 2007
Posts: 3
Location: Kolkata

PostPosted: Thu Jan 25, 2007 11:22 am
Reply with quote

Hi dick,

Thanks for ur suggestion.

But because of unknown reasons, we are not allowed to contact the system programmers.

But I need the JESMSGLG, JESYSMSG ddnames for some production jobs which ran within last 24 hours.

So please suggest me how to get that data either by using Batch jobs or by REXX.


Thanks,
Siva
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Jan 25, 2007 11:55 am
Reply with quote

Please search this forum for BATCH SDSF. You'll fine lots of examples.

O.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
Search our Forums:

Back to Top