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 to resolve the error "WER488A JOIN CAPACITY EXCEEDED" I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem? I am using SYNCSORT with JOINKEYS to compare 2 files. I am Getting error - > WER488A JOIN CAPACITY EXCEEDED There are 2 files to be compared with about 2 million records each. LRECL is 3665. Can somebody give a pointer as to how to resolve this problem?
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?
Can an individual step be restricted from using all the jobs allowed cpu time?
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
which parameter is used to check the syntax of a jcl without executing it?
What is the function of the dd dcb keyword?
Describe the various parameters utilized in the creation of a gdg?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat
Explain the function of the dd dcb keyword?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
What is one line to pass PARM from JCL to COBOL?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
Explain the purpose of the dd keylen parameter?
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' ?
a dd statement has 2 types of parameters. Name them?