KyaPoocha.com

Huge Collection of Interview Questions


Archive for September, 2008

Give some advantages of REDEFINES clause. ? 

1. You can REDEFINE a Variable from one PICTURE class to another PICTURE class by using the same memory location. 2. By REDEFINES we can INITIALISE the variable... Read more »

How to execute a set of JCL statements from a COBOL program? 

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

How do you submit JCL via a Cobol program ? 

Use a file //dd1 DD sysout=(*, intrdr)write your JCL to this file. Pl some on try this out.  Read more »

What care has to be taken to force program to execute above 16 Meg line ? 

Make sure that link option is AMODE=31 and RMODE=ANY. Compile option should never have SIZE(MAX). BUFSIZE can be 2K, efficient enough.  Read more »

What is the difference between SEARCH and SEARCH ALL ? What is more efficient ? 

SEARCH is a sequential search from the beginning of the table. SEARCH ALL is a binary search, continually dividing the table in two halves until a match is found.... Read more »

What guidelines should be followed to write a structured Cobol prg’m ? 

use ‘evaluate’ stmt for constructing cases. 2) use scope terminators for nesting. 3) use in line perform stmt for writing ‘do ‘ constructions.... Read more »

what is Pic 9v99 Indicates ? 

PICTURE 9v99 is a three position Numeric field with an implied or assumed decimal point after the first position; the v means an implied decimal point.  Read more »

What is the difference between PIC 9.99 and 9v99 ? 

PIC 9.99 is a FOUR-POSITION field that actually contains a decimal point where as PIC 9v99 is THREE- POSITION numeric field with implied or assumed decimal position.  Read more »

What is the difference between a DYNAMIC and STATIC call in COBOL ? 

To correct an earlier answer: All called modules cannot run standalone if they require program variables passed to them via the LINKAGE section. DYNAMICally called... Read more »

How can I tell if a module is being called DYNAMICALLY or STATICALLY ? 

The ONLY way is to look at the output of the linkage editor (IEWL)or the load module itself. If the module is being called DYNAMICALLY then it will not exist in... Read more »

What is the point of the REPLACING option of a copy statement ? 

REPLACING allows for the same copy to be used more than once in the same code by changing the replace value.  Read more »

What is the difference between a binary search and a sequential search ? What are the pertinent COBOL commands ? 

In a binary search the table element key values must be in ascending or descending sequence. The table is ‘halved’ to search for equal to, greater than... Read more »

What is LENGTH in COBOL II ? 

LENGTH acts like a special register to tell the length of a group or elementary item.  Read more »

What is SET TO TRUE all about, anyway ? 

In COBOL II the 88 levels can be set rather than moving their associated values to the related data item. (Web note: This change is not one of COBOL II’s better... Read more »

What is the default value(s) for an INITIALIZE and what keyword allows for an override of the default. ? 

INITIALIZE moves spaces to alphabetic fields and zeros to alphanumeric fields. The REPLACING option can be used to override these defaults.  Read more »

Page 14 of 14« First...«1011121314