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


Please Help Members By Posting Answers For Below Questions

What do you understand by the term job time – out and how can you overcome that?

595


Explain the function of job statement in jcl?

644


What is multithreading in jcl?

935


What happens if both JOBLIB & STEPLIB is specified ?

604


We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?

1761






What is the maximum length of a single line of jcl?

824


what is use of dsn parameter in dd statement?

666


can any one plzzzzzz tell the jcl code for creating ps using idcams

10499


Is it possible to define dd statements as you want?

644


Name the statement which can be used to send data to another mvs jes3 node?

595


Explain how can values be passed from the job stream to an executable program?

613


What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?

1579


which utility is used to run a cobol-db2 program?

801


Explain the jcl exec statement?

644


What is catelog procedure and how many catelog procedure to use in one job?

7437