View previous topic :: View next topic |
Author |
Message |
Fin Beginner
Joined: 19 Jan 2004 Posts: 27 Topics: 8
|
Posted: Wed Nov 24, 2004 1:20 pm Post subject: Syncsort syntax? (INCLUDE) |
|
|
If I look at my NAMEOFINFILE I can see records with x'0008' from position 88 but when I run this SORT the OUTFILE is empty. I am puzzled, can anyone help?
(The item is defined as a PIC S9(4) COMP)
Thanks.
000009 //SYSOUT DD SYSOUT=*
000010 //SORTIN DD DSN=NAMEOFINFILE,
000011 // DISP=SHR
000012 //SORTOF01 DD DSN=NAMEOFOUTFILE,
000013 // UNIT=DASD,
000014 // SPACE=(CYL,(10,10),RLSE),
000015 // RETPD=10,
000016 // DCB=*.SORTIN,
000017 // DISP=(NEW,CATLG,CATLG)
000018 //SYSIN DD *
000019 SORT FIELDS=COPY
000020 OUTFIL FILES=01,INCLUDE=(88,2,BI,EQ,X'0008')
000021 /* |
|
Back to top |
|
 |
Jeba Beginner

Joined: 02 Dec 2002 Posts: 48 Topics: 9 Location: Columbus, GA
|
Posted: Wed Nov 24, 2004 1:38 pm Post subject: |
|
|
Fin,
Please make sure whether your input file has records with X'0008' in the 88th position.
I tried the same and it worked for me. Use HEX ON command in the input dataset and then see whether you really have X'0008' in 88th position.
Since the item is defined with S9(04) COMP, it might be having some other value. _________________ Thanks,
Jeba
(Known is a drop Unknown is an ocean) |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Nov 24, 2004 2:04 pm Post subject: |
|
|
Fin,
If your input file is of VB format then your actual position of data is at 92th byte( 88 + 4 bytes rdw)
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Thu Nov 25, 2004 12:50 am Post subject: |
|
|
Fin,
One more thing. If your input file is of FBA, then the actual position of the data will be 89 (88 + 1 carriage control char).
Thanks,
Phantom |
|
Back to top |
|
 |
Fin Beginner
Joined: 19 Jan 2004 Posts: 27 Topics: 8
|
Posted: Thu Nov 25, 2004 6:11 am Post subject: |
|
|
It was a VB file and so when I changed to position 92, I got my results - once again, thanks Kolusu.
It had me because when I looked at it in Fileaid it appeared as if it was in 88. |
|
Back to top |
|
 |
|
|