Amount padded with zeroes to the left



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Amount padded with zeroes to the left

Postby seiko » Thu Sep 06, 2012 1:11 pm

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
seiko
 
Posts: 8
Joined: Fri Aug 31, 2012 8:04 am
Has thanked: 0 time
Been thanked: 0 time

Re: Amount padded with zeroes to the left

 

Re: Amount padded with zeroes to the left

Postby BillyBoyo » Thu Sep 06, 2012 2:04 pm

Seems a very similar question to your other. Can you show the field definition, give some sample inputs and expected output for the samples.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: Amount padded with zeroes to the left

Postby NicC » Thu Sep 06, 2012 4:01 pm

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!
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post