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

Comparision of Digits in the same line


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Uday Kumar R

New User


Joined: 07 Nov 2007
Posts: 27
Location: Mumbai

PostPosted: Mon Nov 19, 2012 1:22 pm
Reply with quote

Hi Team,
I am trying to understand, Is there any possibilty to compare digits in the same record. Say suppose like this.

Source data:
Code:

0005180040001328290XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX0005180040001328399
0005180040001356357XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX0005180040001328399
0005180040001328347XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX0005180040001328399
0005180040001328399XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX0005180040001328399


Out put:

Code:
0005180040001328399XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX0005180040001328399


Lenght of file: 80bytes
Comparision between: (1-19) Vs(51-69)
(1-19): Account number
(51-69) : Card number.
Trying to find, all the accounts having card number equal to Account number.

Thank you for giving your time.
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Nov 19, 2012 1:26 pm
Reply with quote

Code:
INREC IFTHEN=(WHEN=(pos1,length1,CH,EQ,pos2,length2),
                 dosomething))
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Nov 19, 2012 1:32 pm
Reply with quote

Bill,

INCLUDE COND could be used for this too

Is INREC better than INCLUDE??
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Nov 19, 2012 1:41 pm
Reply with quote

I was going from the "subject", maybe you read the thing better, Pandora-Box :-)
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts rewrite same SAY line CLIST & REXX 8
No new posts Merge files with a key and insert a b... DFSORT/ICETOOL 6
No new posts Repeat a DD line- comment and insert ... CA Products 3
Search our Forums:

Back to Top