View previous topic :: View next topic
Author
Message
Bill Woodger Moderator Emeritus Joined: 09 Mar 2011Posts: 7309 Location: Inside the Matrix
If one of your record-types is not doing FIELDS=NONE in your original, then it is not going to work in one go.
I'll say it once more. Extract you data from your input files into seperate files.
Seperately SORT each.
You may want to take advantage of Kolusu having spotted that some of your record types have the same length.
Back to top
umanaga New User Joined: 09 Apr 2007Posts: 33 Location: India
Sorry i missed to copy
after SORT.
On AB record, Sum fields is present but not on 5, 673 bytes.
since skolusu extracted AB as below by skipping 48-52 bytes, these are missed in o/p file
Code:
IFTHEN=(WHEN=(5,2,CH,EQ,C'AB'),BUILD=(1,4,5,43,53,66,564Z))
So on AB, can i put 48-52 after 677 during INREC build and build OUTREC from it.
Back to top
Bill Woodger Moderator Emeritus Joined: 09 Mar 2011Posts: 7309 Location: Inside the Matrix
Yes, we know that.
So, do it differently.
I'm not going to outline it again.
Back to top
dbzTHEdinosauer Global Moderator Joined: 20 Oct 2006Posts: 6966 Location: porcelain throne
Bill Woodger wrote:
I'm not going to outline it again.
you will have to since the TS obviously only reads what he thinks is important.
Back to top
Skolusu Senior Member Joined: 07 Dec 2007Posts: 2205 Location: San Jose
umanaga,
I guess you have trouble making up your mind. In one post you say you don't want to eliminate dups and in another you want to eliminate them. The best option for you is to split the file and run the individual sorts.
Back to top
umanaga New User Joined: 09 Apr 2007Posts: 33 Location: India
Sorry guys for confusion..i intended to post as below but missed last line earlier.. and i was not able to edit post after 10 mins
Code:
OUTFIL FILES=T1,
INCLUDE=(5,2,CH,EQ,C'AB'),
OUTREC=(5,116),VTOF,
REMOVECC,
TRAILER1=(1:5,11,
12:'999999999999',
24:COUNT=(M11,LENGTH=9),
33:TOTAL=(68,11,ZD,EDIT=(STTTTTTTTT.TT),SIGNS=(+,-)),
SORT FIELDS=(05,43,BI,A,
53,66,BI,A)
SUM FIELDS=NONE
i was able to retain 48-52 data in AB record..appreciate all your suggestions.. spl thanks to skolusu
Back to top
Please enable JavaScript!