Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Comparing two sequential files Mohan Kothakota COBOL Programming 14 Mon Apr 16, 2018 6:35 pm
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts How to Generate JCL using Sort naveen katkuri DFSORT/ICETOOL 7 Tue Mar 13, 2018 3:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us