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
 

 

Compare Two files having different record lengths.

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

New User


Joined: 11 Mar 2008
Posts: 8
Location: pune

PostPosted: Thu Jun 12, 2008 11:19 pm    Post subject: Compare Two files having different record lengths.
Reply with quote

Hi,

I have 2 files:
File1: Lrecl 1199
File2: Lrecl 1200

All fields of these 2 files are of same length and type except 1 field at position 874 (say COL874). This field has length of 4 char in file1 and lengh 5 char in file2.
So the fields coming after above mentioned field at position 874 in file1 , are shifted by 1 in file2.

Now all data in both files is same except for the COL874 field. I want to prepare a test case for the same. Can anyone please help me out how can I compare these 2 files and show that all data in files is same except for the column COL874?

Thanks,
Dhanashree.
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2238
Location: @my desk

PostPosted: Fri Jun 13, 2008 8:27 am    Post subject:
Reply with quote

Dhanashree,

With SUPERCE, you can specify the exact positions to compare.

Thanks,
Arun
Back to top
View user's profile Send private message
tangentray

New User


Joined: 30 Dec 2006
Posts: 20
Location: Kolkata, India

PostPosted: Fri Jun 13, 2008 11:30 am    Post subject:
Reply with quote

Round about way:

Use SYNCSORT with OUTREC to insert a space at the 874+4th position and create a new file of length 1200.

Now compare them with any method.
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 Record Not found in AlX but record re... mukun264 COBOL Programming 5 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


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