YouTube Icon

Interview Questions.

Top 100+ Cobol Interview Questions And Answers - May 28, 2020

fluid

Top 100+ Cobol Interview Questions And Answers

Question 1. Name The Divisions In A Cobol Program?

Answer :

IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATA DIVISION, PROCEDURE DIVISION.

Question 2. What Are The Different Data Types Available In Cobol?

Answer :

Alpha-numeric (X), alphabetic (A) and numeric (nine).

VSAM Interview Questions
Question 3. What Does The Initialize Verb Do?

Answer :

Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES.
Numeric, Numeric edited objects set to ZERO.
FILLER , OCCURS DEPENDING ON items left untouched.

Question 4. What Is 77 Level Used For ?

Answer :

Elementary stage object. Cannot be subdivisions of other objects (cannot be qualified), nor can they be subdivided themselves.

VSAM Tutorial
Question five. What Is 88 Level Used For ?

Answer :

For situation names.

IBM - VSAM Interview Questions
Question 6. What Is Level 66 Used For ?

Answer :

For RENAMES clause.

Question 7. What Does The Is Numeric Clause Establish ?

Answer :

IS NUMERIC may be used on alphanumeric gadgets, signed numeric & packed decimal gadgets and usigned numeric & packed decimal objects. IS NUMERIC returns TRUE if the object only consists of 0-nine. However, if the object being tested is a signed item, then it could incorporate 0-9, + and - .

IBM-CICS Tutorial IBM-CICS Interview Questions
Question 8. How Do You Define A Table/array In Cobol?

Answer :

01 ARRAYS.
05 ARRAY1 PIC X(9) OCCURS 10 TIMES.
05 ARRAY2 PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX.

Question nine. Can The Occurs Clause Be At The 01 Level?

Answer :

No.

JCL Interview Questions
Question 10. What Is The Difference Between Index And Subscript?

Answer :

Subscript refers back to the array occurrence at the same time as index is the displacement (in no of bytes) from the beginning of the array. An index can most effective be modified the usage of PERFORM, SEARCH & SET.
Need to have index for a table so one can use SEARCH, SEARCH ALL.

IBM DB2 Tutorial
Question eleven. What Is The Difference Between Search And Search All?

Answer :

SEARCH - is a serial seek.
SEARCH ALL - is a binary seek & the desk must be taken care of
ASCENDING/DESCENDING KEY clause for use & information loaded on this order) earlier than the use of SEARCH ALL.

IBM DB2 Interview Questions
Question 12. What Should Be The Sorting Order For Search All?

Answer :

It may be either ASCENDING or DESCENDING. ASCENDING is default. If you need the search to be performed on an array sorted in descending order, then while defining the array, you ought to provide DESCENDING KEY clause. (You need to load the table in the distinct order).

VSAM Interview Questions
Question thirteen. What Is Binary Search?

Answer :

Search on a sorted array. Compare the object to be searched with the object on the center. If it fits, great else repeat the process with the left half or the proper half of depending on in which the item lies.

IBM-JCL Tutorial
Question 14. My Program Has An Array Defined To Have 10 Items. Due To A Bug, I Find That Even If The Program Access The eleventh Item In This Array, The Program Does Not Abend. What Is Wrong With It?

Answer :

Must use compiler alternative SSRANGE if you need array bounds checking. Default is NOSSRANGE.

Question 15. How Do You Define A Sort File In Jcl That Runs The Cobol Program?

Answer :

Use the SORTWK01, SORTWK02,..... Dd names inside the step. Number of type datasets depends on the volume of records being sorted, but not less than three is required.

IBM-JCL Interview Questions
Question sixteen. What Is The Difference Between Performing A Section And A Paragraph?

Answer :

Performing a SECTION will reason all the paragraphs which can be a part of the section, to be finished.
Performing a PARAGRAPH will purpose most effective that paragraph to be completed.

DB2 Using SQL Tutorial
Question 17. What Is The Use Of Evaluate Statement?

Answer :

Evaluate is like a case announcement and can be used to replace nested Ifs. The distinction between EVALUATE and case is that no 'smash' is needed for EVALUATE i.E. Control comes out of the EVALUATE as quickly as one suit is made.

DB2 Using SQL Interview Questions
Question 18. What Are The Different Forms Of Evaluate Statement?

Answer :

