Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / kiran

As per the sort card,

1. Sort statements get executed on input file - System
sorts all the records on 20,4 in decending order and then
10,3 in decending order.
2. Sorted records write to the o/p based on the out rec
formatting.
3. As mentioned in the question, the LRECL mentioned in the
sortout will not efect the output file record length.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to run batch program without jcl?

11335


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.

2298


what is JCL?

1105


How can an in-stream dataset be terminated?

1292


Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE

2410


How to run cobol program using jcl?

1158


can any one plzzzzzz tell the jcl code for creating ps using idcams

11538


How to override loadlib?

1957


How is a type of file defined in the jcl that executes the cobol program?

1144


What is the use of disp parameter?

1084


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

2644


Can I share my data with other jobs? How?

1031


What is concatenating?

1033


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

2465


Are there any set of rules for the names of the steps used in a job? What are they?

1016