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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm


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