Page 1 of 1

Amount padded with zeroes to the left

PostPosted: Thu Sep 06, 2012 1:11 pm
by seiko
hi all,
i want to convert this:
an amount of 1500.00 to amount with padded zeroes to the left (without decimal)
how can i have an amount with padded zeroes to the left?
thanks

Re: Amount padded with zeroes to the left

PostPosted: Thu Sep 06, 2012 2:04 pm
by BillyBoyo
Seems a very similar question to your other. Can you show the field definition, give some sample inputs and expected output for the samples.

Re: Amount padded with zeroes to the left

PostPosted: Thu Sep 06, 2012 4:01 pm
by NicC
Perhaps you are at college studying COBOL which is why you are asking basic questions. We do not give answers but point you in the right direction (hopefully). One of the right directions is paying attention in class. Another is doing your reading - of a good book on COBOL and/or the COBOL manuals - in particular the language reference. Do not think you do not need the manuals - I have been referring to them today - and that is after 30+ years experience!