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: 1035
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: 387
Location: Inside the SPEW (Cincinnati OH 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 COBOL Ascending and descending sort n... COBOL Programming 5
No new posts Count the number of characters in a f... CA Products 1
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts Need suggestion on a sort card DFSORT/ICETOOL 10
No new posts Assembler: Set Program Mask for decim... PL/I & Assembler 4
Search our Forums:

Back to Top