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 / 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 |
How can the submitting users racf authority be overridden in a job stream?
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!!
diff bw SB37,SD37,SE37 ?( bcz these 3 belongs Space related abends only)
What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
In how ways you can pass the data from Jcl to cobol ?
What is a GDG? Why do we go for a GDG ? utility used to create GDG?
TIME parameter in JOB statement or EXEC statement specifies What type of time (CPU time or execution time)?
What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?
What is the difference between specifying DISP=OLD and DISP=SHR for a dataset?
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
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
What is STEPLIB, JOBLIB? What is it used for?