Can anyone please give me a reply advantage of 01 single item than 77 declaration? Thanks, Anil. Re: What is the difference between 77 and 01? Post by Akshypal » Sun Jun 23, am Post by Akshypal » Sun Jun 23, am As far as I know, 01 is a group level item and can be elementary, while level only elementary. Discover featured courses for Mainframes! As he said, 77 level can represent only elementary data, in other words, the element at level cannot be subdivided while 01 can be.
On the other hand, both these levels should begin in area A and must be followed by a seperator period; or by a space followed by its associated data name, filler or appropriate data description clause. Level is bit old fashioned. I've used and seen other using the 01 level mostly. Some shops using panavlet still use 77 for "special purpose Panvelet varaibles".
Also, on mainfames, if you combine the elementary items within one 01 level, you don't waste slack-bytes memory though I think this depends on the compiler you're using but I'm not sure - I've not verified it yet.
And what are slack-bytes, well, that seems beyond the scope of this topic. Hope this helps. Thanks, Anuj Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
The SYNC clause specifies alignment within an 01 level. I use 77 levels for constants when 78 levels are not available or appropriate. RE: Difference between 01 and 77 level if you put all your elementairy items under one 01 level, you don't have slackbytes within this one 01 definition unless you specify SYNC.
RE: Difference between 01 and 77 level The answer to the basic question depends on which compiler you are using. SOME compilers still allocate storage for a level differently than they do for an level elementary item.
The statement above about "word boundary" is for some not all compilers. To determine whether your compiler does or does not treat them the same, check your vendor's documentation. In cases where they are treated differently, then levels are usually "more effecient" - but there is no requirement for this in the Standard language definition.
Thanks to all who replied my query. Red Flag This Post Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. The Tek-Tips staff will check this out and take appropriate action.
Click Here to join Tek-Tips and talk with other members! Already a Member? Join your peers on the Internet's largest technical computer professional community. It's easy to join and it's free. Register now while it's still free! If one or more data items are not used simultaneously, then the same storage can be utilized for another data item. So the same storage can be referred with different data items. It returns TRUE when the item against which it is used contains only numbers 0 to 9.
The item can be positive or negative. A COBOL field definition gives the level discussed later , field name, and a "picture", or PIC clause, which tells you the data type or data category of the field, and its size. A static called program is loaded into storage at compile time. A dynamic called program is loaded into storage at runtime. USAGE clause should not come with 66, 77 and 88 level numbers.
BY VALUE means that the calling program is passing the value of the literal , or identifier , not a reference to the sending item. COBOL is primarily used in business, finance, and administrative systems for companies and governments.
COBOL is still widely used in legacy applications deployed on mainframe computers, such as large-scale batch and transaction processing jobs. COBOL Renames clause is used to regroup the elementary data items and gives them an alternative name. This is a logical grouping of the elementary data items which are defined in a sequential order. It is useful for renaming by overlapping elementary elements.
What is the difference between 01 and 77 level in Cobol? Category: technology and computing databases. As far as I know, 01 is a group level item and can be elementary, while 77 - level only elementary.
0コメント