Page 1 of 2

JCL Help

PostPosted: Mon Oct 22, 2012 5:56 pm
by snkdbpc
Can anyone help me out with following piece of jcl,

//DFHDUMP EXEC PGM=IEFBR14
//DFHDMPA DD DSN=ZCON000.CICS660.DFHDMPA,
// DISP=(,CATLG,DELETE),
// BLKSIZE=4096,RECFM=F,LRECL=4096,
// SPACE=(CYL,(5,5))
//DFHDMPB DD DSN=ZCON000.CICS660.DFHDMPB,
// DISP=(,CATLG,DELETE),
// BLKSIZE=4096,RECFM=F,LRECL=4096,
// SPACE=(CYL,(5,5))
//DFHAUXT DD DSN=ZCON000.CICS660.DFHAUXT,
// DISP=(,CATLG,DELETE),
// BLKSIZE=4096,RECFM=F,LRECL=4096,
// SPACE=(CYL,(5,5))
//DFHBUXT DD DSN=ZCON000.CICS660.DFHBUXT,
// DISP=(,CATLG,DELETE),
// BLKSIZE=4096,RECFM=F,LRECL=4096,
// SPACE=(CYL,(5,5))

This JCL is suppose to create datasets-DFHDUMP,DFHDMPA,DFHDMPB,DFHBUXT and DFHAUXT which are be required to create a cics region , but when I submit this job, i receive no output (*RC=0 is displayed but when I goto SDSF, I see only this jcl part, nothing more and the JOB is shown as EXECUTING).The datasets listed above are created.Can anyone help me out with this?

Re: JCL Help

PostPosted: Mon Oct 22, 2012 6:18 pm
by Robert Sample
IEFBR14 is a do-nothing program. It does not create any output for you to view. The purpose of this program is to allow JCL allocation (etc) of data sets, so the only output your job SHOULD have is the JES output.

Re: JCL Help

PostPosted: Mon Oct 22, 2012 6:25 pm
by enrico-sorichetti
posts with irrelevant titles will not appeal to people willing to help

to make the most out of the questions You ask it would be wise for You
to meditate on
How To Ask Questions The Smart Way
http://catb.org/~esr/faqs/smart-questions.html

and to learn how to use the code tags for SOURCE an JCL

1234567890
qwertyuiop
asdfghjkl
zxcvbnm

1234567890
qwertyuiop
asdfghjkl
zxcvbnm


the text with the code tags will be displayed with a fixed font,
making easier for the people willing to help to understand
SOURCEs, JCLs, SYSOUTs

Re: JCL Help

PostPosted: Mon Oct 22, 2012 7:09 pm
by snkdbpc
So do I need to create the datasets(DFHDUMP,DFHDMPA,DFHDMPB,DFHBUXT and DFHAUXT) explicitly?These datasets are not allocated...

Re: JCL Help

PostPosted: Mon Oct 22, 2012 7:20 pm
by Robert Sample
The JCL you posted, if executed would explicitly create the data sets. Either you have executed the JCL and the data sets exist on the system, or you have not executed the JCL and the data sets do not exist on the system.

Re: JCL Help

PostPosted: Mon Oct 22, 2012 7:26 pm
by snkdbpc
When I check the status of this jcl in SDSF,the queue is shown as EXECUTION and status as DUP, whereas other JCL s(which has given a result), the queue is shown as PRINT...
To add the datasets are not created.

Re: JCL Help

PostPosted: Mon Oct 22, 2012 7:46 pm
by Akatsukami
snkdbpc wrote:When I check the status of this jcl in SDSF,the queue is shown as EXECUTION and status as DUP, whereas other JCL s(which has given a result), the queue is shown as PRINT...
To add the datasets are not created.

This suggests that there is at least one other job in the system with the same name; only one such job will run at a given time.

Re: JCL Help

PostPosted: Mon Oct 22, 2012 7:49 pm
by enrico-sorichetti
the queue is shown as EXECUTION and status as DUP


jes2 prevents having running jobs with the same name
investigate the Your organization standards for job naming

the DUP job will run as soon as the previous has terminated

usually <personal> jobs have a jobname consisting of Your <userid> and one letter
using the above it should be easy to find out about duplicate names in the execution queue

Re: JCL Help

PostPosted: Mon Oct 22, 2012 7:53 pm
by snkdbpc
I have executed the job several times (but no of help :( ) here's what the sdsf status screen displays,
---------------------------------------------------------------------------
SDSF STATUS DISPLAY ALL CLASSES LINE 1-12 (12)
NP JOBNAME JobID Owner Prty Queue C Pos SAff ASys Status
DFHDUMP JOB08429 ZCON317 6 EXECUTION A DUP
DFHDUMP JOB08607 ZCON317 6 EXECUTION A DUP
DFHDUMP JOB08621 ZCON317 6 EXECUTION A DUP
DFHDUMP JOB08628 ZCON317 6 EXECUTION A DUP
DFHDUMP JOB08705 ZCON317 6 EXECUTION A DUP
DFHDUMP JOB08706 ZCON317 6 EXECUTION A DUP
DFHDUMP JOB08755 ZCON317 6 EXECUTION A DUP
DFHDUMP JOB08779 ZCON317 6 EXECUTION A DUP
DFHDUMP JOB08816 ZCON317 6 EXECUTION A DUP
DFHDUMP JOB08862 ZCON317 6 EXECUTION A DUP
DFHDUMP JOB08898 ZCON317 6 EXECUTION A DUP
DFHDUMP JOB08907 ZCON317 6 EXECUTION A DUP

Re: JCL Help

PostPosted: Mon Oct 22, 2012 7:57 pm
by enrico-sorichetti
... job 5-6 times...

wiser to review Your counting skills :mrgreen:
I see 12duplicates

until You change Your JOBNAME naming convention
and keep track of what You have submitted and is executing
You will face the same problem over and over.

and start reading the manuals Yourself
for example
z/OS V1R13.0 MVS JCL User's Guide
http://publibz.boulder.ibm.com/cgi-bin/ ... 0610095749
z/OS V1R13.0 MVS JCL Reference
http://publibz.boulder.ibm.com/cgi-bin/ ... 0814180937

but also the IBM REDBOOKS here
for example
Introduction to the New Mainframe: z/OS Basics
http://www.redbooks.ibm.com/abstracts/sg246366.html

and the series
ABCs of z/OS System Programming
( link to the first of it )
http://www.redbooks.ibm.com/abstracts/sg246981.html