How to get the last but one duplicate record of the file
using Sort?
Answer Posted / vikas pujar
Sort Dataset SORTXSUM will hold the duplicate records if in
Sysin dd *, we give option XSUM, after SUM FIELDS=NONE. So
last but one record in dataset should be the answer.
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is jcl in mainframe, and how many types of jcl statements are there for a job?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
Differentiate between addressing mode and run mode.
how would you create a temporary dataset? And where will you use them?
Explain how can values be passed from the job stream to an executable program?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
what is the use of JCL?
How to pass data to a program that is coded in an exec statement?
Can I send output of job to my remote device careerride123?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
How does the jcl specify the job to os?
When output dataset space is required, what quantity categories are used?
a dd statement has 2 types of parameters. Name them?