Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 7315

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: 1542
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: 7315

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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us