In a single step if input file is present then only need to
copy into output file or else need to through a RC is it
possible. Note : i want it in a single step



In a single step if input file is present then only need to copy into output file or else need to ..

Answer / shridhar

//RAS79002 JOB ,'CS
UPDATE',
//
MSGCLASS=Q,

//
CLASS=D,TIME=0

//*

//STEP010 EXEC
PGM=IDCAMS
//SYSPRINT DD
SYSOUT=*
//SYSOUT DD
SYSOUT=*
//INDD DD DSN=NUSEG58.SORTOUT,DISP=
(MOD,DELETE,DELETE),
// SPACE=(TRK,
(10,10),RLSE)
//OUTDD DD
DSN=NUSEG58.SORTOUT1,DISP=SHR
//SYSIN DD
*
REPRO -

INFILE(INDD) -

OUTFILE
(OUTDD)
/*

/*

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More JCL Interview Questions

Can we give two user name in NOTIFY parameter in JOBCARD

1 Answers   Syntel,


wht is the d/f between positional parameter n keyword parameter ?

1 Answers  


what JCL Procedures?

0 Answers  


in production region 100 steps are running,but i need to run only step5 without changing code how can i do it?

4 Answers   HCL,


Is automatic restart possible in jcl?

0 Answers  


I have a JCL with 10 steps, want to execute first 5 steps only, what are ways of doing it?is it possible to control through JOB card?

5 Answers   iGate,


Which COND paramter will u use to execute the step only if the previous step does not execute

3 Answers   BoA, HSBC,


what are JCLLIB and STEPLIB in JCL?

0 Answers  


how to execute the last 5 steps in jcl

2 Answers   Syntel,


How many steps we can overide in the proc's?

2 Answers   CS,


If the proc stepname is excluded while overriding the COND, TIME, REGION and PARM parameters while calling the proc, will the override only apply to the first step in the proc or all the steps for all the above parameters?

2 Answers  


There are 2 steps in a JCL. If the first step abends due to system or user abend and the second step has COND specified as EVEN or ONLY, will this step still be executed inspite of the abend in the previous step?

2 Answers  


Categories