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
 
Need to compare two files using SYNCSORT

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

New User


Joined: 24 May 2007
Posts: 52
Location: Chennai

PostPosted: Fri Feb 22, 2008 9:55 am    Post subject: Need to compare two files using SYNCSORT
Reply with quote

Hi All,
I need to compare two files. One file contains the sequence number. Other contains header, data and trailer.
Header contains the sequence number and trailer contains the total number of records.

Sequence number file is 5bytes length. Ex. 12345
Details of second file:
H2102200812345
abd
saf
asdf
T000003

First i need to validate the sequence number and if matches, then i need to validate the trailer count whether the number of records read matches with the trailer count.

Currently I'm using a PLI program to do the above. Is it possible to do the above using SYNCSORT tool. Is that an efficient way?


FYI... My environment dont have DFSORT installed. We have only SYNCSORT v1.1

Please let me know the possibilities.


Regards,
ursvmg
Back to top
View user's profile Send private message

Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Feb 22, 2008 10:45 am    Post subject: Re: Need to compare two files using SYNCSORT
Reply with quote

ursvmg wrote:
FYI... My environment dont have DFSORT installed. We have only SYNCSORT v1.1
You know this & still the post is in DFSORT forum. Here in this forum Syncsort related queris are discussed under JCL forum.
Back to top
View user's profile Send private message
ursvmg

New User


Joined: 24 May 2007
Posts: 52
Location: Chennai

PostPosted: Fri Feb 22, 2008 11:25 am    Post subject:
Reply with quote

Oh.. I'm sorry. Will do it properly hereafter ..
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Fri Feb 22, 2008 12:31 pm    Post subject:
Reply with quote

AFAIK... you need version 1.2 in order to use the JOIN feature.
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 Reformatting and adding additional fi... Badbeef SYNCSORT 6 Thu Apr 05, 2018 4:45 pm
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am
No new posts Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am
No new posts How to build one file from two input ... daniele DFSORT/ICETOOL 5 Tue Feb 27, 2018 6:45 pm

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