EVALUATE EVALUATE SQLCODE ALSO FILE-STATUS
WHEN A=B AND C=D WHEN 100 ALSO '00'
vital stmt imperative stmt
WHEN (D+X)/Y = four WHEN -305 ALSO '32'
vital stmt imperative stmt
WHEN OTHER WHEN OTHER
vital stmt vital stmt
END-EVALUATE END-EVALUATE
EVALUATE SQLCODE ALSO A=B EVALUATE SQLCODE ALSO TRUE
WHEN one hundred ALSO TRUE WHEN one hundred ALSO A=B
vital stmt vital stmt
WHEN -305 ALSO FALSE WHEN -305 ALSO (A/C=4)
vital stmt imperative stmt
END-EVALUATE END-EVALUATE.

IBM - VSAM Interview Questions
Question 19. How Do You Come Out Of An Evaluate Statement?

Answer :

After the execution of one of the while clauses, the manipulate is mechanically passed directly to the next sentence after the EVALUATE announcement. There is not any want of any extra code.

IBM Mainframe Tutorial
Question 20. In An Evaluate Statement, Can I Give A Complex Condition On A When Clause?

Answer :

Yes.

IBM-JCL&VSAM Interview Questions
Question 21. What Is A Scope Terminator? Give Examples?

Answer :

Scope terminator is used to mark the give up of a verb e.G. EVALUATE, END-EVALUATE; IF, END-IF.

Question 22. How Do You Do In-line Perform?

Answer :

PERFORM ... ...
END PERFORM.

IMS/DB Tutorial
Question 23. When Would You Use In-line Perform?

Answer :

When the body of the carry out will no longer be utilized in different paragraphs. If the body of the carry out is a ordinary sort of code (used from diverse other places in the program), it'd be higher to put the code in a separate para and use PERFORM paraname rather than in-line carry out.

IBM Mainframe Interview Questions
Question 24. What Is The Difference Between Continue & Next Sentence ?

Answer :

CONTINUE is like a null assertion (do not anything) , at the same time as NEXT SENTENCE transfers control to the next sentence (!!) (A sentence is terminated by using a length).

IBM-CICS Interview Questions
Question 25. What Does Exit Do ?

Answer :

Does nothing ! If used, need to be the simplest sentence within a paragraph.

Question 26. Can I Redefine An X(one hundred) Field With A Field Of X(200)?

Answer :

Yes. Redefines simply reasons both fields to begin on the same location. For example:
01 WS-TOP PIC X(1)
01 WS-TOP-RED REDEFINES WS-TOP PIC X(2).
If you MOVE '12' to WS-TOP-RED,
DISPLAY WS-TOP will display 1 even as
DISPLAY WS-TOP-RED will display 12.

COBOL, CICS, JCL, VSAM, DB2 Interview Questions
Question 27. Can I Redefine An X(200) Field With A Field Of X(one hundred) ?

Answer :

Yes.

JCL Interview Questions
Question 28. What Do You Do To Resolve Soc-7 Error?

Answer :

Basically you need to correcting the offending records.

Many instances the reason for SOC7 is an un-initialized numeric item. Examine that opportunity first.

Many installations provide you a sell off for run time abends ( it may be generated additionally by way of calling a few subroutines or OS services thru meeting language). These dumps provide the offset of the remaining preparation at which the abend took place. Examine the compilation output XREF list to get the verb and the line variety of the source code at this offset. Then you can study the supply code to discover the trojan horse. To get seize the runtime dumps, you may must define a few datasets (SYSABOUT and so on ) within the JCL.

If none of these are helpful, use judgement and DISPLAY to localize the supply of error.

Some installtion would possibly have batch software debugging gear. Use them.

Question 29. How Is Sign Stored In Packed Decimal Fields And Zoned Decimal Fields?

Answer :

Packed Decimal fields: Sign is saved as a hex fee inside the ultimate nibble (4 bits ) of the garage.

Zoned Decimal fields: As a default, signal is over punched with the numeric price stored in the closing chunk.

DB2 SQL Programming Interview Questions
Question 30. How Is Sign Stored In A Comp-three Field?

Answer :

It is saved in the final nibble. For instance if your number is +one hundred, it stores hex 0C inside the ultimate byte, hex 1C in case your range is 101, hex 2C if your wide variety is 102, hex 1D if the number is -one hundred and one, hex 2D if the range is -102 and so forth...

Question 31. How Is Sign Stored In A Comp Field ?

Answer :

