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
 

 

Spool data using JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Khadhar Basha

New User


Joined: 28 Oct 2014
Posts: 37
Location: India

PostPosted: Wed Jan 21, 2015 8:51 pm    Post subject: Spool data using JCL
Reply with quote

Hi All,

I would like to extract jobs which are currently in execution state. Not the jesjcl jesmsg and all.

Say W* jobs executing in spool, i want to get job name, id, St-time.

Below code used to extract a job log in dataset. I want only statistics. Help me with the parms.

Code:
//BATCHSP JOB (ACC INFO,,,,,XXXX),'         ',CLASS=M,   
//            MSGCLASS=Y,NOTIFY=&SYSUID                   
//********************************************************
//** COPY THE ISPF PROFILE                                 
//*********************************************************

//BSDSF  EXEC PGM=ISFAFD,PARM='++30,256'                               
//ISFOUT   DD SYSOUT=*                                                 
//SYSUDUMP DD SYSOUT=*                                                 
//SYSPRINT DD SYSOUT=*                                                 
//SYSTSPRT DD SYSOUT=*                                                 
//SYSOUT   DD SYSOUT=*                                                 
//ISFIN    DD *                                                         
PRE job-name                                                           
ST                                                                     
FILTER JOBID EQ job-id                                                 
++?                                                                     
FIND 'SYSOUT'                                                           
++S                                                                     
PRINT ODSN 'USER.ABC.XYZ' * SHR                                 
PRINT 1 9999                                                           
PRINT CLOSE                                                             
END                                                                     
EXIT                                                                   
/*                                                                     
// 


My previous post http://ibmmainframes.com/viewtopic.php?p=327700#327700
Back to top
View user's profile Send private message

Paul Voyner

New User


Joined: 26 Nov 2012
Posts: 51
Location: Switz

PostPosted: Wed Jan 21, 2015 9:42 pm    Post subject:
Reply with quote

Khadhar, what are you playing at ? I've recently helped you with rexx code to get information out of SDSF, and now you say you're using SDSF in batch to do something almost identical. Have you not actually learned a single thing from what I told you ?
Back to top
View user's profile Send private message
Khadhar Basha

New User


Joined: 28 Oct 2014
Posts: 37
Location: India

PostPosted: Wed Jan 21, 2015 9:51 pm    Post subject:
Reply with quote

Hi Paul,

I was very thankful to you. I want to get spool data of 5 LPAR.
I am able to connect LPAR using FTP. When I submit rexx thru IKJEFT01, i get RC 8 at below and my output is empty.

Code:
Address SDSF "isfexec st(ALTERNATE DELAYED"
if RC ยช= 0 then do
say "isfexec RC" RC
exit

Though i have access to LPAR.

That's why thought of trying batch to know really if i dont have access or not.

Apologies if this looks am playing around forum.
Back to top
View user's profile Send private message
Paul Voyner

New User


Joined: 26 Nov 2012
Posts: 51
Location: Switz

PostPosted: Thu Jan 22, 2015 12:54 pm    Post subject:
Reply with quote

So why did you get an RC 8 ? Did you do any analysis ?
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts ODPP(Optim Data privacy Provider) Iss... Rama kishore IBM Tools 1 Mon Nov 07, 2016 5:46 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm


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