MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

occurs clause

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
sivaraj.ramaraj
Beginner


Joined: 05 Sep 2007
Posts: 5
Topics: 3

PostPosted: Fri Feb 27, 2009 2:29 pm    Post subject: occurs clause Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Fri Feb 27, 2009 2:51 pm    Post subject: Reply with quote

sivaraj.ramaraj,

bonk , 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
View user's profile Send private message Send e-mail Visit poster's website
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Sat Feb 28, 2009 10:02 am    Post subject: Reply with quote

i.e. it is an array
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
rk_pulikonda
Beginner


Joined: 27 May 2003
Posts: 22
Topics: 2
Location: India

PostPosted: Sat Feb 28, 2009 1:59 pm    Post subject: Reply with quote

sivaraj.ramaraj,

What exactly you are trying to ask ?
_________________
Thanks
-Ram
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group