Page 1 of 1

mask the middle number using the sort

PostPosted: Mon Oct 15, 2018 9:23 pm
by thotlma
Hi ALL

i have requrement like this. could you please help any one help me?

i have 16 digit length fileld in my input file. if more than 13 digit length then first 4 digit as it is and last 4 digits as it is and mask the remaining the number
if less than 13 then keep the number as it is.

example
IP file


0000359681243354  
0000359681243354  
810176733  
     

OP


0000........3354  
0000........3354  
810176733
 


the code tags... the flucking code tags
or have your posts deleted

Re: mask the middle number using the sort

PostPosted: Tue Oct 16, 2018 9:46 am
by NicC
Test for byte 14 being non-blank. If it is then overlay the required bytes with the required mask.
And use data sets, not files.