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
Answer Posted / 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 View All Answers
how JCL works?
How to override loadlib?
Suppose I have five jobs to do. But I want to hold one?
what is DSN in JCL and what are the parameters to declare the DSN?
What are some jcl statements that are not allowed in procedures?
What is NOTCAT ?
Differentiate between addressing mode and run mode.
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
if we want to use a gdg which is already created by some job, then how to use the reference of the last generation in a jcl?
how to do automated restart when a job abends?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
How does the jcl specify the job to os?
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
what are JCLLIB and STEPLIB in JCL?
What parameter directs the output of the job log dataset?