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

The ISPF 3.13 comparison option to ignore particular positin


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pavankumar.m
Warnings : 1

New User


Joined: 28 Nov 2010
Posts: 53
Location: Mumbai

PostPosted: Tue Apr 29, 2014 12:58 pm
Reply with quote

Hi ,

I have few records in my input file, but I need ignore comparison of particular position in particular record, below is the example.

File 1:-

acbd efgh i jckl
1234 5468 8 10 1213
IJKL MNQP REQ
AAAA BBBB CCC DDD

File 2:-
acbd efgh i jckl
1234 9999 8 10 1213
IJKL MNQP REQ
AAAA BBBB CCC DDD


here I need to compare all the records one to one, this can be done using 3.13, but my condition is while comparing second record I need to ignore 6th position to 10th position, do we have any option for this kind of comparison,

Please provide me if is there any option ?
1. here if key is '1234' then 6th to 10th position needs to be ignored

Regards,
Pavan Kumar.M
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Apr 29, 2014 1:04 pm
Reply with quote

Quote:
Please provide me if is there any option ?


NO!

superc is content agnostic
You can choose what columns compare ,
but the comparison will be carried on for all the records
Back to top
View user's profile Send private message
Pavankumar.m
Warnings : 1

New User


Joined: 28 Nov 2010
Posts: 53
Location: Mumbai

PostPosted: Tue Apr 29, 2014 1:24 pm
Reply with quote

Thank you enrico for confirming on this.
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: Wed Apr 30, 2014 2:04 am
Reply with quote

Hello,

Depending on your particular situation, you could copy the files forcing a common value into those positions and then they would compare equal . . .
Back to top
View user's profile Send private message
nartcr

New User


Joined: 06 Jun 2007
Posts: 83
Location: anada

PostPosted: Wed Apr 30, 2014 3:29 am
Reply with quote

Please submit through batch instead of foreground, and add CMPCOLM statement in SYSIN DD* statements for all columns except from 6 to 10.

If this doesnt work for your requirement, you can use sort to achieve the same.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Apr 30, 2014 4:12 am
Reply with quote

did You notice that the TS requirement is NOT to ignore columns 6-10 always
but to ignore them ONLY for the second record or when the first 4 positions contain some predefined value
???
Back to top
View user's profile Send private message
nartcr

New User


Joined: 06 Jun 2007
Posts: 83
Location: anada

PostPosted: Wed Apr 30, 2014 4:32 am
Reply with quote

Sorry, please ignore my comments above.
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Looking for a little history of ISPF ... TSO/ISPF 5
No new posts SCOPE PENDING option -check data DB2 2
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts CICS vs LE: STORAGE option CICS 0
Search our Forums:

Back to Top