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

i need some shortcuts and tso commands can any on ehelp me in these ?

1 Answers  


Definition of COND parameter in JCL

5 Answers   TCS,


How to see the COMP3 value(packd decimal)

2 Answers   iGate,


What is the difference between Sysin,Sysout,Sysdbout and Sysudump?

3 Answers  


When cursor is not closed what is the error?

3 Answers   IBM,






I HAVE A SEQUENTIAL FILE CONTAINING ONE RECORD IN WHICH I HAVE ONE FIELD AS CUSTOMER IDENTITY NUMBER FIELD WHICH IS A SIGNED FIELD. HOW TO SEQUENTIALLY INCREMENT THIS FIELD USING OVERLAY PARAMETER?.

1 Answers  


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

0 Answers  


wht do u mean by internal reader in jcl ? wht is the use of internal reader ?

1 Answers   Syntel,


How do you create a temporary dataset?

0 Answers  


wht r different types of sorts ?

1 Answers   L&T,


What is the use of IEBGENER ?

2 Answers   Cap Gemini, Wipro,


What does a disposition of (MOD,DELETE,DELETE) mean ?

0 Answers  


Categories