I was hoping I could get some clarification on an issue I have with host variables and Cobol fields that have occurs clauses.

I am trying to move the oracle fields defined as:

YARDLIGHTINFO_001 NOT NULL VARCHAR2(24)
YARDLIGHTINFO_002 NOT NULL VARCHAR2(24)
YARDLIGHTINFO_003 NOT NULL VARCHAR2(24)
YARDLIGHTINFO_004 NOT NULL VARCHAR2(24)

The cobol definition is:
002800 05 YARDLIGHTINFO OCCURS 4 TIMES.
002900 07 YLRATE PIC 99.
003000 07 YLTYPE PIC 99.
003100 07 YLNUMBER PIC 9(6).
003200 07 YLNBR PIC 9(4).
003300 07 YLKWH PIC 9(6).
003400 07 YLCHARGE PIC S9(5)V99 COMP-3.

I tried to move yardlightinfo_001 to my host variable yardlight1 (pic x 24)
but I get an error for the underscores being illegal. Does anyone know how to handle this?