What is SORT ? How do we eliminate duplicate records ? How
do I select some records using SORT ?

Answer Posted / jagan

# 1 ---sort is a sorting of records either in asc/ des
order,
---sort field(6,10,A,CH) or sort field(6,10,A,CH),equal
sum field none
---sort field(6,10,A,CH) 6 is the starting position
10 record length
ch for alpnum (X)
A order of sorting

Is This Answer Correct ?    1 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is automatic restart possible in jcl?

745


How to pass data to a program that is coded in an exec statement?

834


Explain how can values be passed from the job stream to an executable program?

632


What is the function of //jcllib statement?

813


is there any way to execute more than one proc in the same exec statement at the same time..?

2113






Can I share my data with other jobs? How?

672


what is use of dcb parameter in dd statement?

778


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

637


Brief description of inline procedure of jcl.

687


in ways data can be passed to a COBOL program from JCL?

669


Explain the function of the dd dcb keyword?

706


Why block size is multiple of lrecl in jcl?

915


What is the purpose of dd dummy statement?

947


What is the purpose of dd?

728


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.

1738