In the maximum great bit. Bit is on if -ve, off if +ve.

Question 32. What Is The Difference Between Comp & Comp-3 ?

Answer :

COMP is a binary storage format whilst COMP-three is packed decimal format.

IMS/DB Interview Questions
Question 33. What Is Comp-1? Comp-2?

Answer :

COMP-1 - Single precision floating point. Uses 4 bytes.
COMP-2 - Double precision floating factor. Uses eight bytes.

IBM DB2 Interview Questions
Question 34. How Do You Define A Variable Of Comp-1? Comp-2?

Answer :

No picture clause to take delivery of. Example 01 WS-VAR USAGE COMP-1.

Question 35. How Many Bytes Does A S9(7) Comp-3 Field Occupy ?

Answer :

Will take four bytes. Sign is saved as hex value inside the remaining nibble.
General components is INT((n/2) + 1)), wherein n=7 in this situation.

Question 36. How Many Bytes Does A S9(7) Sign Trailing Separate Field Occupy ?

Answer :

Will occupy 8 bytes (one extra byte for sign).

IBM-JCL Interview Questions
Question 37. How Many Bytes Will A S9(8) Comp Field Occupy ?

Answer :

four bytes.

Question 38. What Is The Maximum Value That Can Be Stored In S9(eight) Comp?

Answer :

99999999.

Question 39. What Is Comp Sync?

Answer :

Causes the item to be aligned on natural obstacles. Can be SYNCHRONIZED LEFT or RIGHT.

For binary information gadgets, the cope with resolution is quicker if they may be placed at word barriers within the reminiscence. For example, on main frame the memory phrase size is four bytes. This means that each word will begin from an cope with divisible through four. If my first variable is x(three) and next one is s9(4) comp, then in case you do now not specify the SYNC clause, S9(4) COMP will start from byte 3 ( assuming that it starts from 0 ). If you specify SYNC, then the binary records item will begin from address 4. You may see some wastage of reminiscence, but the get right of entry to to this computational discipline is quicker.

Question forty. What Is The Maximum Size Of A 01 Level Item In Cobol I? In Cobol Ii?

Answer :

In COBOL II: 16777215.

DB2 Using SQL Interview Questions
Question forty one. What Are Different File Open Modes Available In Cobol?

Answer :

Open for INPUT, OUTPUT, I-O, EXTEND.

Question forty two. What Is The Mode In Which You Will Open A File For Writing?

Answer :

OUTPUT, EXTEND.

IBM-JCL&VSAM Interview Questions
Question 43. In The Jcl, How Do You Define The Files Referred To In A Subroutine ?

Answer :

Supply the DD cards just as you'll for documents mentioned within the important application.

Question 44. Can You Rewrite A Record In An Esds File? Can You Delete A Record From It?

Answer :

Can rewrite(record length have to be identical), however now not delete.

Question forty five. What Is File Status 92?

Answer :

Logic error. E.G., a record is opened for input and an strive is made to write down to it.

Question forty six. What Is File Status 39 ?

Answer :

Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL pgm & the JCL (or the dataset label). You gets record popularity 39 on an OPEN.

Question forty seven. What Is Static,dynamic Linking ?

Answer :

In static linking, the known as subroutine is link-edited into the calling software , at the same time as in dynamic linking, the subroutine & the main software will exist as separate load modules. You select static/dynamic linking by using selecting either the DYNAM or NODYNAM hyperlink edit alternative. (Even if you pick NODYNAM, a CALL identifier (as opposed to a CALL literal), will translate to a DYNAMIC call).

A statically referred to as subroutine will no longer be in its initial country the next time it's miles called unless you explicitly use INITIAL otherwise you do a CANCEL. A dynamically called recurring will always be in its initial nation.

Question 48. What Compiler Option Would You Use For Dynamic Linking?

Answer :

DYNAM.

Question 49. What Is Ssrange, Nossrange ?

Answer :

These are compiler alternatives w.R.T subscript out of variety checking. NOSSRANGE is the default and if selected, no run time error can be flagged in case your index or subscript goes out of the permissible variety.

Question 50. How Do You Set A Return Code To The Jcl From A Cobol Program?

Answer :

Move a fee to RETURN-CODE sign in. RETURN-CODE ought to no longer be declared to your software.

Question 51. What Are The Steps You Go Through While Creating A Cobol Program Executable?

Answer :

