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

How can the submitting users racf authority be overridden in a job stream?

0 Answers  


Hi, I have a requirement File A : I have 6 records out of which 4 are same. File B: I have 8 records out of 6 records are same. The 4 records in FILEA and 6 records in FILE B are same. If we substract we will get two records, I need these two records in output file This is because to remove the duplicates from the database. Through easytrieve we can compare but for that there should not duplicates, but in my file I have duplicates. Thanks in advance!!

2 Answers  


diff bw SB37,SD37,SE37 ?( bcz these 3 belongs Space related abends only)

4 Answers   RBS,


What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?

2 Answers  


In how ways you can pass the data from Jcl to cobol ?

3 Answers   Cap Gemini, IBM,


What is a GDG? Why do we go for a GDG ? utility used to create GDG?

3 Answers   Xansa,


TIME parameter in JOB statement or EXEC statement specifies What type of time (CPU time or execution time)?

5 Answers   CTS,


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

0 Answers   IBM,


What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?

5 Answers   CitiGroup,


Are all (i), (ii), (iii), (iv) of the below are VALID to reference a temporary dataset ? STEP2 DD1 DD DSN = &&TEMP STEP3 DD2 DD (i) DSN = TEMP (ii) DSN = *.TEMP (iii) DSN = *.STEP1.DD1 (iv) DSN = *.STEP1.DD1.ONE

8 Answers   IBM,


How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.

0 Answers   CSC, SPIC,


What is STEPLIB, JOBLIB? What is it used for?

2 Answers  


Categories