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: 1042
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top