Hi All,

We have to create a schema for the below.
05 :LSRR:-CARD-INFORMATION-GROUP.
10 :LSRR:-CARD-INFORMATION-COUNT PIC 9(04).
10 :LSRR:-CARD-INFORMATION OCCURS 1 TO 1000 TIMES
DEPENDING ON
:LSRR:-CARD-INFORMATION-COUNT

15 :LSRR:-CARDSEQUENCENUMBER PIC 9(04).
15 :LSRR:-CARDNUMBER PIC X(19).
10 :Next field


The field LSRR:-CARD-INFORMATION occurs 1000 times depending on the LSRR:-CARD-INFORMATION-COUNT. Does anyone has a sample schema where in a tag can repeat based on another variable. We can create a schema based on that.

05  :LSRR:-CARD-INFORMATION-GROUP.
               10  :LSRR:-CARD-INFORMATION-COUNT       PIC 9(04).
               10  :LSRR:-CARD-INFORMATION OCCURS 1 TO 1000 TIMES
                                         DEPENDING ON
                                         :LSRR:-CARD-INFORMATION-COUNT
                                         
                   15  :LSRR:-CARDSEQUENCENUMBER       PIC 9(04).
                   15  :LSRR:-CARDNUMBER               PIC X(19).
	       10 :Next field

For better reading

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.