Re: Cobol internal SORT causes changes in fields





?? Ursprüngliche Nachricht

Am 26.03.06, 16:23:14, schrieb ddd.best@xxxxxxxxx zum Thema Cobol
internal SORT causes changes in fields:


Hi,
When i'm trying to sort a file with Cobol internal SORT function I
have
the following problem:
My Records can have the same key, but last field in record has varying
length, and while sorting -the entry which has the longest value in it
is copied to other entries that has shorter values.

i.e:
Before sort I had: (the key here is: P100000000014125X)
P100000000014125X000026000000010100T3150
P100000000014125X000112000000030100P29091025
After sort:
P100000000014125X000112000000030100P29091025
P100000000014125X000026000000010100T31501025

there is a little setting: OPTION EQUALS on your sort, to get the
records in the same sequence the sort read it. Take a look on the
SYSOUT-listing.

You can provide it to your sort via DFSPARM (IBMSORT) or $ORTPARM
(SyncSort).

Einen schoenen Tag
Andreas Lerch



.



Relevant Pages

  • SORT - Internal vs External (was: Performance problem with a VSAM files
    ... This is aimed and IBM z/OS shops. ... If your shop uses a currently supported IBM COBOL compiler and uses the FASTSRT ... Internal program with SORT having Input Procedure and Output Procedure ... CAN use an internal SORT for one and then catalog the output in an OUTPUT ...
    (comp.lang.cobol)
  • Re: Performance problem with a VSAM files
    ... Other VSAM created were not that big and performance fot ... >> I would never recommend imbedding a sort inside a program except as a last ... But if we get internal sort out of those programs, ... COBOL-74 and from GMACS assembler. ...
    (comp.lang.cobol)
  • RE: Cobol Internal sort and DLI Databases
    ... Cobol Internal sort and DLI Databases ... I had a program extracting data off a DLI Database inside a Sort Input ... EXCP I/O and about 5 seconds. ...
    (bit.listserv.ibm-main)
  • Re: No list email
    ... den 27.06.2005 schrieb Don Levey um 16:52: ... > sort of change in the delivery rules which would account for this? ... legal statement: http://www.uni-x.org/legal.html Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp ...
    (Fedora)
  • Re: First Bin of the Summer...
    ... "dwb" schrieb im Newsbeitrag... ... Maybe you should organise some sort of German get together and see if ...
    (uk.rec.motorcycles)