In the example given it is really a bit confused, because being presented only 3 variables. However, my real need is in this example:
*> -> Working
01 WRK.
*> -> Pictures output
05 W-PIC.
*> -> Group 1
10 PIC-GRP1.
15 PIC1 PIC IS *** $ 99.
15 FILLER PIC IS X (01) VALUE IS "&".
15 PIC2 PIC IS *** $ 99.
15 FILLER PIC IS X (01) VALUE IS "&".
15 PIC3 PIC IS $ **. ***, 99.
15 FILLER PIC IS X (01) VALUE IS "&".
*> -> Group 2
10 PIC-GRP2.
15 pic4 PIC IS -999.
15 FILLER PIC IS X (01) VALUE IS "&".
15 PIC5 PIC IS 999-.
15 FILLER PIC IS X (01) VALUE IS "&".
15 pic6 PIC IS -999.
15 FILLER PIC IS X (01) VALUE IS "&".
15 pic7 PIC IS -999.
15 FILLER PIC IS X (01) VALUE IS "&".
15 pic8 PIC IS ZZ, 99-.
15 FILLER PIC IS X (01) VALUE IS "&".
*> -> Group 3
10 PIC-GRP3.
15 Pic9 PIC IS +999.
15 FILLER PIC IS X (01) VALUE IS "&".
15 PIC10 PIC IS 999+.
15 FILLER PIC IS X (01) VALUE IS "&".
15 PIC11 PIC IS +999.
15 FILLER PIC IS X (01) VALUE IS "&".
15 PIC12 PIC IS + z.zzz, 99.
This variables are declared that way because I edit line seeking the character &, but my preference was to have only the PIC'S declared and navigate from PIC1 to the PIC12.
Scrini