DB2 precompiler (if embedded sq. Used), CICS translator (if CICS pgm), Cobol compiler, Link editor.
If DB2 software, create plan by binding the DBRMs.

Question fifty two. How Many Sections Are There In Data Division?

Answer :

SIX SECTIONS

1. FILE SECTION
2. WORKING-STORAGE SECTION
three. LOCAL-STORAGE SECTION
4. SCREEN SECTION
five. REPORT SECTION
6. LINKAGE SECTION

Question 53. What Is Redefines Clause?

Answer :

Redefines clause is used to allow the same storage allocation to be referenced via exceptional information names.

Question 54. What Is The Different Between Index And Subscript?

Answer :

Subscript refers back to the array of prevalence, where as Index represents an incidence of a desk element. An index can most effective changed the use of perform, seek & set. Need to have an index for a table with the intention to use SEARCH and SEARCH All.

Question 55. What Is The Difference Between Structured Cobol Programming And Object Alternatively Oriented Cobol Programming?

Answer :

Structured programming is a Logical way of programming, you divide the functionalities into modules and code logically. OOP is a Natural manner of programming; you pick out the gadgets first, and then write capabilities, procedures around the items. Sorry, this may not be an adequate answer, however they're  extraordinary programming paradigms, which is hard to put in a sentence or two.

Question 56. What Divisions, Sections And Paragraphs Are Mandatory For A Cobol Program?

Answer :

IDENTIFICATION DIVISION and PROGRAM-ID paragraph are obligatory for a compilation mistakes unfastened COBOL application.

Question 57. What Is The Difference Between External And Global Variables?

Answer :

Global variables are reachable most effective to the batch program while external variables can be referenced from any batch software residing within the equal device library.

Question fifty eight. What Is Difference Between Cobol And Vs Cobol Ii?

Answer :

In the use of COBOL on PC we've got only flat documents and the applications can access handiest restrained storage, while in VS COBOL II on M/F the applications can get admission to as much as 16MB or 2GB relying at the addressing and might use VSAM files to make I/O operations faster.

Question 59. Difference Between Next And Continue Clause?

Answer :

The distinction between the next and retain verb is that inside the preserve verb it is used for a scenario in which there in no EOF circumstance this is the records are to be accessed time and again in an record, while in the subsequent verb the listed file is accessed sequentially, examine subsequent file command is used.

Question 60. What Is The Importance Of Global Clause According To New Standards Of Cobol?

Answer :

When any facts call, document-name, Record-call, condition name or Index described in an Including Program may be referenced by way of a without delay or in a roundabout way in an blanketed application, Provided the stated name has been declared to be a international name by GLOBAL Format of Global Clause is01 information-1 p.C nine(five) IS GLOBAL.

Question 61. What Is The Purpose Of Pointer Phrase In String Command?

Answer :

The Purpose of POINTER word is to specify the leftmost role within receiving subject where the first transferred person can be stored.

Question 62. What Is The Linkage Section Used For?

Answer :

The linkage phase is used to skip information from one program to another software or to skip statistics from a PROC to a software.

Question 63. Describe The Difference Between Subscripting And Indexing?

Answer :

Indexing makes use of binary displacement. Subscripts use the fee of the incidence.

Question sixty four. Differentiate Cobol And Cobol-ii. (most Of Our Programs Are Written In Cobolii, So, It Is Good To Know, How, This Is Different From Cobol)?

Answer :

The following functions are to be had with VS COBOL II: 1. MVS/XA and MVS/ESA guide. The compiler and the object packages it produces can be run in both 24- or 31-bit addressing mode. 2. VM/XA and VM/ESA help the compiler and the item programs it produces can be run in either 24- or 31-bit addressing mode. 3. VSE/ESA supports the compiler and the object packages it produces can be run below VSE/ESA.

Question 65. Why Do We Code S9 (4) Comp. Inspite Of Knowing Comp-three Will Occupy Less Space ?

Answer :

Here s9(4)comp is small integer ,so two words same to one byte so completely it'll occupy 2 bytes(4 phrases).Here in s9(four) comp-3 as one word is same to 1/2 byte.4 words identical to 2 bytes and sign will occupy half of byte so absolutely it will occupy 3 bytes.

Question 66. What Do You Feel Makes A Good Program?

Answer :

A program that follows a pinnacle down technique. It is also one that different programmers or users can follow logically and is straightforward to examine and apprehend.

Question sixty seven. Give Some Advantages Of Redefines Clause?

Answer :

