i have 1000 records in input file and i want to sort it and
the first 200 records to be placed in output file. how to
do that??

Answer Posted / lachchu

Can you please write C code for the same ?

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?

743


Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?

2229


how to do automated restart when a job abends?

858


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 ?

9229


What dd statement is used to supply the name of a dataset?

786






Name the parameters which can be used to limit the number of records written to a sysout dataset?

662


what happens in execution stage in job processing?

659


Explain dfsort utility?

683


a dd statement has 2 types of parameters. Name them?

662


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

676


what JCL Procedures?

709


How to alter the parameters for the existing gdg?

725


in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?

2083


What is the use of disp parameter?

659


Is there any command to check wether the ps file is in sorted order?

2441