Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How many bytes does OCCURS occupy in this declaration

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
iknow

Active User


Joined: 22 Aug 2005
Posts: 413
Location: Colarado, US

PostPosted: Wed Nov 02, 2005 11:55 am    Post subject: How many bytes does OCCURS occupy in this declaration
Reply with quote

Hi folks

Tell me like how many bytes does OCCURS occupy for the below definition.
Code:

05 emp-data  occurs 02 times.
  10 emp-data1 occurs 240 times.
     15  emp-count-m  pic s9(07) comp-3.
     15  emp-count-m  pic s9(07) comp-3.
Back to top
View user's profile Send private message

rohin

New User


Joined: 29 Apr 2005
Posts: 21
Location: Gurgaon, India

PostPosted: Wed Nov 02, 2005 4:57 pm    Post subject: Re: How many bytes does OCCURS occupy in this declaration
Reply with quote

Hi,
I think it will take 3840 bytes.
S9(7) comp-3 ---> 4 bytes
S9(7) comp-3 ---> 4 bytes
total: 8 bytes
grand total: 2*240*8 = 3840 bytes

Plz tell me if i m wrong.

Regards,
Rohin
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Wed Nov 02, 2005 5:05 pm    Post subject:
Reply with quote

Hi Rohin,

Thats a correct answer.

But can you please turn around?

I am sitting behind you.

Well, the world is really a very small place.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
No new posts FIXED BIN (31) and FIXED BIN (63) - H... sundarkudos PL/I & Assembler 4 Thu Nov 05, 2015 1:11 pm
No new posts Declaration of varchar in cobol s.saranya srinivasan COBOL Programming 6 Fri Sep 25, 2015 11:43 am
No new posts Multiple OCCURS depending on in same ... muralirajansm COBOL Programming 6 Fri Aug 21, 2015 4:23 pm
No new posts Syncsort 1.4.2 - Variable file - Igno... TS70363 SYNCSORT 9 Fri May 22, 2015 9:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us