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

Compare Two files having different record lengths.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 2481
Location: @my desk

PostPosted: Fri Jun 13, 2008 8:27 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
Search our Forums:

Back to Top