![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
#4
| |||
| |||
|
|
depending on your compiler you could do this MYOUT = ICONV(15000,'MP')'R%4' |
#5
| |||
| |||
|
|
In your example, you're doing field formatting prior to the ICONV function. MYVAR = '15000' 'R%7' MYOUT = ICONV(MYVAR,'MP') What you say that you want is a packed field with leading zeros. The size is 4. MYIN * *= 15000 * * * * * * * * * *;* FOR CLARITY MYVAR = ICONV(MYIN,'MP) ;* PACK THE FIELD MYOUT = MYVAR 'R%4' * * * ;* FORMAT IT RIGHT JUSTIFIED IN 4 ZEROS depending on your compiler you could do this MYOUT = ICONV(15000,'MP')'R%4' I've not worked on Ultimate since about 1985... Always format your data AFTER you process it. Formatting is part of the output phase. Good Luck! |
#6
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |