View previous topic :: View next topic
|
Author |
Message |
sureshbabu.jv
New User
Joined: 11 Apr 2006 Posts: 41 Location: Chennai
|
|
|
|
Hi,
I have declared one pic clause in the working storage section that is EMP ID PIC 9(6).
EMP id's in the in the input file:
000001
000012
000113
001111
I want to get the below values in the output file. Can you tell me is there any command to get only values instead of getting value with ZERO's
1
12
113
1111
Thanks,
Suresh |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
Use specific masks for your output fields.
Examples:
01 ZNUM-1206 PIC +++++++++++9,999999.
01 ZNUM-1602 PIC +++++++++++++++9,99.
01 ZNUM-1800 PIC ZZZZZZZZZZZZZZZZZ9.
01 ZNUM-0400 PIC ZZZ9.
01 ZNUM-1000 PIC 9(10).
01 ZNUM-0800 PIC 9(08).
01 ZNUM-08BB PIC 999B999B99.
Regards, UmeySan |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
UmeySan,
Using mask, how would you do left alignment for a numeric value? |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
There is no "command".
Use a perform loop with RM and "squeeze" out the blanks. |
|
Back to top |
|
|
sureshbabu.jv
New User
Joined: 11 Apr 2006 Posts: 41 Location: Chennai
|
|
|
|
I think Umeysan solution is works fine. I have found one PIC clause in the report program that one is to display the page number on report
05 WS-I-PAGE PIC ZZZ9.
AS per the above PIC the page number start with 1 and that range goes upto 9999.
Thanks Umeysan...
Suresh |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Not
but
Suckered again..... |
|
Back to top |
|
|
sureshbabu.jv
New User
Joined: 11 Apr 2006 Posts: 41 Location: Chennai
|
|
|
|
Can you give the sysntax to get the format as you mentioned above. I don' have an idea .
Thanks,
Suresh |
|
Back to top |
|
|
|