View previous topic :: View next topic
|
Author |
Message |
tushar_study
New User
Joined: 01 Feb 2007 Posts: 30 Location: Mumbai
|
|
|
|
Hi ,
I have the following Working storage declaration :
01 ws-N pic 9(03) value 003.
01 ws-A pic X(03) .
I need to move ws-N to ws-A(as i need to display only 3 and not 003 on a report.Can some1 please help.
Thanks in advance,
Tushar |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
tushar_study wrote: |
I need to move ws-N to ws-A(as i need to display only 3 and not 003 on a report. |
What do you want where the zeros were?
What if the number was 303? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
RTFM - look for EDIT or EDIT MASK |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
tushar_study wrote: |
Hi ,
I have the following Working storage declaration :
01 ws-N pic 9(03) value 003.
01 ws-A pic X(03) .
I need to move ws-N to ws-A(as i need to display only 3 and not 003 on a report.Can some1 please help.
Thanks in advance,
Tushar |
I would suggest that you look in the COBOL manual for the PIC clause. |
|
Back to top |
|
|
|