IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can't we use 77 Level in File section


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
venosol
Warnings : 1

New User


Joined: 16 Nov 2006
Posts: 43
Location: Bangalore

PostPosted: Thu Mar 22, 2007 12:08 pm
Reply with quote

Can't we use 77 Level in File section ?


clarify me pls
Back to top
View user's profile Send private message
earsha

New User


Joined: 16 Mar 2007
Posts: 17
Location: Pune

PostPosted: Thu Mar 22, 2007 1:08 pm
Reply with quote

Level 77 can be used to describe independent elementary items in the Working-Storage or Linkage Sections.
Back to top
View user's profile Send private message
venosol
Warnings : 1

New User


Joined: 16 Nov 2006
Posts: 43
Location: Bangalore

PostPosted: Thu Mar 22, 2007 1:14 pm
Reply with quote

earsha wrote:
Level 77 can be used to describe independent elementary items in the Working-Storage or Linkage Sections.


thnx
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Thu Mar 22, 2007 2:25 pm
Reply with quote

Hi Venosol,

Can I get an example or instance where u face this problem?
Back to top
View user's profile Send private message
venosol
Warnings : 1

New User


Joined: 16 Nov 2006
Posts: 43
Location: Bangalore

PostPosted: Thu Mar 22, 2007 3:12 pm
Reply with quote

mkk157 wrote:
Hi Venosol,

Can I get an example or instance where u face this problem?


FILE-SECTION.

01 WS-DEPT.
07 WS-NAME PIC x(10).
07 WS-ID PIC 9(4).
WORKING-STORAGE SECTION.
01 WS-GROSS-SALARY.
07 WS-BASIC PIC 9(5).
07 WS-TAX PIC 9(4).
07 WS-ALLOWANCES PIC 9(4).
Back to top
View user's profile Send private message
mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Thu Mar 22, 2007 4:06 pm
Reply with quote

Hi Venosol,

In the above example, U Use only 07. Then what about 77 Level number.
Back to top
View user's profile Send private message
venosol
Warnings : 1

New User


Joined: 16 Nov 2006
Posts: 43
Location: Bangalore

PostPosted: Thu Mar 22, 2007 5:26 pm
Reply with quote

mkk157 wrote:
Hi Venosol,

In the above example, U Use only 07. Then what about 77 Level number.


I am sorry that is 77 only not 07.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Mar 22, 2007 5:34 pm
Reply with quote

Venu,


Quote:
that is 77 only not 07.

Do you think its possible to code level 77 under any other level? Brush your basics.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 22, 2007 10:41 pm
Reply with quote

Hello,

Inside any COBOL level-01 (files, working-storage, linkage) the lower levels may be 02 thru 49.

77 is a special level that can never be used under a level-01.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top