Escolar Documentos
Profissional Documentos
Cultura Documentos
A 01-49.
Q What is the difference between level 77 and 01? and which is more efficient?
A Level 77 can be used to describe independent elementary items in the Working-Storage or Linkage Sections.
Level 01 can be used to describe both elementary and group items. Any item described in Level 01, the system is
putting on Double-Word boundary and inserts slack bytes if necessary
Q What is a subscript?
A Subscript represents occurrence # of the Table Entry. Subscript can be represented explicitly and implicitly.
Explicitly means thru occurrence # of the table entry; implicitly means thru a data name. That data name should
be defined as an independent item in the W-S Section. The most efficient definition of Subscript is Full-Word
binary.
Q What is an index?
A Index is assigned to specific table thru INDEXED BY clause. Internally is represented by Index Register which is
Full-Word binary. Specific index name can be used to reference a field from the table to which that index is
assigned to index represents displacement value of the table entry from the beginning of the table.
Q What is the difference between static call and dynamic call in Cobol?
A A statically called program is link-edited into the same load module as the calling program, a static call is faster
than a dynamic call. A static call is the preferred method if your application does not require the services of the
dynamic call.
Statically called programs cannot be deleted (using CANCEL), so static calls might take more main storage. If
storage is a concern, think about using dynamic calls. Storage usage of calls depends on whether:
The subprogram is called only a few times. Regardless of whether it is called, a statically called program is
loaded into storage; a dynamically called program is loaded only when it is called.
You subsequently delete the dynamically called subprogram with a CANCEL statement.
You cannot delete a statically called program, but you can delete a dynamically called program. Using a
dynamic call and then a CANCEL statement to delete the dynamically called program after it is no longer
needed in the application (and not after each call to it) might require less storage than using a static call.