If we want to see the eliminated duplicate record thru
SORT, how its output file will be managed
Answer Posted / mahaveer
//SORTXSUM DD DSN=datasetname,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(1,4),RLSE),
// DCB=(RECFM=FBM,LERCL=80,BLKSIZE=800)
.
.
//SYSIN DD *
SORT FIELDS=(1,3,CH,A)
SUM FIELDS=NONE,XSUM
/*
We can see the eliminated duplicate records in sortxsum
| Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
what is the use of IEBGENER utility?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
how you can access an uncataloged dataset in a JCL?
In job processing, what happens in execution stage?
how can you check if a file is empty using jcl?
Is automatic restart possible in jcl? If yes, how?
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
Give the syntax of job specifying jcl statement.
How does jcl act on code(if you take a cobol program)?
How to execute 2nd and 4th steps among 5 steps in jcl proc?
how would you create a temporary dataset? And where will you use them?
write a jcl to execute a job by 7:00 am on jan 20,1986?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
What dd statement is used to supply the name of a dataset?
what is the compile process of cobol program expalin with code