Re: CopyBook with Occurs Clause

2003-10-28 Thread Molai Tsietsi
Create default values for the othertwoelements that would have had '12XY'.The defualt values of the twoelementsmust bean empty space. Copybook requires that all the fieldscontain values (this is subject to correction) in then, by doing the above, you will have 'AB '. Hope this helps

Re: CopyBook with Occurs Clause

2003-10-14 Thread Jim Keohane
Justa guess but try: 01 MYCOMPOUND_ELEMENT. 05 HOW-MANY PIC 99. 88 WITHIN-RANGE VALUE ZERO THRU 3. 05 MYREPEAT_ELEMENT OCCURS 3 TIMES DEPENDING ON HOW-MANY. 10 TEST-ELEM PIC X(2). Then send '00' or '01AB' or '02AB12' or '03AB12XY' I've written COBOL copybook parsers for a few vendors

Re: CopyBook with Occurs Clause

2003-10-14 Thread Jim Nuckolls
The OCCURS clause without the DEPENDING ON means just that. It expects you to have 3 occurrences. Juni Per wrote: Hi, I have the following COBOL copy book imported into WMQI 2.1 CSD 5. 01 MYCOMPOUND_ELEMENT. 05 MYREPEAT_ELEMENT OCCURS 3 TIMES. 10 TEST-ELEM PIC X(2).

CopyBook with Occurs Clause

2003-10-13 Thread Juni Per
Hi, I have the following COBOL copy book imported into WMQI 2.1 CSD 5. 01 MYCOMPOUND_ELEMENT. 05 MYREPEAT_ELEMENT OCCURS 3 TIMES. 10 TEST-ELEM PIC X(2). CWF properties , Min Occurs and Max Occurs is set to 3. I modified min occurs to 1. If I send a AB12XY , it works fine. But if I send only the