View previous topic :: View next topic |
Author |
Message |
sivaraj.ramaraj Beginner
Joined: 05 Sep 2007 Posts: 5 Topics: 3
|
Posted: Fri Feb 27, 2009 2:29 pm Post subject: occurs clause |
|
|
Code: |
10 :TRM:-ACCTS-STAT(1) OCCURS 10 TIMES
GROUP 24 89 101 13
15 :TRM:-ACCT-NBR(1) 9(10) 25 89 98 10
15 :TRM:-ACCT-APPL(1) XX 26 99 100 2
15 :TRM:-ACCT-STAT(1) X 27 101 101 1
|
can u pls explain me how the occurs works? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Fri Feb 27, 2009 2:51 pm Post subject: |
|
|
sivaraj.ramaraj,
, isn't simple? TRM:-ACCTS-STAT field is repeated 10 times each with a size of 13 bytes which can store 10 different values
Code: |
occur #01 occur #02 occur #03 occur #04 ... occur #10
1234567890123 1234567890123 1234567890123 1234567890123.. 1234567890123 |
|
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Sat Feb 28, 2009 10:02 am Post subject: |
|
|
i.e. it is an array _________________ Utility and Program control cards are NOT, repeat NOT, JCL. |
|
Back to top |
|
|
rk_pulikonda Beginner
Joined: 27 May 2003 Posts: 22 Topics: 2 Location: India
|
Posted: Sat Feb 28, 2009 1:59 pm Post subject: |
|
|
sivaraj.ramaraj,
What exactly you are trying to ask ? _________________ Thanks
-Ram |
|
Back to top |
|
|
|
|