1. You can REDEFINE a Variable from one PICTURE class to another PICTURE class by means of the usage of the equal memory region.
2. By REDEFINES we will INITIALISE the variable in WORKING-STORAGE Section itself.
Three. We can REDEFINE a Single Variable into such a lot of sub variables. (This facility may be very beneficial in fixing Y2000 Problem.)

Question sixty eight. How To Execute A Set Of Jcl Statements From A Cobol Program?

Answer :

Using EXEC CICS SPOOL WRITE (var-call) END-EXEC command. Var-name is a COBOL host structure containing JCL statements.

Question 69. How Do You Submit Jcl Via A Cobol Program?

Answer :

Use a record //dd1 DD sysout=(*, intrdr)write your JCL to this document. Pl some on try this out.

Question 70. What Care Has To Be Taken To Force Program To Execute Above sixteen Meg Line?

Answer :

Make positive that hyperlink alternative is AMODE=31 and RMODE=ANY. Compile choice must never have SIZE (MAX). BUFSIZE can be 2K, efficient enough.

Question seventy one. What Is The Difference Between Search And Search All? What Is More Efficient?

Answer :

SEARCH is a sequential search from the beginning of the table. SEARCH ALL is a binary search, constantly dividing the desk in two halves till a match is found. SEARCH ALL is more efficient for tables large than 70 objects.

Question 72. What Is Pic 9v99 Indicates?

Answer :

PICTURE 9v99 is a three function Numeric area with an implied or assumed decimal factor after the primary function; the v means an implied decimal factor.

Question seventy three. What Is The Difference Between Pic 9.Ninety nine And 9v99?

Answer :

PIC nine.Ninety nine is a FOUR-POSITION field that simply incorporates a decimal point in which as PIC 9v99 is THREE- POSITION numeric subject with implied or assumed decimal role.

Question seventy four. What Is The Difference Between A Dynamic And Static Call In Cobol?

Answer :

To correct an in advance solution: All known as modules cannot run standalone if they require software variables surpassed to them through the LINKAGE section. Dynamically referred to as modules are those who are not certain with the calling application at hyperlink edit time (IEWL for IBM) and so are loaded from the program library (joblib or steplib) associated with the job. For DYNAMIC calling of a module the DYNAM compiler option have to be chosen, else the linkage editor will no longer generate an executable as it will count on u deal with resolution of all known as modules. A Statically known as module is one that is sure with the calling module at hyperlink edit, and consequently becomes a part of the executable load module.

Question seventy five. How Can I Tell If A Module Is Being Called Dynamically Or Statically?

Answer :

The ONLY manner is to examine the output of the linkage editor (IEWL) or the weight module itself. If the module is being known as DYNAMICALLY then it will not exist inside the foremost module, if it's far being referred to as STATICALLY then it will likely be seen within the load module. Calling a running storage variable, containing a program call, does now not make a DYNAMIC name. This form of calling is referred to as IMPLICITE calling as the call of the module is implied by means of the contents of the working storage variable. Calling a program call literal.

Question 76. What Is The Point Of The Replacing Option Of A Copy Statement?

Answer :

REPLACING allows for the same replica to be used more than as soon as inside the identical code by changing the update fee.

Question 77. What Is Length In Cobol Ii?

Answer :

LENGTH acts like a special sign up to tell the period of a collection or basic item.

Question 78. What Is Set To True All About, Anyway?

Answer :

In COBOL II the 88 levels may be set in place of moving their associated values to the associated statistics item. (Web be aware: This alternate is not one of COBOL IIs better specifications.)

Question seventy nine. What Is The Default Value(s) For An Initialize And What Keyword Allows For An Override Of The Default?

Answer :

INITIALIZE actions spaces to alphabetic fields and zeros to alphanumeric fields. The REPLACING option can be used to override those defaults.

Question 80. In An Evalute Statement Is The Order Of The When Clauses Significant?

Answer :

Absolutely. Evaluation of the WHEN clauses proceeds from top to backside and their sequence can determine effects.

Question 81. In A Cobol Ii Perform Statement, When Is The Conditional Tested, Before Or After The Perform Execution?

Answer :

In COBOL II the non-compulsory clause WITH TEST BEFORE or WITH TEST AFTER may be delivered to all carry out statements. By default the test is carried out before the perform.

Question eighty two. When Is A Scope Terminator Mandatory?

Answer :

