IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem in comparing different datatypes in SORT JOINKEYS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Mon Jul 20, 2009 9:01 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top