What is the use of DUMMY statement in the JCL?
What is the use of DUMMY Utility in the JCL?

Answers were Sorted based on User's Feedback



What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?..

Answer / sukumar

The DUMMY statement will allow a Jcl program to run if a
data set does not exist.

Following example:
//JOB1 JOB NOTIFY=&SYSUT1
//STEP1 EXEC PGM=IEBGENER
//DD1 DD DSN=IASM12.CLASS.PS1,DISP=SHR
//DD2 DD DSN=ISAM12.CLASS.PS2,DISP=SHR
//SYSIN DD DUMMY
//*Here statements tells about no input data.

Correct me if i'm wrong...... okai

Is This Answer Correct ?    38 Yes 10 No

What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?..

Answer / harsh kumar

The DUMMY parameter specifies that no device is to be
allocated to this DD statement and that no disposition
processing or I/O is to be
done.
One use of the DUMMY parameter is in testing a program.
When testing is finished and you want input or output
operations performed on the data set, replace the DD DUMMY
statement with a DD statement that fully defines the data
set.

Is This Answer Correct ?    24 Yes 4 No

What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?..

Answer / sivakumar sekharannair

The use a a DD statement with a DUMMY parameter will allow
a program to run if a data set does not exist. In the cobol
program the OPEN will be successful, the first READ will
return an End-of-File return code and the close will be
successful.

Is This Answer Correct ?    20 Yes 5 No

What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?..

Answer / sankar

i think for the jcl ,we should have to give input in sysin
dd ststement.if we dont give any input then by default we r
giving this as an input. Becos they need a kind of input
from that place. plz give suggesion for my answer.....

Is This Answer Correct ?    13 Yes 3 No

What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?..

Answer / rahul tripathi

DUMMY statement is used in JCL to specify the MVS that no
device,disposition and I/O processing is to be done for the
dummy file. It is used in the DD statement in case we want
to refer to some file which does not exists or to refer to
a null file.

//SYSIN DD DUMMY

IS EQUIVALENT TO ........

//STEP01 DD DSN=NULLFILE

Is This Answer Correct ?    10 Yes 2 No

What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?..

Answer / lovely

Specifies no space allocation & no disposition processing

Is This Answer Correct ?    13 Yes 6 No

What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?..

Answer / r.pugazhendhi

Dummy specifies that no devices are to allocated to the file
reference by the DD name and that all i/o requests be bypassed

Is This Answer Correct ?    5 Yes 0 No

What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?..

Answer / sai

dummy statement is used to suppressed command processing.

Is This Answer Correct ?    13 Yes 11 No

What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?..

Answer / himanshu pratap

basically dummy is used to test the execution of program
and it is mention in the program only if there is no
control parameter in the jcl.It is mandatory to write dummy
in the case of iebgener utility.

Is This Answer Correct ?    3 Yes 1 No

What is the use of DUMMY statement in the JCL? What is the use of DUMMY Utility in the JCL?..

Answer / kumar

Dummy mainly used when u want check the program flow and not producing any output of it..

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JCL Interview Questions

If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

0 Answers  


I've one sequential file, That file contains millians of Junk & CHAR recoreds example File 1 ,,,,,...,,,.....,.,.INFOSYS.....,,,,,,,,,,,WIPRO..........., ,...,..,. My questions is : I want omit the 44th posstion to 4 CHAR (WIPRO) remaining things I want output file (including Junk CHAR also)... How can we slove this problem & give me a syntax. Please provide the result as soon as possible.

5 Answers   CTS,


State the uses of syspring, sysin, sort fields, sum fields and dummy.

0 Answers  


THERE IS ONE STEP AS BELOW: //STEPJS060 EXEC PGM=XYX, COND=((200,EQ,JS010),(0,NE,JS020.C),EVEN) COULD ANY ONE EXPLAIN HOW COND PARAMETER WORKS HERE? I AM CONFUSED BECOZ OF "EVEN".

2 Answers  


What is the use of IEBGENER ?

2 Answers   Cap Gemini, Wipro,






i am trying to copy a PS file into VSAM file in step2 by using PGM=IDCAMS,COND=(0,LT) and the pS file is getting sorted in the step1. I got the return code 00 for step1 but step2 got flushed. can u please help on this. Below is My JCL. SEPP050 EXEC PGM=SORT,REGION=6144K SYSIN DD DSN=SYSCMN.PROD.CCLIB (F5910BNN), DISP=SHR SYSOUT DD SYSOUT=* SYSUDUMP DD SYSOUT=A SORTIN DD DSN=Z1225BT.F5910EPP.HISOUT, DISP=SHR SORTOUT DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT5, DISP= (NEW,CATLG,DELETE),UNIT=DELQ, SPACE=(CYL, (500,500),RLSE), DCB= (RECFM=FB,LRECL=1606,BLKSIZE=16060,BUFNO=15) SORTWK01 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK02 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK03 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK04 DD UNIT=SYSDA,SPACE=(CYL, (1)) SYSIN1 DD UNIT=VIO,SPACE= (80,1) * SEPP060 EXEC PGM=IDCAMS,COND= (0,LT) SYSPRINT DD SYSOUT=* SYSOUT DD SYSOUT=* SYSLIST DD SYSOUT=* *** DD01 DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT, // DISP=SHR //*** //DD01O DD DSN=Z1225BT.F5910PHS, // DISP=SHR, // AMP=(AMORG,'BUFND=12,BUFNI=5') //SYSIN DD DSN=SYSCMN.PROD.CCLIB(F5910BBB), // DISP=SHR Output RC for the two steps: SDCBPJ05 SEPP050 00 236 .00 .00 .0 SDCBPJ05 SEPP060 FLUSH 0 .00 .00 .0

3 Answers  


Explain dd statement in jcl?

0 Answers  


Can you execute a PROC from another PROC?

8 Answers   Keane India Ltd,


01 GROUP-ITEM 05 AMOUNT-1 PIC 99V9 USAGE COMP VALUE 50 05 AMOUNT-2 PIC 9(4)V99 USAGE COMP MOVE ZERO TO GROUP-ITEM ADD 50 TO AMOUNT-1 what will be the content of AMOUNT-1? a.50 b.100 c.0 d.unpredictable

1 Answers  


Are there any set of rules for the names of the steps used in a job? What are they?

0 Answers  


what is force complete

2 Answers   IBM,


Why do you use a control card?

3 Answers   IBM, iNautix,


Categories