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
 

 

Comparision of Digits in the same line

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Uday Kumar R

New User


Joined: 07 Nov 2007
Posts: 25
Location: Mumbai

PostPosted: Mon Nov 19, 2012 1:22 pm    Post subject: Comparision of Digits in the same line
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Mon Nov 19, 2012 1:26 pm    Post subject: Reply to: Comparision of Digits in the same line
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

Moderator


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

PostPosted: Mon Nov 19, 2012 1:32 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7306

PostPosted: Mon Nov 19, 2012 1:41 pm    Post subject: Reply to: Comparision of Digits in the same line
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count the length of the record & ... sreekusr JCL & VSAM 0 Thu Mar 23, 2017 7:52 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Insert Lines in JCL with Rexx after a... Willy Jensen CLIST & REXX 3 Tue Aug 30, 2016 4:18 pm
No new posts Syntax to check the first 4 digits of... kshirabdhi DFSORT/ICETOOL 10 Tue May 03, 2016 12:21 pm
No new posts ISREDIT - Position Cursor on the Comm... Tarique Anwer TSO/ISPF 5 Wed Feb 03, 2016 12:44 pm


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