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
 

 

Is it possible to take XDC through job

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

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Tue Aug 22, 2006 9:56 am    Post subject: Is it possible to take XDC through job
Reply with quote

Hi,

Is it possible to take XDC through job. If yes, please provide the JCL.

Thanks and Regards,
Murali Mohan K
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Aug 22, 2006 10:12 am    Post subject:
Reply with quote

I'm assuming you want to use SDSF command from within JCL. Here is my way to print an output dataset:
Code:
//OFERICO JOB (),@SDSF,MSGCLASS=X,CLASS=U,NOTIFY=&SYSUID               
//**********************************************************************
//* Issue SDSF commands in batch                                       *
//**********************************************************************
//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 jobname
ST                                                                     
FILTER JOBID EQ jobid
++?                                                                     
FIND 'MSGUSR'                                                           
++S                                                                     
PRINT ODSN 'your.output.dataset' * SHR                                 
PRINT 1 9999                                                           
PRINT CLOSE                                                             
END                                                                     
EXIT                                                                   
/*                                                                     
//                                                                     


O.
Back to top
View user's profile Send private message
MKP

New User


Joined: 23 Aug 2006
Posts: 12
Location: Chennai

PostPosted: Wed Aug 23, 2006 8:13 pm    Post subject: Re: Is it possible to take XDC through job
Reply with quote

Hi,
I have some doubts please explain me

1) PRE job-name -----> we have to give job
name
2)FILTER JOBID EQ job-id ----> here we have to give job number

3) FIND 'MSGUSR' -----> here what we have to give

4) PRINT ODSN 'your.output.dataset' * SHR ---> Here we have to give the dataset name and what is * SHR

5) what is ++? and ++S
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Aug 23, 2006 8:19 pm    Post subject:
Reply with quote

Please read the fine manual for full explanations.

O.
Back to top
View user's profile Send private message
ug123
Warnings : 1

New User


Joined: 01 Mar 2007
Posts: 39
Location: Chennai

PostPosted: Sun Aug 05, 2007 12:42 pm    Post subject: Re: Is it possible to take XDC through job
Reply with quote

One small doubt.. how can we provide the last job name from spool dynamically to the above job

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

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Aug 06, 2007 12:22 am    Post subject:
Reply with quote

That's why I usually invoke batch SDSF commands from within REXX: First I use SDSF commands to find the last (or still active) job. From that, I take the JOBID and invoke SDSF commands again to print a dataset.

O.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Aug 06, 2007 2:48 am    Post subject:
Reply with quote

ofer71 wrote:
Please read the fine manual for full explanations.

O.


All you need to be able to do this has been posted above by ofer71. The manual is easy enough to follow and is extremely helpful.
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:



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