From: jferreira80 on
Hi...just a hand-pocket question...... :)

i have a variable

01 ws-con-variable1 PIC 9(13)V9(02) COMP-3.

and i need to fill all the fields with value 9 .

I don't know why but if i defines de variable as

01 ws-con-variable1 PIC 9(13)V9(02) COMP-3 VALUE ALL 9.

it doesn't work...

any clue ?



Cheers

From: Michael Mattias on
<jferreira80(a)gmail.com> wrote in message
news:1153749015.404152.23700(a)m79g2000cwm.googlegroups.com...
> Hi...just a hand-pocket question...... :)
>
> i have a variable
>
> 01 ws-con-variable1 PIC 9(13)V9(02) COMP-3.
>
> and i need to fill all the fields with value 9 .
>
> I don't know why but if i defines de variable as
>
> 01 ws-con-variable1 PIC 9(13)V9(02) COMP-3 VALUE ALL 9.
>
> it doesn't work...
>
> any clue ?

VALUE "ALL <anything>" is (was?) only allowed for character (PIC X(n) or
A(n)) data items.




From: HeyBub on
jferreira80(a)gmail.com wrote:
> Hi...just a hand-pocket question...... :)
>
> i have a variable
>
> 01 ws-con-variable1 PIC 9(13)V9(02) COMP-3.
>
> and i need to fill all the fields with value 9 .
>
> I don't know why but if i defines de variable as
>
> 01 ws-con-variable1 PIC 9(13)V9(02) COMP-3 VALUE ALL 9.
>
> it doesn't work...

"ALL" works only on alphanumeric fields. You need:

PIC 9(13)V9(02) VALUE 9999999999999.99.


From: jferreira80 on

HeyBub escreveu:
> jferreira80(a)gmail.com wrote:
> > Hi...just a hand-pocket question...... :)
> >
> > i have a variable
> >
> > 01 ws-con-variable1 PIC 9(13)V9(02) COMP-3.
> >
> > and i need to fill all the fields with value 9 .
> >
> > I don't know why but if i defines de variable as
> >
> > 01 ws-con-variable1 PIC 9(13)V9(02) COMP-3 VALUE ALL 9.
> >
> > it doesn't work...
>
> "ALL" works only on alphanumeric fields. You need:
>
> PIC 9(13)V9(02) VALUE 9999999999999.99.


Ok.....

but if your variable as 99 fields, like

01 ws-con-variable1 PIC 9(99)v9(02) COMP-3.

you don't define the value as 999.......999


any clues for this problem??


cheers

From: Donald Tees on
jferreira80(a)gmail.com wrote:
> HeyBub escreveu:
>
> Ok.....
>
> but if your variable as 99 fields, like
>
> 01 ws-con-variable1 PIC 9(99)v9(02) COMP-3.
>
> you don't define the value as 999.......999
>
>
> any clues for this problem??
>
>
> cheers
>

There are no such fields, by definition.

Donald
 |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8
Prev: Fujitsu adtools.com
Next: Fujitsu 4.0 reborn?