Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem in comparing different datatypes in SORT JOINKEYS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
lanand_hps

New User


Joined: 05 Dec 2007
Posts: 82
Location: chennai

PostPosted: Mon Jul 20, 2009 7:33 pm    Post subject: Problem in comparing different datatypes in SORT JOINKEYS
Reply with quote

Code:

JOINKEYS FILE=F1
               FIELDS=(001,020,A,
                             021,010,A
                             031,007,A,
                             038,010,A,
                             048,010,A)
JOINKEYS FILE=F2
             FIELDS=(593,020,A,
                          081,010,A,
                          185,007,A,
                          140,010,A
                          012,010,A)


The field in file 1 (031,007,A) is comp-3 (PD) field whereas field in file 2 (185,007,A) is ZD. The matched records are not in output file.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jul 20, 2009 9:01 pm    Post subject:
Reply with quote

Hello,

These fields are not the same length, which is required by JOINKEYS.
Quote:
The number of JOINKEYS fields and their lengths and sorted order (A or D) must be the
same for both files, although their starting positions need not be the same.
These fields will be treated as binary format for purposes of comparison during the match
processing.
Possibly there is a way to reformat one of the fields before the JOINKEYS. . .
Back to top
View user's profile Send private message
sdsinfo

New User


Joined: 14 Jan 2008
Posts: 10
Location: bangalore

PostPosted: Thu Jul 23, 2009 4:55 pm    Post subject: hi
Reply with quote

for joins datatype or storage format, should be same.. instead ZD vs PD
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts Innovations in Your Mainframe Sort Arun Raj PC Guides & IT News 4 Wed Mar 15, 2017 10:38 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts SORT requirement sjiraga COBOL Programming 6 Thu Mar 09, 2017 9:11 pm
No new posts SORT to append Month and YEAR in MMYY... tisamf DFSORT/ICETOOL 1 Wed Mar 08, 2017 4:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us