Scope terminators are obligatory for in-line PERFORMS and EVALUATE statements. For clarity, it is encouraged coding exercise to always make scope terminators specific.

Question 83. Explain The Difference Between An Internal And An External Sort, The Pros And Cons, Internal Sort Syntax Etc?

Answer :

An outside type isn't COBOL; it's miles accomplished through JCL and PGM=SORT. It is comprehensible with none code reference. An inner sort can use two special syntaxs: 1.) USING, GIVING types are similar to outside kinds with no extra report processing; 2) INPUT PROCEDURE, OUTPUT PROCEDURE kinds permit for information manipulation earlier than and/or after the type.

Question eighty four. If You Were Passing A Table Via Linkage, Which Is Preferable - A Subscript Or An Index?

Answer :

Wake up - you haven't been paying interest! It is not possible to skip an index via linkage. The index isn't always part of the calling programs working storage. Those of us, who have made this error, appreciate the lesson greater than others.

Question eighty five. What Is The Difference Between A Subscript And An Index In A Table Definition?

Answer :

A subscript is a running garage facts definition object, normally a PIC (999) wherein a fee should be moved to the subscript and then incremented or decrements by means of ADD TO and SUBTRACT FROM statements. An index is a check in item that exists out of doors the packages operating storage. You SET an index to a fee and SET it UP BY fee and DOWN BY cost.

Question 86. What Is The Linkage Section?

Answer :

The linkage segment is part of a known as application that hyperlinks or maps to records objects inside the calling software are operating storage. It is the part of the known as program in which those share items are described.

Question 87. Explain Call By Context By Comparing It To Other Calls?

Answer :

The parameters handed in a name by context are blanketed from modification via the known as program. In a ordinary call they are capable of be modified.

Question 88. What Was Removed From Cobol In The Cobol Ii Implementation?

Answer :

Partial listing: REMARKS, NOMINAL KEY, PAGE-COUNTER, CURRENT-DAY, TIME-OF-DAY, STATE, FLOW, COUNT, EXAMINE, EXHIBIT, READY TRACE and RESET TRACE.

Question 89. What Is The Difference Between Next Sentence And Continue?

Answer :

NEXT SENTENCE gives manage to the verb following the subsequent duration. CONTINUE offers control to the following verb after the explicit scope terminator. (This is not one among COBOL IIs finer implementations). It is safest to apply CONTINUE rather than NEXT SENTENCE in COBOL II.

Question ninety. What Is An In Line Perform? When Would You Use It? Anything Else You Wish To Say About It?

Answer :

The PERFORM and END-PERFORM statements bracket all COBOL II statements among them. The COBOL equivalent is to PERFORM or PERFORM THRU a paragraph. In line PERFORMs paintings so long as there are not any inner GO TOs, not even to an go out. The in line PERFORM for readability should not exceed a web page period - regularly it will reference different PERFORM paragraphs.

Question 91. What Is An Explicit Scope Terminator?

Answer :

A scope terminator brackets its preceding verb, e.G. IF... END-IF, so that every one statements among the verb and its scope terminator are grouped collectively. Other not unusual COBOL II verbs are READ, PERFORM, and EVALUATE, SEARCH and STRING.

Question 92. What Are The Differences Between Cobol And Cobol Ii?

Answer :

There are at the least 5 variations: COBOL II supports based programming with the aid of the use of in line Performs and express scope terminators, It introduces new functions (EVALUATE, SET. TO TRUE, CALL. BY CONTEXT, etc) It allows programs to be loaded and addressed above the 16-megabyte line It does now not help many antique capabilities (READY TRACE, REPORT-WRITER, ISAM, Etc.), and It gives more suitable CICS support.

Question ninety three. How Many Bytes Do A S9 (7) Comp-3 Field Occupy?

Answer :

It will take 4 bytes to occupy. Sign is stored as hex price within the last nibble. General formulation is INT((n/2) + 1)), where n=7 in this case.

Question 94. How Is Sign Stored In A Comp Field?

Answer :

It is saved in the maximum widespread bit. Bit is ON if -ve, OFF if +ve.

Question 95. What Is The Difference Between Comp And Comp-three?

Answer :

COMP is a binary garage layout even as COMP-three is packed decimal layout.

Question ninety six. How Do You Define A Variable Of Comp-1 And Comp-2?

Answer :

There isn't any photograph clause to receive. Example 01 WS-VAR USAGE COMP-1.




CFG