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

Is it possible to take XDC through job


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
murmohk1

Senior Member


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

PostPosted: Tue Aug 22, 2006 9:56 am
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: 2358
Location: Israel

PostPosted: Tue Aug 22, 2006 10:12 am
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
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: 2358
Location: Israel

PostPosted: Wed Aug 23, 2006 8:19 pm
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
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: 2358
Location: Israel

PostPosted: Mon Aug 06, 2007 12:22 am
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: 8797
Location: Welsh Wales

PostPosted: Mon Aug 06, 2007 2:48 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Search our Forums:

Back to Top