View previous topic :: View next topic
|
Author |
Message |
mouli
New User
Joined: 19 May 2005 Posts: 12 Location: kolkata
|
|
|
|
Hi all,
Say we have a variable A which is X(3) and variable B which is 9(3).
If we have values like "1 " , "10 " etc in A with trailing spaces and we want them as 001 and 010 respectively in B which is right justification of the data with preceeding zeroes.
How can that be accomplished with COBOL? Can anyone give the code snippet for that?
Thanks & regards,
Mouli |
|
Back to top |
|
|
somasundaran_k
Active User
Joined: 03 Jun 2003 Posts: 134
|
|
Back to top |
|
|
mouli
New User
Joined: 19 May 2005 Posts: 12 Location: kolkata
|
|
|
|
Hi somasundaran_k,
Thank u very much for ur solution. it's working very fine.
thanks & Regards
mouli |
|
Back to top |
|
|
|