MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Syncsort syntax? (INCLUDE)

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
Fin
Beginner


Joined: 19 Jan 2004
Posts: 27
Topics: 8

PostPosted: Wed Nov 24, 2004 1:20 pm    Post subject: Syncsort syntax? (INCLUDE) Reply with quote

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
View user's profile Send private message
Jeba
Beginner


Joined: 02 Dec 2002
Posts: 48
Topics: 9
Location: Columbus, GA

PostPosted: Wed Nov 24, 2004 1:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Nov 24, 2004 2:04 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Thu Nov 25, 2004 12:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Fin
Beginner


Joined: 19 Jan 2004
Posts: 27
Topics: 8

PostPosted: Thu Nov 25, 2004 6:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group