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

Want to mask Middle 8 Digits of Debit card number


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
yaswanth_maredu

New User


Joined: 21 Sep 2022
Posts: 2
Location: India

PostPosted: Wed Sep 21, 2022 6:30 am
Reply with quote

Debit card Number - 9867543246987653
Want to mask Middle 8 digits with 0
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1054
Location: Richmond, Virginia

PostPosted: Wed Sep 21, 2022 9:23 am
Reply with quote

My turn to ask:

What have you tried and what results did you get?
Back to top
View user's profile Send private message
yaswanth_maredu

New User


Joined: 21 Sep 2022
Posts: 2
Location: India

PostPosted: Wed Sep 21, 2022 10:50 am
Reply with quote

Sorry
i didnt try any thing want suggestions to start this
i am a Fresher so posted for suggestions
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Wed Sep 21, 2022 7:52 pm
Reply with quote

If card number is PIC 9(16), consider breaking it into further sub fields of PIC 9(4), PIC 9(8), PIC 9(4).

Or, use reference modification.

I’ll leave the details for you to discover.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Filter records where condition is in ... SYNCSORT 6
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
No new posts Simplify SORT CARD to combine INREC a... DFSORT/ICETOOL 6
No new posts Sort card to generate the DSN DFSORT/ICETOOL 17
No new posts Sort card to know that creation date ... DFSORT/ICETOOL 10
Search our Forums:


Back to Top