Skip to main content

Hello all and have a nice new year,

I would like to create a variable, so as to use it as an equation of PHYSICAL-COLUMNS instead of (1, 2, 3, 4, 5).

I have created the below variable

01 WS-ARRAY-ST.
   03 FILLER PIC X VALUE "(".
   03 WS-ARRAY OCCURS 5 TIMES.
      05 WS-VALUE PIC S9.
      05 WS-COMMA PIC X(2).
   03 FILLER PIC X VALUE ")".

but when I applied it to the below command

MODIFY Form1-Gd-1, PHYSICAL-COLUMNS = WS-ARRAY-ST

it does not work at all.

Is there any way to substitute the list of PHYSICAL_COLUMNS with a variable?


#list
#PHSICAL_COLUMNS
#Grid

Hello all and have a nice new year,

I would like to create a variable, so as to use it as an equation of PHYSICAL-COLUMNS instead of (1, 2, 3, 4, 5).

I have created the below variable

01 WS-ARRAY-ST.
   03 FILLER PIC X VALUE "(".
   03 WS-ARRAY OCCURS 5 TIMES.
      05 WS-VALUE PIC S9.
      05 WS-COMMA PIC X(2).
   03 FILLER PIC X VALUE ")".

but when I applied it to the below command

MODIFY Form1-Gd-1, PHYSICAL-COLUMNS = WS-ARRAY-ST

it does not work at all.

Is there any way to substitute the list of PHYSICAL_COLUMNS with a variable?


#list
#PHSICAL_COLUMNS
#Grid

No. There are a few grid properties that need values that fit a certain design - display-columns = ( 1, 4, 20, 32, 46, 85, 111)

physical-columns = (1,2,3,4,5,6,7). You cannot use a variable for these.