tag:blogger.com,1999:blog-58149463623920021192024-03-13T11:53:25.687-07:00Mainframe's Interview Questions And Answers FAQ'sSumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.comBlogger29125tag:blogger.com,1999:blog-5814946362392002119.post-48555735848437785092008-07-03T03:51:00.000-07:002008-12-23T21:45:21.642-08:00SQL(Structured Query Language):<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:宋体; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal"><b style=""><u><span style="font-size: 16pt; color: navy;">
<br /><o:p></o:p></span></u></b></p> <p class="MsoNormal"><b style=""><u><span style="color: navy;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal"><span style="color: navy;">Structured Query Language (SQL) provides the ability to create and define relational database objects. After these objects are defined, the language permits one to add data to these objects. Once data has been added, one can modify, retrieve, or delete that data. The language provides the capability of defining what type of authority one might have when accessing the data.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;">Data Definition Language<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="color: navy;">As the name implies, there is a group of SQL statements that allows one to define the relational structures that will manage the data placed in them. The “CREATE” statements brings Relational Database Management System (RDMS) objects into existence. The types of objects one can create are STOGROUP, Database, Table space, Table, Index, View, Synonym, and Alias. The definitions of these objects are as follows:<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;">STOGROUP:</span></b><span style="color: navy;"> A storage group is a list of disk volume names to which one can assign a name. One defines the list of disk volumes and assigns the STOGROUP name with the Create STOGROUP statement.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;">Database:</span></b><span style="color: navy;"> A database is a logical structure in which tables and indexes are later created. The database is defined and associated with a STOGROUP with a Create Database statement.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;">Tablespace:</span></b><span style="color: navy;"> A tablespace is an area on disk that is allocated and formatted by the Create Table space statement.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;">Table:</span></b><span style="color: navy;"> A table is an organizational structure which is defined in a Create Table statement. In this statement, the data attributes are defined by column, giving each column its own unique name within the table.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;">Index:</span></b><span style="color: navy;"> A index is used in conjuction with the “Primary Key” parameter of the Create Table statement. It is made with the Create Index statement and provides the duplicate record-checking necessary for a unique key.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;">View:</span></b><span style="color: navy;"> A view is an alternative perspective of the data present in a database. It is made with the Create View statement and can represent a subset of the columns defined in a table. It can also represents a set of columns combined from more than one table.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;">Synonym:</span></b><span style="color: navy;"> The Create Synonym statement defines an unqualified name for a table or a view.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;">Alias:</span></b><span style="color: navy;"> The Create Alias statement defines an alternate qualified name for a table or a view.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="color: navy;">After a table is created, additional columns may be added with an Alter Table statement. Any RDMS object that was made with a create statement can be removed with a drop statement.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="color: navy;">In order to define RDMS objects, one needs various levels of authority. The following is a list of authority levels that can be granted to a user ID to operate on a designated database.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="color: navy;">DBADM<span style=""> </span>Database administrator authority<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;">DBCTRL<span style=""> </span>Database control authority<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;">DBMAINT<span style=""> </span>Database maintenance authority<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;">CREATETS <span style=""> </span>Create Table space Authority<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;">CREATETAB<span style=""> </span>Create Table authority<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;">DROP<span style=""> </span>Drop authority on a database or subordinate objects<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;">Data Manipulation Language<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: navy;"><span style=""> </span>There are four SQL data manipulation statements(DML) available: Insert, Select, Update, and Delete. After tables are defined, they are ready to store data. Data is added to tables through the SQL Insert statement. Once data has been inserted into a table, it can be retrieved by the use of the Select statement. Data stored in a table can be modified by executing the SQL Update statement. Data can be deleted from a table by using the SQL Delete statement.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: navy;"><span style=""> </span>The SQL statements perform RDMS operations that can affect only one row at a time if desired. The same statements can, if required, affect many or all of the rows in a table. It is possible to select one row and insert it into another with one statement. It is also just as easy to select all of the rows from one table and insert all of them into another with a single statement. The same scope of operation applied to the update and delete statements. The scope of operation is controlled by the use of the WHERE clause. The operation will affect only the rows that satisfy the search condition. When no search condition specified, the entire table is affected.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: navy;"><span style=""> </span>There are additional language elements available that provide the ability to process the table data while it is being retrieved. In addition, there are a variety of functions that modify the value of the data that is returned in a query. There are column functions that act on all of the values of the selected rows for a specified column and return a single answer. There are also scalar functions that return a specific answer for each row that satisfies the search condition.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: navy;"><span style=""> </span>As mentioned previously, SQL provides the ability to filter what data is retrieved in a select statement by including the WHERE clause. The WHERE clause specifies a variety of comparisons between two values. The values could be column values or the result of an operation involving more than one column or a constant. The comparison operation are the same as those used in COBOL, with the exception of two additional operators. The first is the IN operator that compares a single value has a match in the specified list of values. The other is the LIKE operator, in which you can specify a value string that includes “wildcard” characters in such a manner that you can select rows of a table where column values are similar to the extent you require.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: navy;"><span style=""> </span>SQL provides four arithmetic operations : addition, subtraction, multiplication, and division. An arithmetic expression may involve any combination of column name or numbers. The arithmetic expression may itself be used as a column name or in a Select, Insert, Update, or Delete statement.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: navy;"><span style=""> </span>SQL provides the ability to sort the data retrieved from a table via the ORDER BY clause. In this clause, you can specify one or more sort column names as well as if each sort key is ascending or descending.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="color: navy;"><span style=""> </span>SQL also provides the ability to perform set manipulation operations. Using SQL, one can SELECT the intersection of two or more sets of data by coding a JOIN. A JOIN is any SELECT statement that has more than one DBMS object listed in its FROM clause. One can combine different sets of data by using the UNION operator. Other set manipulations can be executed by combining different operators and search conditions.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><u><span style="color: navy;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal"><b style=""><span style="color: navy;">The Following are the most frequently asked questions....<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q1)<span style=""> </span>What RDMS objects are created with the SQL CREATE statements?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A1)<span style=""> </span>The SQL CREATE statements are used to create the following objects:<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><span style=""> </span>STOGROUP<span style=""> </span>A storage group<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><span style=""> </span>DATABASE<span style=""> </span>A logical collection of tables<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><span style=""> </span>TABLESPACE<span style=""> </span>An area that stores tables<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><span style=""> </span>TABLE<span style=""> </span>A data structure organized by a specified columns<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><span style=""> </span>INDEX<span style=""> </span>An alternate path to a table data<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><span style=""> </span>VIEW<span style=""> </span>An alternate representation of one or more tables<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><span style=""> </span>SYNONYM<span style=""> </span>An alternate name for local table or view<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><span style=""> </span>ALIAS<span style=""> </span>An alternate name for a table definition which may be local <span style=""> </span>or remote, existence or nonexistent<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q2)<span style=""> </span>What RDMS objects are required before you can create a table?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A2)<span style=""> </span>Before you can create a table, you need an existing database and tablespace.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q3)<span style=""> </span>In what RDMS object does one first list column names?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A3)<span style=""> </span>One first uses the column name in the CREATE TABLE statement.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q4)<span style=""> </span>What is the syntax for a CREATE TABLE statement?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A4)<span style=""> </span>CREATE TABLE table name<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><span style=""> </span>(column name list<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><span style=""> </span>primary key (column name))<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><span style=""> </span>in database-name, tablespace-name.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q5)<span style=""> </span>Can one add columns to a table after it has been defined?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A5)<span style=""> </span>Yes, one can add column to a table after it has been defined by using the SQL ALTER TABLE statement.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q6)<span style=""> </span>Where in a table are added columns located?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A6)<span style=""> </span>The new columns are added to the end of the table.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q7)<span style=""> </span>After a table is defined, can columns be removed?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A7)<span style=""> </span>The only way to remove columns from an existing table involves a migration program that extracts only the desired <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="color: navy;">columns of data, redefining the table without the unwanted columns, then populating the new table. One have to handle <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="color: navy;">all the old table’s dependents programmatically. <o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q8)<span style=""> </span>Which RDMS objects can you change with the SQL ALTER statements?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A8)<span style=""> </span>The SQL ALTER statement can change a table index, a table, a tablespace, or a STOGROUP. <o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q9)<span style=""> </span>What authority is required to create a table?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A9)<span style=""> </span>In order to create tables, one needs CREATETAB privileges.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q10)<span style=""> </span>What is minimum authority required for one to create a tablespace?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A10)<span style=""> </span>In order to create tablespaces, one needs CREATETS privileges.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q11)<span style=""> </span>When is it necessary to create a table index?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A11)<span style=""> </span>It is necessary to create a table index whenever you want to enforce the uniqueness of the table’s primary key.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q12)<span style=""> </span>What is a synonym?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A12)<span style=""> </span>A synonym is an unqualified alternative name for a table or view.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q13)<span style=""> </span>What is a foreign key?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A13)<span style=""> </span>A foreign key is the key defined in one table to reference the primary key of a reference table. This foreign key must <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: navy;">have the same structure as the reference table’s primary key.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: navy;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q14)<span style=""> </span>What is referential integrity?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A14)<span style=""> </span>Referential integrity is the automatic enforcement of referential constraints that exist between a reference table and a <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: navy;">referencing table. When referential integrity is enforced, the value of a foreign key exists as<span style=""> </span>a primary key value in the <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: navy;">reference table. In other words, when referential integrity is enforced, all of the foreign key values in, for example, the<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: navy;">“department code” column in an “employee” table exist as primary key values in a “department” table.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q15)<span style=""> </span>What are the column name qualifiers?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A15)<span style=""> </span>A column name qualifier are used as a table designator to avoid ambiguity when the column names referenced exists <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: navy;">in more than one table used in the SQL statement. Column name qualifiers are also used in correlated references.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q16)<span style=""> </span>What is a correlation name?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A16)<span style=""> </span>A correlation name is a special type of column designator that connects specific columns in the various levels of a <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: navy;">multilevel SQL query.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q17)<span style=""> </span>What is a results table?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A17)<span style=""> </span>A result table is the product of a query against one or more tables or views (i.e., it is the place that holds the results of a <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: navy;">query).<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: navy;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: navy;">Q18)<span style=""> </span>What is a cursor?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: navy;">A18)<span style=""> </span>A cursor is a named control structure used to make a set of rows available to a program. DB2 is the relational database <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: navy;">system that runs in an MVS environment. It was developed by IBM and interfaces with SQL. With the use of SQL <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: navy;">DB2, databases can be accessed by a wide range of host languages. SQL is the relational database " application <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: navy;">language " that interfaces with DB2. Because of its capabilities, SQL and, in turn, DB2 have gained considerable <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: navy;">acceptance. Thus, a working knowledge of DB2 increases one's marketability.<o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q19)<span style=""> </span>What is the basic difference between a join and a union? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A19)<span style=""> </span>A join selects columns from 2 or more tables. A union selects rows.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q20)<span style=""> </span>What is normalization and what are the five normal forms? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A20)<span style=""> </span>Normalization is a design procedure for representing data in tabular format.<span style=""> </span>The five normal forms are progressive </p> <p class="MsoNormal" style="text-indent: 27pt;">rules to represent the data with minimal redundancy. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q21)<span style=""> </span>What are foreign keys? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A21)<span style=""> </span>These are attributes of one table that have matching values in a primary key in another table, allowing for relationships </p> <p class="MsoNormal" style="text-indent: 27pt;">between tables. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q22)<span style=""> </span>Describe the elements of the SELECT query syntax? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A22)<span style=""> </span>SELECT element FROM table WHERE conditional statement. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q23)<span style=""> </span>Explain the use of the WHERE clause? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A23)<span style=""> </span>WHERE is used with a relational statement to isolate the object element or row. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q24)<span style=""> </span>What techniques are used to retrieve data from more than one table in a single SQL statement? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A24)<span style=""> </span>Joins, unions and nested selects are used to retrieve data. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q25)<span style=""> </span>What is a view? Why use it? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A25)<span style=""> </span>A view is a virtual table made up of data from base tables and other views, but not stored separately. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q26)<span style=""> </span>Explain an outer join? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A26)<span style=""> </span>An outer join includes rows from tables when there are no matching values in the tables. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q27)<span style=""> </span>What is a subselect?<span style=""> </span>Is it different from a nested select? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A27)<span style=""> </span>A subselect is a select which works in conjunction with another select. A nested select is a kind of subselect where the </p> <p class="MsoNormal" style="text-indent: 27pt;">inner select passes to the where criteria for the outer select. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q28)<span style=""> </span>What is the difference between group by and order by? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A28)<span style=""> </span>Group by controls the presentation of the rows, order by controls the presentation of the columns<span style=""> </span>for the results of the </p> <p class="MsoNormal" style="text-indent: 27pt;">SELECT statement. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q29)<span style=""> </span>What keyword does an SQL SELECT statement use for a string search? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A29)<span style=""> </span>The LIKE keyword allows for string searches.<span style=""> </span>The % sign is used as a wildcard. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q30)<span style=""> </span>What are some SQL aggregates and other built-in functions? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A30)<span style=""> </span>The common aggregate, built-in functions are AVG, SUM, MIN, MAX, COUNT and DISTINCT. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q31)<span style=""> </span>How is the SUBSTR keyword used in SQL? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A31)<span style=""> </span>SUBSTR is used for string manipulation with column name, first position and string length used as arguments.<span style=""> </span>E.g. </p> <p class="MsoNormal" style="text-indent: 27pt;">SUBSTR (NAME, 1 3) refers to the first three characters in the column NAME. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q32)<span style=""> </span>Explain the EXPLAIN statement? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A32)<span style=""> </span>The explain statement provides information about the optimizer's choice of access path of the SQL. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q33)<span style=""> </span>What is referential integrity? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A33)<span style=""> </span>Referential integrity refers to the consistency that must be maintained between primary and foreign keys, i.e. every </p> <p class="MsoNormal" style="text-indent: 27pt;">foreign key value must have a corresponding primary key value.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q34)<span style=""> </span>What is a NULL value?<span style=""> </span>What are the pros and cons of using NULLS? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A34)<span style=""> </span>A NULL value takes up one byte of storage and indicates that a value is not present as opposed to a space or zero </p> <p class="MsoNormal" style="text-indent: 27pt;">value.<span style=""> </span>It's the DB2 equivalent of TBD on an organizational chart and often correctly portrays a business situation.<span style=""> </span></p> <p class="MsoNormal" style="text-indent: 27pt;">Unfortunately, it requires extra coding for an application program to handle this situation. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q35)<span style=""> </span>What is a synonym?<span style=""> </span>How is it used? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A35)<span style=""> </span>A synonym is used to reference a table or view by another name.<span style=""> </span>The other name can then be written in the </p> <p class="MsoNormal" style="text-indent: 27pt;">application code pointing to test tables in the development stage and to production entities when the code is migrated.<span style=""> </span></p> <p class="MsoNormal" style="text-indent: 27pt;">The synonym is linked to the AUTHID that created it. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q36)<span style=""> </span>What is an alias and how does it differ from a synonym? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A36)<span style=""> </span>An alias is an alternative to a synonym, designed for a distributed environment to avoid having to use the location </p> <p class="MsoNormal" style="text-indent: 27pt;">qualifier of a table or view.<span style=""> </span>The alias is not dropped when the table is dropped. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q37)<span style=""> </span>When can an insert of a new primary key value threaten referential integrity? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A37)<span style=""> </span>Never. New primary key values are not a problem.<span style=""> </span>However, the values of foreign key inserts must have </p> <p class="MsoNormal" style="text-indent: 27pt;">corresponding primary key values in their related tables. And updates of primary key values may require changes in </p> <p class="MsoNormal" style="text-indent: 27pt;">foreign key values to maintain referential integrity. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q38)<span style=""> </span>What is the difference between static and dynamic SQL? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A38)<span style=""> </span>Static SQL is hard-coded in a program when the programmer knows the statements to be executed.<span style=""> </span>For dynamic SQL </p> <p class="MsoNormal" style="text-indent: 27pt;">the program must dynamically allocate memory to receive the query results. </p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q39)<span style=""> </span>Compare a subselect to a join? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A39)<span style=""> </span>Any subselect can be rewritten as a join, but not vice versa. Joins are usually more efficient as join rows can be </p> <p class="MsoNormal" style="text-indent: 27pt;">returned immediately, subselects require a temporary work area for inner selects results while processing the outer </p> <p class="MsoNormal" style="text-indent: 27pt;">select. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q40)<span style=""> </span>What is the difference between IN subselects and EXISTS subselect? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A40)<span style=""> </span>If there is an index on the attributes tested an IN is more efficient since DB2 uses the index for the IN.<span style=""> </span>(IN for index is </p> <p class="MsoNormal" style="text-indent: 27pt;">the mnemonic). </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q41)<span style=""> </span>What is a Cartesian product? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A41)<span style=""> </span>A Cartesian product results from a faulty query.<span style=""> </span>It is a row in the results for every combination in the join tables. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q42)<span style=""> </span>What is a tuple? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A42)<span style=""> </span>A tuple is an instance of data within a relational database. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q43)<span style=""> </span>What is the difference between static and dynamic SQL? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A43)<span style=""> </span>Static SQL is compiled and optimized prior to its execution; dynamic is compiled and optimized during execution. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q44)<span style=""> </span>Any SQL implementation covers data types in couple of main categories. Which of the following are those data <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">types ? (Check all that apply)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt;">A). NUMERIC<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;">B). CHARACTER<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;">C). DATE AND TIME<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;">D). BLOBS<span style=""> </span>E. BIT </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A44)<span style=""> </span>A,B,C. Not all SQL implementations have a BLOB or a BIT data types. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q45)<span style=""> </span>We have a table with a CHARACTER data type field. We apply a ">" row comparison between this field and <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">another CHARACTER field in another table. What will be the results for records with field value of NULL? <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">(Check one that applies the best)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">A.<span style=""> </span>TRUE<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">B.<span style=""> </span>B. FALSE<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">C.<span style=""> </span>C. UNKNOWN<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">D.<span style=""> </span>D. Error. </p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">E.<span style=""> </span>E. Those records will be ignored </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A45)<span style=""> </span>C. NULL in a row when compared will give an UNKNOWN result. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q46)<span style=""> </span>Any database needs to go through a normalization process to make sure that data is represented only once. This <o:p></o:p></b></p> <p class="MsoNormal" style=""><b style=""><span style=""> </span>will eliminate problems with creating or destroying data in the database. The normalization process is done <o:p></o:p></b></p> <p class="MsoNormal" style=""><b style=""><span style=""> </span>usually in three steps which results in first, second and third normal forms. Which best describes the process to <o:p></o:p></b></p> <p class="MsoNormal" style=""><b style=""><span style=""> </span>obtain the third normal form? (Check one that applies the best)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">A.<span style=""> </span>Each table should have related columns.<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">B.<span style=""> </span>Each separate table should have a primary key.<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">C.<span style=""> </span>We have a table with multi-valued key. All columns that are dependent on only one or on some of the keys should be moved in a different table.</p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">D.<span style=""> </span>If a table has columns not dependent on the primary keys, they need to be moved in a separate table.<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">E.<span style=""> </span>E. Primary key is always UNIQUE and NOT NULL. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A46)<span style=""> </span>D. All columns in a table should be dependent on the primary key. This will eliminate transitive dependencies in </p> <p class="MsoNormal" style="text-indent: 27pt;">which A depends on B, and B depends on C, but we're not sure how C depends on A. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q47)<span style=""> </span>SQL can be embedded in a host program that uses a relational database as a persistent data repository. Some of <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">the most important pre-defined structures for this mechanism are SQLDA ("SQL Descriptor Area") and <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">SQLCA ("SQL Communications Area") SQLCA contains two structures - SQLCODE and SQLSTATE. <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">SQLSTATE is a standard set of error messages and warnings in which the first two characters defines the class <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">and the last three defines the subclass of the error. Which of the following SQLSTATE codes is interpreted as <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">"No data returned"?(Check one that applies the best)<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt;">A). 00xxx<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;">B). 01xxx<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;">C). 02xxx<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;">D). 22xxx<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;">E). 2Axxx </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A47)<span style=""> </span>C. 00 - is successful completion, 01 - warnings, 22 - is data exception and 2A is syntax error. The SQLSTATE code </p> <p class="MsoNormal" style="text-indent: 27pt;">format returned for "No data returned" is "02xxx". </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q48)<span style=""> </span>What are common SQL abend codes? (e.g. : 0,100 etc.,)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A48)<span style=""> </span>-818 time stamp mismatch</p> <p class="MsoNormal" style="text-indent: 27pt;">-180 wrong data moved into date field</p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q49)<span style=""> </span>What is meant by dynamic SQL?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A49)<span style=""> </span>Dynamic SQL are SQL statements that are prepared and executed within a program while the program is executing. <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">The SQL source is contained in host variables rather than being hard coded into the program. The SQL statement may <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">change from execution to execution.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q50)<span style=""> </span>What is meant by embedded SQL?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A50)<span style=""> </span>They are SQL statements that are embedded with in application program and are prepared during the program<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;"><span style=""> </span>preparation process before the program is executed. After it is prepared, the statement itself does not change(although <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">values of host variables specified within the statement might change).<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q51)<span style=""> </span>What is meant by entity integrity?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A51)<span style=""> </span>Entity integrity is when the primary key is in fact unique and not null.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q52)<span style=""> </span>What will EXPLAIN do?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A52)<span style=""> </span>EXPLAIN obtains information (which indexes are used, whether sorting is necessary, which level of locking is <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">applied) about how SQL statements in the DBRM will be executed, inserting this information into the<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">“X”.PLAN.TABLE where the “X” is the authorization ID of the owner of the plan.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q53)<span style=""> </span>What is the foreign key? <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A53)<span style=""> </span>A foreign key is a column (or combination of columns) in a table whose values are required to match those of the <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">primary key in some other table.<o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q54)<span style=""> </span>What will GRANT option do?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A54)<span style=""> </span>It will grant privileges to a list of one or more users. If the GRANT option is used in conjunction with the “PUBLIC” <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">option, then all users will be granted privileges. Also you can grant privileges by objects and types.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q55)<span style=""> </span>What does the term “grant privileges” mean?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A55)<span style=""> </span>Grant privileges means giving access/authority to<span style=""> </span>DB2 users.<o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q56)<span style=""> </span>What is an image copy?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A56)<span style=""> </span>It is an exact reproduction of all or part of a tablespace. DB2 provides utility programs to make full-image copies (to <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">copy the entire tablespace) or incremental image copies to copy only those pages that have been modified since the last <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">image copy.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q57)<span style=""> </span>What is meant by an index?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A57)<span style=""> </span>An index is a set of row identifiers (RIDs) or pointers that are logically ordered by the values of a column that has <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">been specified as being an index. Indexes provide faster access to data and can enforce uniqueness on the row in a <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">table.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q58)<span style=""> </span>What is an index key?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A58)<span style=""> </span>It is a column or set of columns in a table used to determine the order of index entries.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q59)<span style=""> </span>What is a join?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A59)<span style=""> </span>A join is a relational operation that allows retrieval of data from two or more tables based on matching columns <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">values.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q60)<span style=""> </span>What is meant by locking?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A60)<span style=""> </span>Locking is a process that is used to ensure data integrity. It also prevents concurrent users from accessing inconsistent <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">data. The data (row) is locked until a commit is executed to release the updated data.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q61)<span style=""> </span>What is meant by null?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A61)<span style=""> </span>This is a special value that indicates the absence of data in a column. This value is indicated by a negative value, <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">usually -1.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q62)<span style=""> </span>What is an object?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A62)<span style=""> </span>An object is anything that is managed by DB2 (that is databases, table spaces, tables, views, indexes or synonyms), but <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">not the data itself.<o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q63)<span style=""> </span>Describe referential integrity?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A63)<span style=""> </span>Referential integrity refers to a feature in DB2 that is used to ensure consistency of the data in the database.<o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="color: black;">Q64)<span style=""> </span>Describe a primary key?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="color: black;">A64)<span style=""> </span>A primary key is a key that is unique, non-null, and is part of the definition of a table. A table must have a primary key <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 27pt;"><span style="color: black;">to be defined as a parent.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q65)<span style=""> </span>How would you find out the total number of rows in a table? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A65)<span style=""> </span>Use SELECT COUNT(*) ...</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q66)<span style=""> </span>How do you eliminate duplicate values in SELECT? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A66)<span style=""> </span>Use SELECT DISTINCT ...</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q67)<span style=""> </span>How do you select a row using indexes? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A67)<span style=""> </span>Specify the indexed columns in the WHERE clause.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q68)<span style=""> </span>What are aggregate functions?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A68)<span style=""> </span>Bulit-in mathematical functions for use in SELECT clause.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q69)<span style=""> </span>How do you find the maximum value in a column? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A69)<span style=""> </span>Use SELECT MAX(...</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q70)<span style=""> </span>Can you use MAX on a CHAR column?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A70)<span style=""> </span>YES.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q71)<span style=""> </span>My SQL statement SELECT AVG(SALARY) FROM EMP-TABLE yields inaccurate results. Why?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A71)<span style=""> </span>Because SALARY is not declared to have Null’s and the employees for whom the salary is not known are also </p> <p class="MsoNormal" style="text-indent: 27pt;">counted.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q72)<span style=""> </span>How do you retrieve the first 5 characters of FIRSTNAME column of EMP table?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A72)<span style=""> </span>SELECT SUBSTR(FIRSTNAME,1,5) FROM EMP;</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q73)<span style=""> </span>How do you concatenate the FIRSTNAME and LASTNAME from EMP table to give a complete name?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A73)<span style=""> </span>SELECT FIRSTNAME || ' ' || LASTNAME FROM EMP; </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q74)<span style=""> </span>What is the use of VALUE function?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A74)<span style=""> </span>Avoid negative SQLCODEs by handling nulls and zeroes in computations.</p> <p class="MsoNormal" style="text-indent: 27pt;">Substitute a numeric value for any nulls used in computation.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q75)<span style=""> </span>What is UNION,UNION ALL? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A75)<span style=""> </span>UNION <span style=""> </span>eliminates duplicates</p> <p class="MsoNormal" style="text-indent: 27pt;">UNION ALL: <span style=""> </span>retains duplicates</p> <p class="MsoNormal" style="text-indent: 27pt;">Both these are used to combine the results of different SELECT statements.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q76)<span style=""> </span>Suppose I have five SQL SELECT statements connected by UNION/UNION ALL, how many times should I <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">specify UNION to eliminate the duplicate rows? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A76)<span style=""> </span>Once.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q77)<span style=""> </span>What is the restriction on using UNION in embedded SQL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A77)<span style=""> </span>It has to be in a CURSOR.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q78)<span style=""> </span>In the WHERE clause what is BETWEEN and IN? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A78)<span style=""> </span>BETWEEN supplies a range of values while IN supplies a list of values.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q79)<span style=""> </span>Is BETWEEN inclusive of the range values specified? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A79)<span style=""> </span>Yes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q80)<span style=""> </span>What is 'LIKE' used for in WHERE clause? What are the wildcard characters? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A80)<span style=""> </span>LIKE is used for partial string matches.<span style=""> </span>'%' ( for a string of any character ) and '_' (for any single character ) are the </p> <p class="MsoNormal" style="text-indent: 27pt;">two wild card characters.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q81)<span style=""> </span>When do you use a LIKE statement?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A81)<span style=""> </span>To do partial search e.g. to search employee by name, you need not specify the complete name; using LIKE, you can </p> <p class="MsoNormal" style="text-indent: 27pt;">search for partial string matches.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q82)<span style=""> </span>What is the meaning of underscore ( '_' ) in the LIKE statement? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A82)<span style=""> </span>Match for any single character.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q83)<span style=""> </span>What do you accomplish by GROUP BY ... HAVING clause? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A83)<span style=""> </span>GROUP BY partitions the selected rows on the distinct values of the column on which you group by. HAVING selects </p> <p class="MsoNormal" style="text-indent: 27pt;">GROUPs which match the criteria specified</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q84)<span style=""> </span>Consider the employee table with column PROJECT nullable.<span style=""> </span>How can you get a list of employees who are not <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">assigned to any project?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A84)<span style=""> </span>SELECT EMPNO FROM EMP WHERE PROJECT IS NULL;</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q85)<span style=""> </span>What is the result of this query if no rows are selected:<o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;">SELECT SUM(SALARY) FROM EMP WHERE QUAL='MSC';</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A85)<span style=""> </span>NULL</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q86)<span style=""> </span>Why SELECT * is not preferred in embedded SQL programs?<o:p></o:p></b></p> <p class="MsoNormal">For<span style=""> </span>three reasons:</p> <p class="MsoNormal">If the table structure is changed (a field is added), the program will have to be modified</p> <p class="MsoNormal">Program might retrieve the columns which it might not use, leading on I/O over head.</p> <p class="MsoNormal">The chance of an index only scan is lost.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q87)<span style=""> </span>What are correlated subqueries? - GS<o:p></o:p></b></p> <p class="MsoNormal">A subquery in which the inner ( nested ) query refers back to the table in the outer query. Correlated </p> <p class="MsoNormal">subqueries must be evaluated for each qualified row of the outer query that is referred to.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q88)<span style=""> </span>What is a cursor? Why should it be used? - GS<o:p></o:p></b></p> <p class="MsoNormal">Cursor is a programming device that allows the SELECT to find a set of rows but return them one at a time.</p> <p class="MsoNormal">Cursor should be used because the host language can deal with only one row at a time.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q89)<span style=""> </span>How would you retrieve rows from a DB2 table in embedded SQL? - GS<o:p></o:p></b></p> <p class="MsoNormal">Either by using the single row SELECT statements,or by using the CURSOR.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q90)<span style=""> </span>Apart from cursor, what other ways are available to you to retrieve a row from a table in embedded SQL? - GS<o:p></o:p></b></p> <p class="MsoNormal">Single row SELECTs.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q91)<span style=""> </span>How do you specify and use a cursor in a COBOL program? - GS<o:p></o:p></b></p> <p class="MsoNormal">Use DECLARE CURSOR statement either in working storage or in procedure division (before open cursor), </p> <p class="MsoNormal">to specify the SELECT statement.<span style=""> </span>Then use OPEN, FETCH rows in a loop and finally CLOSE.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q92)<span style=""> </span>What happens when you say OPEN CURSOR?<o:p></o:p></b></p> <p class="MsoNormal">If there is an ORDER BY clause, rows are fetched, sorted and made available for the FETCH statement. Other wise simply the cursor is placed on the first row.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q93)<span style=""> </span>Is DECLARE CURSOR executable?<o:p></o:p></b></p> <p class="MsoNormal">No.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q94)<span style=""> </span>Can you have more than one cursor open at any one time in a program ? - GS<o:p></o:p></b></p> <p class="MsoNormal">Yes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q95)<span style=""> </span>When you COMMIT, is the cursor closed?<o:p></o:p></b></p> <p class="MsoNormal">Yes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">1.<span style=""> </span>What is SQLCA and SQLDA?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">2.<span style=""> </span>What is 2 phase commit?</p> <p class="MsoNormal"><o:p> </o:p></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-71695825445326156462008-07-03T03:48:00.000-07:002008-12-23T21:45:21.642-08:00COBOL & COBOL II <meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"></o:smarttagtype><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]><object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id="ieooui"></object> <style> st1\:*{behavior:url(#ieooui) } </style> <![endif]--><style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;">COBOL & COBOL II <o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q1)<span style=""> </span>Name the divisions in a COBOL program ?. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A1)<span style=""> </span>IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATA DIVISION, PROCEDURE DIVISION.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q2)<span style=""> </span>What are the different data types available in COBOL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A2)<span style=""> </span>Alpha-numeric (X), alphabetic (A) and numeric (9).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q3)<span style=""> </span>What does the INITIALIZE verb do?<span style=""> </span>- GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A3)<span style=""> </span>Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES. Numeric, Numeric edited items set to ZERO. FILLER , OCCURS DEPENDING ON items left untouched.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q4)<span style=""> </span>What is 77 level used for ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A4)<span style=""> </span>Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q5)<span style=""> </span>What is 88 level used for ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A5)<span style=""> </span>For condition names.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q6)<span style=""> </span>What is level 66 used for ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A6)<span style=""> </span>For RENAMES clause.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q7)<span style=""> </span>What does the IS NUMERIC clause establish ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A7)<span style=""> </span>IS NUMERIC can be used on alphanumeric items, signed numeric & packed decimal items and unsigned numeric & packed decimal<span style=""> </span>items. IS NUMERIC returns TRUE if the item only consists of 0-9. However, if the item being tested is a signed<span style=""> </span>item, then it may contain 0-9,<span style=""> </span>+ and - .</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q8)<span style=""> </span>How do you define a table/array in COBOL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A8)<span style=""> </span>ARRAYS.</p> <p class="MsoNormal" style="text-indent: 0.25in;">05<span style=""> </span>ARRAY1<span style=""> </span>PIC X(9) OCCURS 10 TIMES.</p> <p class="MsoNormal"><span style=""> </span>05<span style=""> </span>ARRAY2<span style=""> </span>PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q9)<span style=""> </span>Can the OCCURS clause be at the 01 level?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A9)<span style=""> </span>No.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q10)<span style=""> </span>What is the difference between index and subscript? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A10)<span style=""> </span>Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the<span style=""> </span></p> <p class="MsoNormal" style=""><span style=""> </span>array. An index can only be modified using PERFORM, SEARCH & SET. Need to have index for a table in order to </p> <p class="MsoNormal" style=""><span style=""> </span>use SEARCH, SEARCH ALL.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q11)<span style=""> </span>What is the difference between SEARCH and SEARCH ALL? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A11)<span style=""> </span>SEARCH - is a serial search.</p> <p class="MsoNormal" style="margin-left: 27pt;">SEARCH ALL - is a binary search & the table must be sorted ( ASCENDING/DESCENDING KEY clause to be used & data loaded in this order) before using SEARCH ALL.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q12)<span style=""> </span>What should be the sorting order for SEARCH ALL? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A12)<span style=""> </span>It can be either ASCENDING or DESCENDING.<span style=""> </span>ASCENDING is default.<span style=""> </span>If you want the search to be done on an<span style=""> </span></p> <p class="MsoNormal" style=""><span style=""> </span>array sorted in descending order, then while defining the array, you should give DESCENDING KEY clause. (You </p> <p class="MsoNormal" style=""><span style=""> </span>must load the table in the specified order).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q13)<span style=""> </span>What is binary search?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A13)<span style=""> </span>Search on a sorted array.<span style=""> </span>Compare the item to be searched with the item at the center.<span style=""> </span>If it matches, fine else repeat the process with the left half or the right half depending on where the item lies.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q14)<span style=""> </span>My program has an array defined to have 10 items.<span style=""> </span>Due to a bug, I find that even if the program access the <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style=""> </span>11th item in this array, the program does not abend.<span style=""> </span>What is wrong with it?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A14)<span style=""> </span>Must use compiler option SSRANGE if you want array bounds checking. Default is NOSSRANGE.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q15)<span style=""> </span>How do you sort in a COBOL program?<span style=""> </span>Give sort file definition, sort statement syntax and meaning. - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A15)<span style=""> </span> Syntax: SORT file-1 ON ASCENDING/DESCENDING KEY key.... USING file-2 GIVING file-3.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;">USING can be substituted by INPUT PROCEDURE IS para-1 THRU para-2</p> <p class="MsoNormal" style="margin-left: 27pt;">GIVING can be substituted by OUTPUT PROCEDURE IS para-1 THRU para-2.</p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;">file-1 is the sort (work) file and must be described using SD entry in FILE SECTION.</p> <p class="MsoNormal" style="margin-left: 27pt;">file-2 is the input file for the SORT and must be described using an FD entry in FILE SECTION and SELECT </p> <p class="MsoNormal" style="margin-left: 27pt;">clause in FILE CONTROL. </p> <p class="MsoNormal" style="margin-left: 27pt;">file-3 is the out file from the SORT and must be described using an FD entry in FILE SECTION and SELECT </p> <p class="MsoNormal" style="margin-left: 27pt;">clause in FILE CONTROL.</p> <p class="MsoNormal" style="margin-left: 27pt;">file-1, file-2 & file-3 should not be opened explicitly.</p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;">INPUT PROCEDURE is executed before the sort and records must be RELEASEd to<span style=""> </span>the sort work file from the input procedure.</p> <p class="MsoNormal" style="margin-left: 27pt;">OUTPUT PROCEDURE is executed after all records have been sorted. Records from the sort work file must be RETURNed one at a time to the output procedure.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q16)<span style=""> </span>How do you define a sort file in JCL that runs the COBOL program?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A16)<span style=""> </span>Use the SORTWK01, SORTWK02,..... dd names in the step. Number of sort datasets depends on the volume of data<span style=""> </span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style=""> </span>being sorted, but a minimum of 3 is required.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q17)<span style=""> </span>What is the difference between performing a SECTION and a PARAGRAPH? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A17)<span style=""> </span>Performing a SECTION will cause all the paragraphs that are part of the section, to be performed. </p> <p class="MsoNormal" style="text-indent: 27pt;">Performing a PARAGRAPH will cause only that paragraph to be performed.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q18)<span style=""> </span>What is the use of EVALUATE statement? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A18)<span style=""> </span>Evaluate is like a case statement and can be used to replace nested Ifs. The difference between EVALUATE and </p> <p class="MsoNormal" style="text-indent: 27pt;">case is that no 'break' is required for EVALUATE i.e. control comes out of the EVALUATE as soon as one match is </p> <p class="MsoNormal" style="text-indent: 27pt;">made.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q19)<span style=""> </span>What are the different forms of EVALUATE statement?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A19)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;">EVALUATE<span style=""> </span><span style=""> </span><span style=""> </span>EVALUATE SQLCODE ALSO FILE-STATUS</p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>WHEN A=B AND C=D<span style=""> </span><span style=""> </span>WHEN 100 ALSO '00'</p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>imperative stmt<span style=""> </span><span style=""> </span>imperative stmt<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 9pt;">WHEN (D+X)/Y = 4 <span style=""> </span><span style=""> </span>WHEN -305 ALSO '32'</p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span><span style=""> </span><span style=""> </span>imperative stmt<span style=""> </span><span style=""> </span>imperative stmt</p> <p class="MsoNormal" style="margin-left: 63pt; text-indent: -0.25in;">WHEN OTHER<span style=""> </span><span style=""> </span>WHEN OTHER</p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span><span style=""> </span>imperative stmt<span style=""> </span><span style=""> </span>imperative stmt</p> <p class="MsoNormal" style="margin-left: 27pt;">END-EVALUATE<span style=""> </span><span style=""> </span>END-EVALUATE</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="text-indent: 27pt;">EVALUATE SQLCODE ALSO A=B<span style=""> </span><span style=""> </span>EVALUATE SQLCODE ALSO TRUE</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 9pt;">WHEN 100 ALSO TRUE<span style=""> </span><span style=""> </span>WHEN 100 ALSO A=B</p> <p class="MsoNormal"><span style=""> </span><span style=""> </span><span style=""> </span>imperative stmt<span style=""> </span><span style=""> </span>imperative stmt</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 9pt;">WHEN -305 ALSO FALSE<span style=""> </span><span style=""> </span>WHEN -305 ALSO (A/C=4)</p> <p class="MsoNormal"><span style=""> </span><span style=""> </span><span style=""> </span>imperative stmt<span style=""> </span><span style=""> </span>imperative stmt</p> <p class="MsoNormal" style="text-indent: 27pt;">END-EVALUATE<span style=""> </span><span style=""> </span>END-EVALUATE</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q20)<span style=""> </span>How do you come out of an EVALUATE statement? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A20)<span style=""> </span>After the execution of one of the when clauses, the control is automatically passed on to the next sentence after the </p> <p class="MsoNormal" style="text-indent: 27pt;">EVALUATE statement.<span style=""> </span>There is no need of any extra code.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q21)<span style=""> </span>In an EVALUATE statement, can I give a complex condition on a when clause?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A21)<span style=""> </span>Yes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q22)<span style=""> </span>What is a scope terminator?<span style=""> </span>Give examples.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A22)<span style=""> </span>Scope terminator is used to mark the end of a verb e.g. EVALUATE, END-EVALUATE; IF, END-IF.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q23)<span style=""> </span>How do you do in-line PERFORM? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A23)<span style=""> </span>PERFORM ... <until> ... </p> <p class="MsoNormal" style="text-indent: 27pt;"><sentences></p> <p class="MsoNormal" style="text-indent: 27pt;">END-PERFORM</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q24)<span style=""> </span>When would you use in-line perform?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A24)<span style=""> </span>When the body of the perform will not be used in other paragraphs. If the body of the perform is a generic type of code </p> <p class="MsoNormal" style="text-indent: 27pt;">(used from various other places in the program), it would be better to put the code in a separate <st1:place st="on">Para</st1:place> and use </p> <p class="MsoNormal" style="text-indent: 27pt;">PERFORM <st1:place st="on">Para</st1:place> name rather than in-line perform.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q25)<span style=""> </span>What is the difference between CONTINUE & NEXT SENTENCE ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A25)<span style=""> </span>They appear to be similar, that is, the control goes to the next sentence in the paragraph. But, Next Sentence would </p> <p class="MsoNormal" style="text-indent: 27pt;">take the control to the sentence after it finds a full stop (.). Check out by writing the following code example, one if </p> <p class="MsoNormal" style="text-indent: 27pt;">sentence followed by 3 display statements (sorry they appear one line here because of formatting restrictions) If 1 > 0 </p> <p class="MsoNormal" style="text-indent: 27pt;">then next sentence end if display 'line 1' display 'line 2'. display 'line 3'. *** Note- there is a dot (.) only at the end of </p> <p class="MsoNormal" style="text-indent: 27pt;">the last 2 statements, see the effect by replacing Next Sentence with Continue ***<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q26)<span style=""> </span>What does EXIT do ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A26)<span style=""> </span>Does nothing ! If used, must be the only sentence within a paragraph.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q27)<span style=""> </span>Can I redefine an X(100) field with a field of X(200)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A27)<span style=""> </span>Yes. Redefines just causes both fields to start at the same location. For example:</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;">01 WS-TOP PIC X(1)</p> <p class="MsoNormal" style="margin-left: 27pt;">01 WS-TOP-RED REDEFINES WS-TOP PIC X(2).</p> <p class="MsoNormal" style="margin-left: 27pt;">If you MOVE '12' to WS-TOP-RED, </p> <p class="MsoNormal" style="margin-left: 27pt;">DISPLAY WS-TOP will show 1 while </p> <p class="MsoNormal" style="margin-left: 27pt;">DISPLAY WS-TOP-RED will show 12. </p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">A28)<span style=""> </span>Can I redefine an X(200) field with a field of X(100) ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q31)1<span style=""> </span>Yes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q31)2<span style=""> </span>What do you do to resolve SOC-7 error? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q31)<span style=""> </span>Basically you need to correcting the offending data. Many times the reason for SOC7 is an un-initialized numeric item. </p> <p class="MsoNormal" style="text-indent: 27pt;">Examine that possibility first. Many installations provide you a dump for run time abend’s ( it can be<span style=""> </span>generated also </p> <p class="MsoNormal" style="text-indent: 27pt;">by calling some subroutines or OS services thru<span style=""> </span>assembly language).<span style=""> </span>These dumps provide the offset of the last<span style=""> </span></p> <p class="MsoNormal" style="text-indent: 27pt;">instruction at which the abend occurred.<span style=""> </span>Examine the compilation output XREF listing to get the verb and the line </p> <p class="MsoNormal" style="text-indent: 27pt;">number of the source<span style=""> </span>code at this offset.<span style=""> </span>Then you can look at the source code to find the<span style=""> </span>bug.<span style=""> </span>To get capture the </p> <p class="MsoNormal" style="text-indent: 27pt;">runtime dumps,<span style=""> </span>you will have to define some<span style=""> </span>datasets (SYSABOUT etc ) in the JCL. If none of these are helpful,<span style=""> </span>use </p> <p class="MsoNormal" style="text-indent: 27pt;">judgement and DISPLAY to localize<span style=""> </span>the source of error. Some installation might have batch program debugging </p> <p class="MsoNormal" style="text-indent: 27pt;">tools.<span style=""> </span>Use them.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q32)<span style=""> </span>How is sign stored in Packed Decimal fields and Zoned Decimal fields?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q32)<span style=""> </span>Packed Decimal fields:<span style=""> </span>Sign is stored as a hex value in the last nibble (4 bits ) of the storage.</p> <p class="MsoNormal" style="text-indent: 27pt;">Zoned Decimal fields:<span style=""> </span>As a default, sign is over punched with the numeric value stored in the last bite.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q33)<span style=""> </span>How is sign stored in a comp-3 field? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q33)<span style=""> </span>It is stored in the last nibble. For example if your number is +100, it stores hex 0C in the last byte, hex 1C if <span style=""> </span></p> <p class="MsoNormal" style="text-indent: 27pt;">your number is 101, hex 2C if your number is 102, hex 1D if the number is -101, hex 2D if the number is -102 etc...<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q34)<span style=""> </span>How is sign stored in a COMP field ? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q34)<span style=""> </span>In the most significant bit.<span style=""> </span>Bit is ON if -ve, OFF if +ve.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q35)<span style=""> </span>What is the difference between COMP & COMP-3<span style=""> </span>?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q35)<span style=""> </span>COMP is a binary storage format while COMP-3 is packed decimal format.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q36)<span style=""> </span>What is COMP-1? COMP-2?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q36)<span style=""> </span>COMP-1<span style=""> </span>- Single precision floating point. Uses 4 bytes.</p> <p class="MsoNormal" style="text-indent: 27pt;">COMP-2 - Double precision floating point. Uses 8 bytes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q37)<span style=""> </span>How do you define a variable of COMP-1?<span style=""> </span>COMP-2?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q37)<span style=""> </span>No picture clause to be given. Example 01 WS-VAR USAGE COMP-1.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q38)<span style=""> </span>How many bytes does a S9(7) COMP-3 field occupy ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q38)<span style=""> </span>Will take 4 bytes. Sign is stored as hex value in the last nibble. General formula is INT((n/2) + 1)), where n=7 in this </p> <p class="MsoNormal" style="text-indent: 27pt;">example.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q39)<span style=""> </span>How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q39)<span style=""> </span>Will occupy 8 bytes (one extra byte for sign).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q40)<span style=""> </span>How many bytes will a S9(8) COMP field occupy ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q40)<span style=""> </span>4 bytes. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q41)<span style=""> </span>What is the maximum value that can be stored in S9(8) COMP?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q41)<span style=""> </span>99999999</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q42)<span style=""> </span>What is COMP SYNC?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q42)<span style=""> </span>Causes the item to be aligned on natural boundaries. Can be SYNCHRONIZED LEFT or RIGHT. For binary data </p> <p class="MsoNormal" style="text-indent: 27pt;">items, the address resolution is faster if they are located at word boundaries in the memory.<span style=""> </span>For example, on main </p> <p class="MsoNormal" style="text-indent: 27pt;">frame the memory word size is 4 bytes.<span style=""> </span>This means that each word will start from an address divisible by 4.<span style=""> </span>If my </p> <p class="MsoNormal" style="text-indent: 27pt;">first variable is x(3) and next one is s9(4) comp, then if you do not specify the SYNC clause, S9(4) COMP will start </p> <p class="MsoNormal" style="text-indent: 27pt;">from byte 3 ( assuming that it starts from 0 ).<span style=""> </span>If you specify SYNC, then the binary data item will start from address 4. </p> <p class="MsoNormal" style="text-indent: 27pt;">You might see some wastage of memory, but the access to this computational field is faster.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q43)<span style=""> </span>What is the maximum size of a 01 level item in COBOL I?<span style=""> </span>in COBOL II?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q43)<span style=""> </span>In COBOL II: 16777215</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q44)<span style=""> </span>How do you reference the following file formats from COBOL programs:<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q44)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;">Fixed Block File<span style=""> </span>- <span style=""> </span>Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, </p> <p class="MsoNormal" style="margin-left: 135pt; text-indent: 9pt;">BLOCK CONTAINS 0 .</p> <p class="MsoNormal" style="margin-left: 27pt;">Fixed Unblocked<span style=""> </span>-<span style=""> </span><span style=""> </span>Use ORGANISATION IS SEQUENTIAL. Use RECORDING<span style=""> </span>MODE IS F, </p> <p class="MsoNormal" style="margin-left: 135pt; text-indent: 9pt;">do not use BLOCK CONTAINS</p> <p class="MsoNormal" style="margin-left: 27pt;">Variable Block File - <span style=""> </span>Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, BLOCK </p> <p class="MsoNormal" style="margin-left: 2in;">CONTAINS 0. Do not code the 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4</p> <p class="MsoNormal" style="margin-left: 27pt;">Variable Unblocked - <span style=""> </span>Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, do not use </p> <p class="MsoNormal" style="margin-left: 1.5in; text-indent: 0.5in;">BLOCK CONTAINS. Do not code 4 bytes for record length in FD ie JCL rec length will </p> <p class="MsoNormal" style="margin-left: 1.5in; text-indent: 0.5in;">be max rec length in pgm + 4.</p> <p class="MsoNormal" style="margin-left: 27pt;">ESDS VSAM file - <span style=""> </span>Use ORGANISATION IS SEQUENTIAL. </p> <p class="MsoNormal" style="margin-left: 27pt;">KSDS VSAM file - <span style=""> </span>Use ORGANISATION IS INDEXED, RECORD KEY IS, ALTERNATE RECORD KEY IS RRDS File - <span style=""> </span>Use ORGANISATION IS RELATIVE, RELATIVE KEY IS</p> <p class="MsoNormal" style="margin-left: 27pt;">Printer File - <span style=""> </span>Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK </p> <p class="MsoNormal" style="margin-left: 135pt; text-indent: 9pt;">CONTAINS 0. (Use RECFM=FBA in JCL DCB).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q45)<span style=""> </span>What are different file OPEN modes available in COBOL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q45)<span style=""> </span>Open for INPUT, OUTPUT, I-O, EXTEND.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q46)<span style=""> </span>What is the mode in which you will OPEN a file for writing? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q46)<span style=""> </span>OUTPUT, EXTEND</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q47)<span style=""> </span>In the JCL, how do you define the files referred to in a subroutine ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q47)<span style=""> </span>Supply the DD cards just as you would for files referred to in the main program. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q48)<span style=""> </span>Can you REWRITE a record in an ESDS file?<span style=""> </span>Can you DELETE a record from it?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q48)<span style=""> </span>Can rewrite (record length must be same), but not delete.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q49)<span style=""> </span>What is file status 92? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q49)<span style=""> </span>Logic error. e.g., a file is opened for input and an attempt is made to write to it.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q50)<span style=""> </span>What is file status 39 ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q50)<span style=""> </span>Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL pgm & the JCL (or the dataset label). You </p> <p class="MsoNormal" style="text-indent: 27pt;">will get file status 39 on an OPEN.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q51)<span style=""> </span>What is Static and Dynamic linking ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q51)<span style=""> </span>In static linking, the called subroutine is link-edited into the calling program , while in dynamic linking, the subroutine & the main program will exist as separate load modules. You choose static/dynamic linking by choosing either the DYNAM or NODYNAM link edit option. (Even if you choose NODYNAM, a CALL identifier (as opposed to a CALL literal), will translate to a DYNAMIC call).A statically called subroutine will not be in its initial state the next time it is called unless you explicitly use INITIAL or you do a CANCEL. A dynamically called routine will always be in its initial state.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q52)<span style=""> </span>What is AMODE(24), AMODE(31), RMODE(24) and RMODE(ANY)?<span style=""> </span>(applicable to only MVS/ESA <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 27pt;"><st1:city st="on"><st1:place st="on"><b style="">Enterprise</b></st1:place></st1:city><b style=""> Server).<o:p></o:p></b></p> <p class="MsoNormal" style="">Q52)<span style=""> </span>These are compile/link edit options. Basically AMODE<span style=""> </span>stands for Addressing mode and RMODE for Residency </p> <p class="MsoNormal" style="text-indent: 27pt;">mode.</p> <p class="MsoNormal" style="margin-left: 27pt;">AMODE(24) - 24 bit addressing;</p> <p class="MsoNormal" style="margin-left: 27pt;">AMODE(31) - 31 bit addressing </p> <p class="MsoNormal" style="margin-left: 27pt;">AMODE(ANY) - Either 24 bit or 31 bit addressing depending on RMODE.</p> <p class="MsoNormal" style="margin-left: 27pt;">RMODE(24) - Resides in virtual storage below 16 Meg line. Use this for 31 bit programs that call 24 bit programs. </p> <p class="MsoNormal" style="margin-left: 99pt; text-indent: 9pt;">(OS/VS Cobol pgms use 24 bit addresses only).</p> <p class="MsoNormal" style="margin-left: 27pt;">RMODE(ANY) - Can reside above or below 16 Meg line.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q53)<span style=""> </span>What compiler option would you use for dynamic linking?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q53)<span style=""> </span>DYNAM.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q54)<span style=""> </span>What is SSRANGE, NOSSRANGE ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q54)<span style=""> </span>These are compiler options with respect to subscript out of range checking. NOSSRANGE is the default and if chosen, </p> <p class="MsoNormal" style="text-indent: 27pt;">no run time error will be flagged if your index or subscript goes out of the permissible range.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q55)<span style=""> </span>How do you set a return code to the JCL from a COBOL program?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q55)<span style=""> </span>Move a value to RETURN-CODE register. RETURN-CODE should not be declared in your program.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q56)<span style=""> </span>How can you submit a job from COBOL programs?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q56)<span style=""> </span>Write JCL cards to a dataset with //xxxxxxx SYSOUT= (A,INTRDR) where 'A' is output class, and dataset should be </p> <p class="MsoNormal" style="text-indent: 27pt;">opened for output in the program. Define a 80 byte record layout for the file.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q57)<span style=""> </span>What are the differences between OS VS COBOL and VS COBOL II?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q57)<span style=""> </span>OS/VS Cobol pgms can only run in 24 bit addressing mode, VS Cobol II pgms can run either in 24 bit or 31 bit </p> <p class="MsoNormal" style="text-indent: 27pt;">addressing modes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 63pt; text-indent: -0.5in;">I.<span style=""> </span>Report writer is supported only in OS/VS Cobol.</p> <p class="MsoNormal" style="margin-left: 63pt; text-indent: -0.5in;">II.<span style=""> </span>USAGE IS POINTER is supported only in VS COBOL II.</p> <p class="MsoNormal" style="margin-left: 63pt; text-indent: -0.5in;">III.<span style=""> </span>Reference modification e.g.: WS-VAR(1:2) is supported only in VS COBOL II.</p> <p class="MsoNormal" style="margin-left: 63pt; text-indent: -0.5in;">IV.<span style=""> </span>EVALUATE is supported only in VS COBOL II.</p> <p class="MsoNormal" style="margin-left: 63pt; text-indent: -0.5in;">V.<span style=""> </span>Scope terminators are supported only in VS COBOL II.</p> <p class="MsoNormal" style="margin-left: 63pt; text-indent: -0.5in;">VI.<span style=""> </span>OS/VS Cobol follows ANSI 74 stds while VS COBOL II follows ANSI 85 stds.</p> <p class="MsoNormal" style="margin-left: 63pt; text-indent: -0.5in;">VII.<span style=""> </span>Under CICS Calls between VS COBOL II programs are supported.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q58)<span style=""> </span>What are the steps you go through while creating a COBOL program executable?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q58)<span style=""> </span>DB2 precompiler (if embedded SQL used), CICS translator (if CICS pgm), Cobol compiler, Link editor. If DB2 </p> <p class="MsoNormal" style="text-indent: 27pt;">program, create plan by binding the DBRMs.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q59)<span style=""> </span>Can you call an OS VS COBOL pgm from a VS COBOL II<span style=""> </span>pgm ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">Q59)<span style=""> </span>In non-CICS environment, it is possible. In CICS, this is not possible.</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q60)<span style=""> </span>What are the differences between COBOL and COBOL II? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A60)<span style=""> </span>There are at least five differences:<span style=""> </span></p> <p class="MsoNormal" style="text-indent: 27pt;">COBOL II supports structured programming by using in line Performs and explicit scope terminators, It introduces </p> <p class="MsoNormal" style="text-indent: 27pt;">new features (EVALUATE, SET. TO TRUE, CALL. BY CONTEXT, etc) It permits programs to be loaded and </p> <p class="MsoNormal" style="text-indent: 27pt;">addressed above the 16-megabyte line It does not support many old features (READY TRACE, REPORT-WRITER, </p> <p class="MsoNormal" style="text-indent: 27pt;">ISAM, Etc.), and It offers enhanced CICS support. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q61)<span style=""> </span>What is an explicit scope terminator? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A61)<span style=""> </span>A scope terminator brackets its preceding verb, e.g. IF .. END-IF, so that all statements between the verb and its scope terminator are grouped together. Other common COBOL II verbs are READ, PERFORM, EVALUATE, SEARCH and STRING. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q62)<span style=""> </span>What is an in line PERFORM?<span style=""> </span>When would you use it?<span style=""> </span>Anything else to say about it? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A62)<span style=""> </span>The PERFORM and END-PERFORM statements bracket all COBOL II statements between them. The COBOL equivalent is to PERFORM or PERFORM THRU a paragraph.<span style=""> </span>In line PERFORMs work as long as there are no internal GO TOs, not even to an exit.<span style=""> </span>The in line PERFORM for readability should not exceed a page length - often it will reference other PERFORM paragraphs. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q63)<span style=""> </span>What is the difference between NEXT SENTENCE and CONTINUE? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A63)<span style=""> </span>NEXT SENTENCE gives control to the verb following the next period.<span style=""> </span>CONTINUE gives control to the next verb after the explicit scope terminator.<span style=""> </span>(This is not one of COBOL II's finer implementations).<span style=""> </span>It's safest to use CONTINUE rather than NEXT SENTENCE in COBOL II. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q64)<span style=""> </span>What COBOL construct is the COBOL II EVALUATE meant to replace? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A64)<span style=""> </span>EVALUATE can be used in place of the nested IF THEN ELSE statements. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q65)<span style=""> </span>What is the significance of 'above the line' and 'below the line'? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A65)<span style=""> </span>Before IBM introduced MVS/XA architecture in the 1980's a program's virtual storage was limited to 16 megs. Programs compiled with a 24 bit mode can only address 16 Mb of space, as though they were kept under an imaginary storage line. With COBOL II a program compiled with a 31 bit mode can be 'above the 16 Mb line. (This 'below the line', 'above the line' imagery confuses most mainframe programmers, who tend to be a literal minded group.) </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q66)<span style=""> </span>What was removed from COBOL in the COBOL II implementation? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A66)<span style=""> </span>Partial list:<span style=""> </span>REMARKS,<span style=""> </span>NOMINAL KEY, PAGE-COUNTER, CURRENT-DAY, TIME-OF-DAY,<span style=""> </span>STATE, FLOW, COUNT, EXAMINE, EXHIBIT, READY TRACE and RESET TRACE. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q67)<span style=""> </span>Explain call by context by comparing it to other calls. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A67)<span style=""> </span>The parameters passed in a call by context are protected from modification by the called program. In a normal call they are able to be modified. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q68)<span style=""> </span>What is the linkage section? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A68)<span style=""> </span>The linkage section is part of a called program that 'links' or maps to data items in the calling program's working storage.<span style=""> </span>It is the part of the called program where these share items are defined. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q69)<span style=""> </span>What is the difference between a subscript and an index in a table definition? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A69)<span style=""> </span>A subscript is a working storage data definition item, typically a PIC (999) where a value must be moved to the subscript and then incremented or decrements by ADD TO and SUBTRACT FROM statements. An index is a register item that exists outside the program's working storage.<span style=""> </span>You SET an index to a value and SET it UP BY value and DOWN BY value. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q70)<span style=""> </span>If you were passing a table via linkage, which is preferable - a subscript or an index? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A70)<span style=""> </span>Wake up - you haven't been paying attention!<span style=""> </span>It's not possible to pass an index via linkage.<span style=""> </span>The index is not part of the calling programs working storage.<span style=""> </span>Those of us who've made this mistake, appreciate the lesson more than others.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q71)<span style=""> </span>Explain the difference between an internal and an external sort, the pros and cons, internal sort syntax etc. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A71)<span style=""> </span>An external sort is not COBOL; it is performed through JCL and PGM=SORT.<span style=""> </span>It is understandable without any code reference. An internal sort can use two different syntax’s: 1.) USING, GIVING sorts are comparable to external sorts with no extra file processing;<span style=""> </span>2) INPUT PROCEDURE, OUTPUT PROCEDURE sorts allow for data manipulation before and/or after the sort. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q72)<span style=""> </span>What is the difference between comp and comp-3 usage? Explain other COBOL usage’s. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A72)<span style=""> </span>Comp is a binary usage, while comp-3 indicates packed decimal.<span style=""> </span>The other common usage’s are binary and display.<span style=""> </span>Display is the default. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q73)<span style=""> </span>When is a scope terminator mandatory? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A73)<span style=""> </span>Scope terminators are mandatory for in-line PERFORMS and EVALUATE statements.<span style=""> </span>For readability, it's recommended coding practice to always make scope terminators explicit. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q74)<span style=""> </span>In a COBOL II PERFORM statement, when is the conditional tested, before or after the perform execution? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A74)<span style=""> </span>In COBOL II the optional clause WITH TEST BEFORE or WITH TEST AFTER can be added to all perform statements.<span style=""> </span>By default the test is performed before the perform. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q75)<span style=""> </span>In an EVALUTE statement is the order of the WHEN clauses significant? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A75)<span style=""> </span>Absolutely.<span style=""> </span>Evaluation of the WHEN clauses proceeds from top to bottom and their sequence can determine results. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q76)<span style=""> </span>What is the default value(s) for an INITIALIZE and what keyword allows for an override of the default. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A76)<span style=""> </span>INITIALIZE moves spaces to alphabetic fields and zeros to alphanumeric fields.<span style=""> </span>The REPLACING option can be used to override these defaults. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q77)<span style=""> </span>What is SET TO TRUE all about, anyway? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A77)<span style=""> </span>In COBOL II the 88 levels can be set rather than moving their associated values to the related data item.<span style=""> </span>(Web note:<span style=""> </span>This change is not one of COBOL II's better specifications.) </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q78)<span style=""> </span>What is LENGTH in COBOL II? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A78)<span style=""> </span>LENGTH acts like a special register to tell the length of a group or elementary item. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q79)<span style=""> </span>What is the difference between a binary search and a sequential search?<span style=""> </span>What are the pertinent COBOL <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">commands? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A79)<span style=""> </span>In a binary search the table element key values must be in ascending or descending sequence.<span style=""> </span>The table is 'halved' to search for equal to, greater than or less than conditions until the element is found.<span style=""> </span>In a sequential search the table is searched from top to bottom, so (ironically) the elements do not have to be in a specific sequence. The binary search is much faster for larger tables, while sequential works well with smaller ones.<span style=""> </span>SEARCH ALL is used for binary searches; SEARCH for sequential. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q80)<span style=""> </span>What is the point of the REPLACING option of a copy statement? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A80)<span style=""> </span>REPLACING allows for the same copy to be used more than once in the same code by changing the replace value. </p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q81)<span style=""> </span>What will happen if you code GO BACK instead of STOP RUN in a stand alone COBOL program i.e. a <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt;"><b style="">program which is not calling any other program.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A81)<span style=""> </span>The program will go in an infinite loop.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q82)<span style=""> </span>How can I tell if a module is being called DYNAMICALLY or STATICALLY?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A82)<span style=""> </span>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 the main module, if it is being called STATICALLY then it will be seen in the load module. Calling a working storage variable, containing a program name, does not make a DYNAMIC call. This type of calling is<span style=""> </span>known as IMPLICITE calling as the name of the module is implied by the contents of the working storage variable. Calling a program name literal (CALL </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q83)<span style=""> </span>What is the difference between a DYNAMIC and STATIC call in COBOL.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A83)<span style=""> </span>To correct an earlier answer: All called modules cannot run standalone if they require<span style=""> </span>program variables passed to them via the LINKAGE section. DYNAMICally called modules are those that are not bound with the calling program at link edit time (IEWL for IBM) and so are loaded from the program library (joblib or steplib) associated with the job. For DYNAMIC<span style=""> </span>calling of a module the DYNAM compiler option must be chosen, else the linkage editor will not generate an executable as it will expect u address resolution of all called modules. A<span style=""> </span>STATICally called module is one that is bound with the calling module at link edit, and therefore becomes part of the executable load module. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q84)<span style=""> </span>How may divisions are there in JCL-COBOL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A84)<span style=""> </span>Four</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q85)<span style=""> </span>What is the purpose of Identification Division?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A85)<span style=""> </span>Documentation.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q86)<span style=""> </span>What is the difference between PIC 9.99 and 9v99?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A86)<span style=""> </span>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.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q87)<span style=""> </span>what is Pic 9v99 Indicates? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A87)<span style=""> </span>PICTURE 9v99 is a three position Numeric field with an implied or assumed decimal<span style=""> </span>point after the first position; the v means an implied decimal point.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q88)<span style=""> </span>What guidelines should be followed to write a structured Cobol prg'm?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A88)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;">1)<span style=""> </span>use 'evaluate' stmt for constructing cases. </p> <p class="MsoNormal" style="margin-left: 27pt;">2)<span style=""> </span>use scope<span style=""> </span>terminators for nesting. </p> <p class="MsoNormal" style="margin-left: 27pt;">3)<span style=""> </span>use in line perform stmt for writing 'do '<span style=""> </span>constructions. </p> <p class="MsoNormal" style="margin-left: 27pt;">4)<span style=""> </span>use test before and test after in the perform stmt for writing do-while constructions. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q89)<span style=""> </span>Read the following code. 01 ws-n pic 9(2) value zero. a-para move 5 to ws-n. perform b-para ws-n times. b-para. <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">move 10 to ws-n. how many times will b-para be executed ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A89)<span style=""> </span>5 times only. it will not take the value 10 that is initialized in the loop.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q90)<span style=""> </span>What is the difference between SEARCH and SEARCH ALL? What is more efficient?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A90)<span style=""> </span>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. SEARCH ALL is more efficient for tables larger than 70 items. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q91)<span style=""> </span>What are some examples of command terminators?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A91)<span style=""> </span>END-IF, END-EVALUATE</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q92)<span style=""> </span>What care has to be taken to force program to execute above 16 Meg line?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A92)<span style=""> </span>Make sure that link option is AMODE=31 and RMODE=ANY. Compile option should never have SIZE(MAX). BUFSIZE can be 2K, efficient enough.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q93)<span style=""> </span>How do you submit JCL via a Cobol program?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A93)<span style=""> </span>Use a file //dd1 DD sysout=(*, intrdr)write your JCL to this file. Pl some on try this out.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q94)<span style=""> </span>How to execute a set of JCL statements from a COBOL program<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A94)<span style=""> </span>Using EXEC CICS SPOOL WRITE(var-name) END-EXEC command. var-name is a COBOL host structure containing JCL statements.</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q95)<span style=""> </span>Give some advantages of REDEFINES clause.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A95)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">1.<span style=""> </span>You can REDEFINE a Variable from one PICTURE class to another PICTURE<span style=""> </span>class by using the same memory </p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 9pt;">location.</p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">2.<span style=""> </span>By REDEFINES we can INITIALISE the variable in WORKING-STORAGE Section itself.</p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">3.<span style=""> </span>We can REDEFINE a Single Variable into so many sub variables. (This facility is very useful in solving Y2000 </p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 9pt;">Problem.) </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q96)<span style=""> </span>What is the difference between static call & Dynamic call<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A96)<span style=""> </span>In the case of Static call, the called program is a stand-alone program, it is an executable program. During run time we can call it in our called program. As about Dynamic call, the called program is not an executable program it can executed through the called program </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q97)<span style=""> </span>What do you feel makes a good program?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A97)<span style=""> </span>A program that follows a top down approach. It is also one that other programmers or users can follow logically and is easy to read and understand.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q98)<span style=""> </span>How do you code Cobol to access a parameter that has been defined in JCL? And do you code the PARM <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">parameter on the EXEC line in JCL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">A98)<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">1)<span style=""> </span>using JCL with sysin. //sysin dd *here u code the parameters(value) to pass in to cobol program /* and in program </p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 9pt;">you use accept variable name(one accept will read one row)/.another way.</p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -0.25in;">2)<span style=""> </span>in jcl using parm statement ex: in exec statement parm='john','david' in cobol pgm u have to code linkage section in that for first value you code length variable and variable name say, abc pic x(4).it will take john inside to read next value u have to code another variable in the same way above mentioned.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q99)<span style=""> </span>Why do we code S9(4) comp. Inspite of knowing comp-3 will occupy less space.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A99)<span style=""> </span>Here s9(4)comp is small integer ,so two words equal to 1 byte so totally it will occupy 2 bytes(4 words).here in s9(4) comp-3 as one word is equal to 1/2 byte.4 words equal to 2 bytes and sign will occupy 1/2 byte so totally it will occupy 3 bytes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q100)<span style=""> </span>The maximum number of dimensions that an array can have in COBOL-85 is ----------- ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A100)<span style=""> </span>SEVEN in COBOL - 85 and THREE in COBOL - 84</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q101)<span style=""> </span>How do you declare a host variable (in COBOL) for an attribute named Emp-Name of type VARCHAR(25) ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">A101)<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in;">01 EMP-GRP. </p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;">49 E-LEN PIC S9(4) COMP. </p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;">49 E-NAME PIC X(25).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q102)<span style=""> </span>What is Comm?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A102)<span style=""> </span>COMM - HALF WORD BINARY</p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q103)<span style=""> </span>Differentiate COBOL and COBOL-II. (Most of our programs are written in COBOLII, so, it is good to know, <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">how, this is different<span style=""> </span>from COBOL)<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A103)<span style=""> </span>The following features are available with VS COBOL II:<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt;">1. MVS/XA and MVS/ESA support The compiler and the object programs it produces can be run in either<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>24- or 31-bit addressing mode.<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt;">2. VM/XA and VM/ESA support<span style=""> </span>The compiler and the object programs it produces can be run in either<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>24- or 31-bit addressing mode.<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt;">3. VSE/ESA support<span style=""> </span>The compiler and the object programs it produces can be run under VSE/ESA. <span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="text-indent: -4.5pt;"><b style="">Q104)<span style=""> </span>What is PERFORM ? What is VARYING ? (More details about these clauses) <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -40.5pt;">A104)<span style=""> </span>The PERFORM statement is a PROCEDURE DIVISION statement which transfers control<span style=""> </span>to<span style=""> </span>one or more specified procedures and controls as specified the number of times the procedures are executed.<span style=""> </span>After execution of the specified procedures is completed (i.e., for the appropriate number<span style=""> </span>of<span style=""> </span>times<span style=""> </span>or<span style=""> </span>until<span style=""> </span>some<span style=""> </span>specified<span style=""> </span>condition is<span style=""> </span>met),<span style=""> </span>control is<span style=""> </span>transferred to the next<span style=""> </span>executable<span style=""> </span>statement<span style=""> </span>following<span style=""> </span>the<span style=""> </span>PERFORM<span style=""> </span>statement. There are 5 types of PERFORM statements:<span style=""> </span></p> <p class="MsoNormal" style="margin-left: -4.5pt;"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;">a)<span style=""> </span>Basic PERFORM<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;">b)<span style=""> </span>PERFORM TIMES<span style=""> </span><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;">c)<span style=""> </span>PERFORM UNTIL<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;">d)<span style=""> </span>PERFORM VARYING</p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;">e)<span style=""> </span>IN-LINE PERFORM<span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q105)<span style=""> </span>How many sections are there in data division?. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A105)<span style=""> </span>SIX SECTIONS 1.FILE SECTION 2.WORKING-STORAGE SECTION 3. LOCAL-STORAGE SECTION 4.SCREEN SECTION 5.REPORT SECTION 6. LINKAGE SECTION</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q106)<span style=""> </span>What is Redefines clause?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A106)<span style=""> </span>Redefines clause is used to allow the same storage allocation to be referenced by different data names . </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q107)<span style=""> </span>How many bytes does a s9(4)comp-3 field occupy?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A107)<span style=""> </span>3Bytes (formula : n/2 + 1))</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q108)<span style=""> </span>What is the different between index and subscript?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A108)<span style=""> </span>Subscript refers to the array of occurrence , where as Index represents an occurrence of a table element. An index can only modified using perform, search & set. Need to have an index for a table in order to use SEARCH and SEARCH All.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style=""><b style="">Q109)<span style=""> </span>What is the difference between Structured COBOL Programming and Object Oriented COBOL <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">programming?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A109)<span style=""> </span>Structured programming is a Logical way of programming, you divide the functionalities into modules and code logically. OOP is a Natural way of programming; you identify the objects first, and then write functions, procedures around the objects. Sorry, this may not be an adequate answer, but they are two different programming paradigms, which is difficult to put in a sentence or two.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style=""><b style="">Q110)<span style=""> </span>What divisions, sections and paragraphs are mandatory for a COBOL program?<o:p></o:p></b></p> <p class="MsoNormal">A110)<span style=""> </span>IDENTIFICATION DIVISION and PROGRAM-ID paragraph are mandatory for a compilation error free COBOL </p> <p class="MsoNormal" style="text-indent: 0.5in;">program.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q111)<span style=""> </span>Can JUSTIFIED be used for all the data types?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A111)<span style=""> </span>No, it can be used only with alphabetic and alphanumeric data types.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q112)<span style=""> </span>What happens when we move a comp-3 field to an edited (say z (9). ZZ-) <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A112)<span style=""> </span>the editing characters r to be used with data items with usage<span style=""> </span>clause as display which is the default. When u tries displaying a data item with usage as computational it does not give the desired display format because the data item is stored as packed decimal. So if u want this particular data item to be edited u have to move it into a data item whose usage is display and then have that particular data item edited in the format desired.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q113)<span style=""> </span>What will happen if you code GO BACK instead of STOP RUN in a stand-alone COBOL program i.e. a program which is not calling any other program ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A113)<span style=""> </span>Both give the same results when a program is not calling any other program. GO BACK will give the control to the system even though it is a single program.</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q114)<span style=""> </span>what is the difference between external and global variables?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A114)<span style=""> </span>Global variables are accessible only to the batch program whereas external variables can be referenced from any batch program residing in the same system library.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q115)<span style=""> </span>You are writing report program with 4 levels of totals: city, state, region and country. The codes being used can be the same over the different levels, meaning a city code of 01 can be in any number of states, and the same applies to state and region code so how do you do your checking for breaks and how do you do add to each level?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A115)<span style=""> </span>Always compare on the highest-level first, because if you have a break at a highest level, each level beneath it must also break. Add to the lowest level for each record but add to the higher level only on a break.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q116)<span style=""> </span>What is difference between COBOL and VS COBOL II?.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A116)<span style=""> </span>In using COBOL on PC we have only flat files and the programs can access only limited storage, whereas in VS COBOL II on M/F the programs can access up to 16MB or 2GB depending on the addressing and can use VSAM </p> <p class="MsoNormal" style="text-indent: 0.5in;">files to make I/O operations faster.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q117)<span style=""> </span>Why occurs can not be used in 01 level ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A117)<span style=""> </span>Because, Occurs clause is there to repeat fields with same format, not the records.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q118)<span style=""> </span>What is report-item?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A118)<span style=""> </span>A Report-Item Is A Field To Be Printed That Contains Edit Symbols</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q119)<span style=""> </span>Difference between next and continue clause<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A119)<span style=""> </span>The difference between the next and continue verb is that in the continue verb it is used for a situation where there in no EOF condition that is the records are to be accessed again and again in an file, whereas in the next verb the indexed file is accessed sequentially, read next record command is used. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q120)<span style=""> </span>What is the Importance of GLOBAL clause According to new standards of COBOL<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A120)<span style=""> </span>When any data name, file-name, Record-name, condition name or Index defined in an Including Program can be referenced by a directly or indirectly in an included program, Provided the said name has been declared to be a global name by GLOBAL Format of Global Clause is01 data-1 pic 9(5) IS GLOBAL.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q121)<span style=""> </span>What is the Purpose of POINTER Phrase in STRING command<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A121)<span style=""> </span>The Purpose of POINTER phrase is to specify the leftmost position within receiving field where the first transferred character will be stored</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q122)<span style=""> </span>How do we get current date from system with century?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A122)<span style=""> </span>By using Intrinsic function, FUNCTION CURRENT-DATE</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q123)<span style=""> </span>What is the maximum length of a field you can define using COMP-3?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A123)<span style=""> </span>10 Bytes (S9(18) COMP-3).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q124)<span style=""> </span>Why do we code s9 (4) comp? In spite of knowing comp-3 will occupy less space?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A124)<span style=""> </span>Here s9(4)comp is small integer, so two words equal to 1 byte so totally it will occupy 2 bytes(4 words).here in s9(4) comp-3 as one word is equal to 1/2 byte.4 words equal to 2 bytes and sign will occupy 1/2<span style=""> </span>byte so totally it will occupy 3 bytes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q125)<span style=""> </span>What is the LINKAGE SECTION used for?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A125)<span style=""> </span>The linkage section is used to pass data from one program to another program or to pass data from a PROC to a program.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q126)<span style=""> </span>Describe the difference between subscripting and indexing ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A126)<span style=""> </span>Indexing uses binary displacement. Subscripts use the value of the occurrence.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">1. <span style=""> </span>What R 2 of the common forms of the EVALUATE STATEMENT ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">2. <span style=""> </span>What does the initialize statement do ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">3. <span style=""> </span>What is the reference modification.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">4. <span style=""> </span>Name some of the examples of COBOl 11?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">5. <span style=""> </span>What are VS COBOL 11 special features?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">6. <span style=""> </span>What are options have been removed in COBOL 11?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">7. <span style=""> </span>What is the file organization clause ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">8. <span style=""> </span>What is a subscript ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">9. <span style=""> </span>What is an index for tables?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">10. <span style=""> </span>What are the two search techniques ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">11. <span style=""> </span>What is an in-line perform ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">12. <span style=""> </span>What is CALL statement in COBOL?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">13. <span style=""> </span>When can the USING phrase be included in the call statement ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">14. <span style=""> </span>In EBCDIC, how would the number 1234 be stored?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">15. <span style=""> </span>How would the number +1234 be stored if a PIC clause of PICTUREs9(4) comp-3 were used?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">16. <span style=""> </span>What is Alternate Index ? How is it different from regular index ?</p> <b style=""><span style="font-size: 14pt; font-family: "Times New Roman";">
<br /> </span></b>Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-90109319501902790892008-07-03T03:50:00.001-07:002008-12-23T21:45:21.642-08:00Customer Information Control System(CICS)<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"></o:smarttagtype><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]><object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id="ieooui"></object> <style> st1\:*{behavior:url(#ieooui) } </style> <![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:宋体; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoHeader, li.MsoHeader, div.MsoHeader {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoFooter, li.MsoFooter, div.MsoFooter {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:26836639; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l0:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l1 {mso-list-id:65735514; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l1:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l2 {mso-list-id:222521263; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l2:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l3 {mso-list-id:272515350; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l3:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l4 {mso-list-id:377896529; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l4:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l5 {mso-list-id:595788768; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l5:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l6 {mso-list-id:704872333; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l6:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l7 {mso-list-id:713040060; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l7:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l8 {mso-list-id:761683884; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l8:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l9 {mso-list-id:998384775; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l9:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l10 {mso-list-id:1003313968; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l10:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l11 {mso-list-id:1030255143; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l11:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l12 {mso-list-id:1046680176; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l12:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l13 {mso-list-id:1103526544; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l13:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l14 {mso-list-id:1137801055; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l14:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l15 {mso-list-id:1189292806; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l15:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l16 {mso-list-id:1224218936; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l16:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l17 {mso-list-id:1414207772; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l17:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l18 {mso-list-id:1433814193; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l18:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l19 {mso-list-id:1513954505; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l19:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l20 {mso-list-id:1701858780; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l20:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l21 {mso-list-id:1985309943; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l21:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l22 {mso-list-id:2135782234; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l22:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal"><b style=""><span style="font-size: 16pt;">
<br /></span></b><b style=""><span style="font-size: 16pt;"></span></b><b style=""><span style="font-size: 11pt;"><o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal">IBM’s Customer Information Control System (CICS) is<span style=""> </span>an on-line teleprocessing system developed by IBM. By providing a sophisticated control and service database/data communication system, the application developer can concentrate on fulfilling specific business needs rather than on communication and internal system details. CICS allows data to be transmitted from the terminal to the host computer, have the data processed, access files/databases, and then have data to be transmitted from the terminal to the host computer, have the data processed, access files/databases, and then have data transmitted back to the terminal. To accomplish that, CICS uses a telecommunication package such as VTAM or TCAM and various file access methods: VSAM, DL/1, DB2, etc.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">The latest release CICS/ESA is Release 3.3.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Some of the new functionality includes:</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;">1.<span style=""> </span>Expanded features for the system programmer</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;">2.<span style=""> </span>Improved above the line storage utilization</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;">3.<span style=""> </span>New options for many CICS commands</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;">4.<span style=""> </span>Improved cross-platform communication facilities</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Functionality</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">CICS provides the following support:</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><b style=""><i style="">Data Communications<o:p></o:p></i></b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->An interface between the terminal and printers with CICS via a telecommunication access method (TCAM or VTAM).</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->Multi Region Operation(MRO), through which more than one CICS region of a system can communicate</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->Intersystem Communication (ISC), through which one CICS region of a system can communicate with other CICS regions in other systems</p> <p class="MsoNormal" style=""><o:p> </o:p></p> <p class="MsoNormal" style=""><b style=""><i style="">Application Programming<o:p></o:p></i></b></p> <p class="MsoNormal" style=""><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->Interfaces with programming languages such as COBOL and Assembler</p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->Command level translator</p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->An Execution Diagnostic Facility (EDF)</p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->A Command Interpreter</p> <p class="MsoNormal" style=""><o:p> </o:p></p> <p class="MsoNormal" style=""><b style=""><i style="">Data Handling<o:p></o:p></i></b></p> <p class="MsoNormal" style=""><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->An interface with database access methods such as DB2, DL/1, and VSAM </p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]-->An interface with error checking and reporting facilities</p> <p class="MsoNormal" style=""><o:p> </o:p></p> <p class="MsoNormal" style=""><b style="">Terminology:<o:p></o:p></b></p> <p class="MsoNormal" style=""><o:p> </o:p></p> <p class="MsoNormal" style=""><span style=""> </span>CICS has its own language. Some of the language abbreviations of CICS are:</p> <p class="MsoNormal" style=""><o:p> </o:p></p> <p class="MsoNormal" style=""><span style=""> </span>SIT<span style=""> </span>System Initialization Table</p> <p class="MsoNormal" style=""><span style=""> </span>PCT<span style=""> </span>Program Control Table</p> <p class="MsoNormal" style=""><span style=""> </span>PPT<span style=""> </span>Program Processing Table</p> <p class="MsoNormal" style=""><span style=""> </span>TCT<span style=""> </span>Terminal Control Table</p> <p class="MsoNormal" style=""><span style=""> </span>FCT<span style=""> </span>File Control Table</p> <p class="MsoNormal" style=""><span style=""> </span>TCP<span style=""> </span>Terminal Control Program</p> <p class="MsoNormal" style=""><span style=""> </span>TCTUA<span style=""> </span>Terminal Control Terminal User Area</p> <p class="MsoNormal" style="text-indent: 0.5in;">DCT<span style=""> </span>Destination Control Table</p> <p class="MsoNormal" style=""><span style=""> </span>TDQ<span style=""> </span>Transient Data Queue</p> <p class="MsoNormal" style=""><span style=""> </span>EIP<span style=""> </span>Execution Interface Program</p> <p class="MsoNormal" style=""><span style=""> </span>FCP<span style=""> </span>File Control Program</p> <p class="MsoNormal" style=""><span style=""> </span>ICP<span style=""> </span>Interval Control Program</p> <p class="MsoNormal" style=""><span style=""> </span>KCT<span style=""> </span>Task Control Program</p> <p class="MsoNormal" style=""><span style=""> </span>PCP<span style=""> </span>Program Control Program</p> <p class="MsoNormal" style=""><span style=""> </span>SCP<span style=""> </span>Storage Control Program</p> <p class="MsoNormal" style=""><span style=""> </span>TCA<span style=""> </span>Task Control Area</p> <p class="MsoNormal" style=""><span style=""> </span>TCTTE<span style=""> </span>Terminal Control Table Terminal Entry</p> <p class="MsoNormal" style=""><span style=""> </span>TSQ<span style=""> </span>Temporary Storage Queue</p> <p class="MsoNormal" style=""><span style=""> </span>TWA<span style=""> </span>Task Work Area</p> <p class="MsoNormal" style=""><span style=""> </span>AID<span style=""> </span>Attention Identifier</p> <p class="MsoNormal" style=""><span style=""> </span>CWA<span style=""> </span>Common Work Area</p> <p class="MsoNormal" style=""><span style=""> </span>MRO<span style=""> </span>Multi Region Operation</p> <p class="MsoNormal" style=""><span style=""> </span>QID<span style=""> </span>Queue Identifier</p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q1)<span style=""> </span>What are the six different types of argument values in COBOL that can be placed in various options of a CICS command?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A1)<span style=""> </span></p> <p class="MsoNormal" style="margin: 0in -0.25in 0.0001pt 0.25in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]--><b style="">Data Value</b> <span style=""> </span>- EX (Literal 8 or 77 KEYLEN PIC S9(4) COMP VALUE 8.)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]--><b style="">Data Area</b> <span style=""> </span>- EX<span style=""> </span>(01 RECORD-AREA.</p> <p class="MsoNormal" style="margin-left: 2in;">05 FIELD1 PIC X(5). )</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]--><b style="">Pointer-Ref</b> <span style=""> </span>- EX (05 POINTER-I PIC S9(8) COMP. )</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]--><b style="">Name</b> <span style=""> </span>- EX (05 FILE-NAME PIC X(5) VALUE ‘FILEA’. )</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]--><b style="">Label<span style=""> </span></b>- Cobol paragraph name</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]--><b style="">HHMMSS</b> <span style=""> </span>- EX (77 TIMEVAL PIC S9(7) COMP3. )</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q2)<span style=""> </span>Kindly specify the PIC clause for the following <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.25in;">Any BLL Cell, Data type of Length Option field, HHMMSS type of data fields </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A2)<span style=""> </span>Any BLL Cell <span style=""> </span>-<span style=""> </span><b style="">S9(8) COMP</b></p> <p class="MsoNormal" style="text-indent: 0.25in;">Data type of Length Option field <span style=""> </span>-<span style=""> </span><b style="">S9(4) COMP<o:p></o:p></b></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.25in;">HHMMSS type of data fields<b style=""><span style=""> </span>-<span style=""> </span>S9(7) COMP3 <o:p></o:p></b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q3)<span style=""> </span>Specify CICS transaction initiation process. (From the perspective of CICS control programs and control tables.)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A3)<span style=""> </span>TCP places data in TIOA and corresponding entry into TCT.</p> <p class="MsoNormal" style="margin-left: 0.25in;">KCP acquires the transaction identifier from TIOA and verifies if it is present in PCT.</p> <p class="MsoNormal" style="margin-left: 0.25in;">SCP acquires Storage in Task Control Area (TCA), in which KCP prepares control data for the task.</p> <p class="MsoNormal" style="margin-left: 0.25in;">KCP then loads the application programs mentioned in PCT by looking for it in PPT.</p> <p class="MsoNormal" style="margin-left: 0.25in;">If resident - real storage memory location is not present in the PPT the control is passed to PCP that loads the application programs from the physical storage location address given in PPT. The control is then passed to the application program (LOAD module).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q4)<span style=""> </span>List the sequence of steps used to achieve “Modification in Skip Sequential Mode.” <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A4)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;">I.<span style=""> </span>READNEXT command</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;">II.<span style=""> </span>Issue the ENDBR command</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;">III.<span style=""> </span>Issue the READ command with UDTAE option.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;">IV.<span style=""> </span>Manipulate the record (DELETE or REWRITE command)</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;">V.<span style=""> </span>Issue START command</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;">VI.<span style=""> </span>Issue two READNEXT commands (One for dummy skip)</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;">VII.<span style=""> </span>Go to step two.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q5)<span style=""> </span>Specify the requirements for Automatic Task Initiation. (Mention the control table, it’s entries and the corresponding Procedure division CICS command).<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A5)<span style=""> </span>DFHDCT<span style=""> </span>TYPE=INTRA,</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;">DESTID=MSGS,</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;">TRANSID=MSW1,</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;">TRIGLEV=1000</p> <p class="MsoNormal" style="margin-left: 0.25in;"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in;">EXEC CICS WRITEQ TD</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>QUEUE(‘MSGS’),</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>FROM(DATA-AREA),</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>LENGTH(MSG_LEN)</p> <p class="MsoNormal" style="margin-left: 0.25in;">END-EXEC.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q6)<span style=""> </span>What are the commands used to gain exclusive control over a resource (for Ex a Temporary storage queue.)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A6)<span style=""> </span>EXEC CICS ENQ<span style=""> </span>EXEC CICS DEQ</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>RESOURCE(QID)<span style=""> </span>RESOURCE(QID)</p> <p class="MsoNormal" style="margin-left: 0.25in;">END-EXEC<span style=""> </span>END-EXEC</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q7)<span style=""> </span>What is the EIB parameter and the CICS command used to implement Pseudo-Conversational technique using single PCT - Single PPT entry?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A7)<span style=""> </span>EIBCALEN - To check if COMMAREA has been passed in terurn command.</p> <p class="MsoNormal" style="text-indent: 0.5in;">EXEC CICS RETURN</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: 0.25in;">TRANSID(data-name)</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.25in;"><span style=""> </span>COMMAREA(data-area)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.25in;"><span style=""> </span>LENGTH(data-value)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.25in;">END-EXEC</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q8)<span style=""> </span>Mention the 5 fields available in the symbolic map for every ‘NAMED’ field in the DFHMDI macro? Give a brief description of these fields (Not exceeding a line).<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A8)<span style=""> </span>FIELD+L<span style=""> </span>- Return the length of text entered (or for dymanic cursor positioing)</p> <p class="MsoNormal" style="margin-left: 0.25in;">FIELD+F<span style=""> </span>- Returns X(80) if data entered but erased.</p> <p class="MsoNormal" style="margin-left: 0.25in;">FIELD+A<span style=""> </span>- Used for attributes reading and setting</p> <p class="MsoNormal" style="margin-left: 0.25in;">FIELD+I<span style=""> </span>- Used for reading the text entered while receiving the map.</p> <p class="MsoNormal" style="margin-left: 0.25in;">FIELD+O<span style=""> </span>- Used for sending information on<span style=""> </span>to the MAP.</p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q9)<span style=""> </span>What are the two ways of breaking a CPU bound process to allow other tasks to gain access to CPU.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A9)<span style=""> </span>EXEC CICS DELAY<span style=""> </span>EXEC CICS DELAY</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.25in;">INTERVAL(hhmmss)<span style=""> </span>TIME(hhmmss)</p> <p class="MsoNormal" style="margin-left: 0.25in;">END-EXEC<span style=""> </span>END-EXEC</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in;">POST and WAIT commands also achieve the same result.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q10)<span style=""> </span>How do you initiate another transaction? The transaction initiated should be in a position to retrieve<o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">information pertaining to which transaction has initiated it and from which terminal. (Code the required CICS <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">commands)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A10)<span style=""> </span>EXEC CICS START</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: 0.25in;">INTERVAL(hhmmss)/TIME(hhmmss)</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>TRANSID(‘TRAN’)</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>TERMID(‘TRM1)</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: 0.25in;"><b style="">FROM(data-area)<o:p></o:p></b></p> <p class="MsoNormal"><b style=""><span style=""> </span>LENGTH(data-value)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in;"><b style=""><span style=""> </span>RTRANSID(EIBTRNID)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in;"><b style=""><span style=""> </span>RTERMID(EIBTRMID)<o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;">END-EXEC</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="text-indent: 27pt;">EXEC CICS RETRIEVE</p> <p class="MsoNormal"><span style=""> </span>INTO(data-area)</p> <p class="MsoNormal"><span style=""> </span>LENGTH(data-value)</p> <p class="MsoNormal"><span style=""> </span>RTRANSID(data-name)</p> <p class="MsoNormal"><span style=""> </span>RTERMID(data-name)</p> <p class="MsoNormal"><span style=""> </span>END-EXEC<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q11)<span style=""> </span>Mention the option (along with argument type) used in a CICS command to retrieve the response code after<o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">execution of the command. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A11)<span style=""> </span>RESP( S9(8) COM.)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q12)<span style=""> </span>What’s the CICS command used to access current date and time? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A12)<span style=""> </span>ASKTIME.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q13)<span style=""> </span>Into what fields will the date and time values be moved after execution of the above command? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A13)<span style=""> </span>EIBDATE & EIBTIME.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q14)<span style=""> </span>How do you terminate an already issued DELAY command? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 20.4pt; text-indent: -20.4pt;">A14)<span style=""> </span>EXEC CICS CANCEL</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>REQID(id)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 9pt;">END-EXEC</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q15)<span style=""> </span>How do you dynamically set the CURSOR position to a specific field?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A15)<span style=""> </span>MOVE -1 to FIELD+L field. Mention CURSOR option in the SEND command.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q16)<span style=""> </span>Which option of the PCT entry is used to specify the PF key to be pressed for initiating a transaction? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A16)<span style=""> </span>TASKREQ=PF1</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q17)<span style=""> </span>Specify the CICS command used to read a VSAM record starting with prefix “F”. Code all the relevant options. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A17)<span style=""> </span>EXEC CICS READ</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>DATASET(‘FILENAME’)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.25in;"><span style=""> </span>INTO(data-area)</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>RIDFLD(data-area)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.25in;"><span style=""> </span>KEYLENGTH(1)</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>GENERIC</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.25in;"><span style=""> </span>LENGTH(WK-LEN)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 9pt;">END-EXEC.</p> <p class="MsoNormal" style="margin-left: 0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q18)<span style=""> </span>Mention the option used in the CICS READ command to gain accessibility directly to the file I/O area. (Assume <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">COBOL-II). <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A18)<span style=""> </span>SET(ADDRESS OF LINKAGE-AREA). </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q19)<span style=""> </span>Which command is used to release a record on which exclusive control is gained? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A19)<span style=""> </span>EXEC CICS UNLOCK END-EXEC.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q20)<span style=""> </span>How do you establish a starting position in a browse operation? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A20)<span style=""> </span>EXEC CICS STARTBR---------- END-EXEC.</p> <p class="MsoNormal" style="margin-left: 0.25in;"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q21)<span style=""> </span>What is the option specified in the read operation to gain multiple concurrent operations on the same dataset? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A21)<span style=""> </span>REQID(value).</p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q22)<span style=""> </span>What is the CICS command that gives the length of TWA area? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A22)<span style=""> </span>EXEC CICS ASSIGN </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.25in;">TWALENG(data-value)</p> <p class="MsoNormal" style="margin-left: 27pt;">END-EXEC.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q23)<span style=""> </span>What are the attribute values of Skipper and Stopper fields? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A23)<span style=""> </span>ASKIP, PROT.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q24)<span style=""> </span>How do you set the MDT option to ‘ON’ status,<span style=""> </span>even if data is not entered? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A24)<span style=""> </span>Mention FSET option in DFHMDF or set it dynamically in the program using FIELD+A attribute field.</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q25)<span style=""> </span>What option is specified in the SEND command to send only the unnamed fields on to the screen? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A25)<span style=""> </span>MAPONLY_______________.</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q26)<span style=""> </span>Which CICS service transaction is used to gain accessibility to CICS control tables? Mention the one that has <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">the highest priority. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A26)<span style=""> </span>CEDA</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q27)<span style=""> </span>What is the most common way of building queue-id of a TSQ? (Name the constituents of the Queue ID). <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: -45pt;">A27)<span style=""> </span>TERMID+TRANSACTION-ID.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q28)<span style=""> </span>Into which table is the terminal id registered? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A28)<span style=""> </span>TCT.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q29)<span style=""> </span>How and where is the TWA size set? .<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A29)<span style=""> </span>TWASIZE=300 in PCT table.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q30)<span style=""> </span>Which transient data queue supports ATI? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A30)<span style=""> </span>INTRA-PARTITION<span style=""> </span>Data queue.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q31)<span style=""> </span>Code the related portions of CICS/COBOL-I programs to gain addressability to TWA area assigned to a <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">particular task. Assume that the size of TWA area is 300 bytes. What are the advantages if COBOL-II is used <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">in the place of COBOL? Code the above requirement in COBOL-II.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A31)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><u>COBOL- II PROGRAM</u></p> <p class="MsoNormal" style="margin-left: 0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in;">LINKAGE SECTION.</p> <p class="MsoNormal" style="margin-left: 0.25in;">01<span style=""> </span>PARMLIST.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.5in;">02<span style=""> </span>FILLER<span style=""> </span>PIC S9(8) COMP.</p> <p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.5in;">02<span style=""> </span>TWA-PTR S(98) COMP.</p> <p class="MsoNormal" style="margin-left: 0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.5in;">01<span style=""> </span>TWA-DATA-LAYOUT.</p> <p class="MsoNormal" style="margin-left: 1.25in; text-indent: -0.5in;">02<span style=""> </span>DATA-AREA<span style=""> </span>PIC X(300).</p> <p class="MsoNormal" style="margin-left: 0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in;">PROCEDURE DIVISION.</p> <p class="MsoNormal" style="margin-left: 0.25in;">……….</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>EXEC CICS ADDRESS</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>TWA(TWA-PTR)</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>END-EXEC</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>SERVISE RELOAD TWA-DATA-LAYOUT.</p> <p class="MsoNormal" style="margin-left: 0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in;">COBOL- II PROGRAM</p> <p class="MsoNormal" style="margin-left: 0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in;">LINKAGE SECTION.</p> <p class="MsoNormal" style="margin-left: 0.25in;">01<span style=""> </span>TWA-DATA-LAYOUT.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.5in;">05<span style=""> </span>DATA-AREA<span style=""> </span>PIC X(300).</p> <p class="MsoNormal" style="margin-left: 0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in;">PROCEDURE DIVISION.</p> <p class="MsoNormal" style="margin-left: 0.25in;">……….</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>EXEC CICS ADDRESS</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>TWA(ADDRESS OF<span style=""> </span>TWA-DATA-LAYOUT)</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>END-EXEC</p> <p class="MsoNormal" style="margin-left: 0.25in;">………</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q32)<span style=""> </span>Code a program meeting the following requirements. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt;"><b style="">‘EMPS’ is a transaction used to return information pertaining to an employee when the “EMPID” is entered on the screen. The information pertaining to an employee is present in a VSAM/KSDS dataset registered in FCT as “EMPINFOR”. The map and the working storage section of the emp-info are given for reference. If the employee id is found the information has to be sent to the screen (Status field) with the message “Emp Id: XXX found.”. If the emp-id key is not found then status field should array the message “Key not found.”<span style=""> </span>and the ‘EMP ID” field should be set to bright. If the Exit option is set to “Y” then the task has to terminated. Use pseudo-conversation technique three (Single PCT and PPT).<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>EMPLOYEE INFORMATION FORM</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>EMP ID : XXX</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>EMP NAME<span style=""> </span>: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>EMP DESIG<span style=""> </span>: @@@@@<span style=""> </span>SEX : @</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>DEPARTMENT : @@@@@@@@@@</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>SALARY<span style=""> </span>: $$$$$$$</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>STATUS<span style=""> </span>: @@@@@@@@@@@@@@@@@@@@</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>EXIT : X</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-right: -0.75in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-right: -0.75in;"><span style=""> </span>X - Input Field</p> <p class="MsoNormal" style="margin-right: -0.75in;"><span style=""> </span>@ - Output field (Alphanumeric)</p> <p class="MsoNormal" style="margin-right: -0.75in;"><span style=""> </span>$ -<span style=""> </span>Output field (Numeric)</p> <p class="MsoNormal" style="margin-right: -0.75in;"><span style=""> </span>Mapname - EMPFORM</p> <p class="MsoNormal" style="margin-right: -0.75in;"><span style=""> </span>Mapsetname - EMPFORM</p> <p class="MsoNormal" style="margin-right: -0.75in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;">Label given to various ‘named’ fields on the DFHMDF macro while defining the map shown above. EMPID, EMPNAME, EMPDESIG, DEPART, SEX, SALARY, STATUS and EXITINP.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;">Structure of the VSAM/KSDS file.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;">Working-Storage Section.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;">01 EMP-IOAREA.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;"><span style=""> </span>05 EMP-REC.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;"><span style=""> </span>10 EMP-KEY<span style=""> </span>PIC XXX.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;"><span style=""> </span>10 EMP-NAME PIC X(32).</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;"><span style=""> </span>10 EMP-SEX PIC X.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;"><span style=""> </span>10 EMP-DEPT PIC X(10)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;"><span style=""> </span>10 EMP-DESIG PIC X(5).</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;"><span style=""> </span>10 EMP-SAL PIC 9(7).</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 30pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.25in; text-indent: -0.25in;"><u>A32)<span style=""> </span>COBOL-II PROGRAM</u>.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;">WORKING-STORAGE SECTION.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;">77<span style=""> </span><span style=""> </span>LENGTH-OF-AREA <span style=""> </span>PIC<span style=""> </span>S9(4) COMP.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;">77<span style=""> </span>WS-RCODE<span style=""> </span>PIC<span style=""> </span>S9(8) COMP.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in; text-indent: -0.5in;">01<span style=""> </span>STATUS.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in; text-indent: 0.5in;">02 <st1:city st="on"><st1:place st="on">NORMAL</st1:place></st1:city>.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1.25in; text-indent: 0.25in;">05<span style=""> </span><span style=""> </span>FILLER<span style=""> </span>PIC X(8) VALUE ‘EMP ID: ‘.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in; text-indent: 0.5in;">05<span style=""> </span><span style=""> </span>EMP-ID <span style=""> </span>PIC X(3).</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in; text-indent: 0.5in;">05<span style=""> </span>FILLER <span style=""> </span>PIC X(6) VALUE ‘FOUND’.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in; text-indent: 0.5in;">02 ABNORMAL REDEFINES <st1:city st="on"><st1:place st="on">NORMAL</st1:place></st1:city>.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in; text-indent: 0.5in;">05<span style=""> </span>ABMSG<span style=""> </span> PIC X(17).</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 6pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;">01 EMP-IOAREA.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>05 <span style=""> </span>EMP-REC.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>10 <span style=""> </span>EMP-KEY<span style=""> </span><span style=""> </span>PIC XXX.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>10 <span style=""> </span>EMP-NAME <span style=""> </span>PIC X(32).</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>10 <span style=""> </span>EMP-SEX <span style=""> </span>PIC X.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>10 <span style=""> </span>EMP-DEPT <span style=""> </span>PIC X(10)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>10 <span style=""> </span>EMP-DESIG <span style=""> </span>PIC X(5).</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>10 <span style=""> </span>EMP-SAL <span style=""> </span>PIC 9(7).</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;">LINKAGE SECTION.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in; text-indent: -0.5in;">01<span style=""> </span>DFHCOMMAREA.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in;">05<span style=""> </span>INPVAL<span style=""> </span>PIC X(3).</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;">PROCEDURE DIVISION.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;">………..</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;">IF EIBCALEN=0</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in; text-indent: 0.5in;">EXEC CICS SEND <span style=""> </span></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>MAP(‘EMPFORM’)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>MAPSET(‘EMPFORM’)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>ERASE</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>END-EXEC.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>MOVE 3 TO LENGTH-OF-AREA</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>EXEC CICS RETURN</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>TRANSID(‘EMPS’)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>COMMAREA(‘SEC’)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>LENGTH(DATA-VALUE)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>END-EXEC.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;">ELSE IF<span style=""> </span>INPVAL = ’SEC’ <span style=""> </span></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in; text-indent: 0.5in;">EXEC CICS RECEIVE</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>MAP(‘EMPFORM’)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>MAPSET(‘EMPFORM’)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>END-EXEC.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>EXEC CICS READ</p> <p class="MsoNormal" style="margin-left: 1.5in;"><span style=""> </span>DATASET(‘EMPINFOR’)</p> <p class="MsoNormal" style="margin-left: 1.5in;"><span style=""> </span>INTO(EMP-IOAREA)</p> <p class="MsoNormal" style="margin-left: 1.5in;"><span style=""> </span>RIDFLD(EMPIDI)</p> <p class="MsoNormal" style="margin-left: 1.5in;"><span style=""> </span>LENGTH(LENGTH-OF-AREA)</p> <p class="MsoNormal" style="margin-left: 1.5in;"><span style=""> </span>RESP(WS-RCODE)</p> <p class="MsoNormal" style="margin-left: 1.5in;">END-EXEC.</p> <p class="MsoNormal" style="margin-left: 1.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 1.5in;">IF WS-RCODE NOT = DFHRESP(<st1:city st="on"><st1:place st="on">NORMAL</st1:place></st1:city>)</p> <p class="MsoNormal" style="margin-left: 1.5in;"><span style=""> </span>MOVE ‘KEY NOT FOUND’ TO ABMSG’</p> <p class="MsoNormal" style="margin-left: 1.5in;"><span style=""> </span>MOVE DFHBMBRY TO EMPIDA </p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.25in;"><span style=""> </span>ELSE </p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1.5in; text-indent: 0.5in;">MOVE EMP-NAME<span style=""> </span>TO EMPNAMEO</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in;"><span style=""> </span>MOVE EMP-SEX TO SEXO</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in;"><span style=""> </span>MOVE EMP-DESIG TO EMPDESIGO<span style=""> </span></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in;"><span style=""> </span>MOVE EMP-SAL TO SALARY</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in;"><span style=""> </span>MOVE EMP-DEPT TO DEPARTO</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in;"><span style=""> </span>MOVE EMP-KEY TO EMP-ID</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in;"><span style=""> </span>MOVE STATUS TO STATUSO.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><b style="">EXEC CICS SEND <span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>MAP(‘EMPFORM’)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>MAPSET(‘EMPFORM’)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>ERASE</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>END-EXEC.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>MOVE 3 TO LENGTH-OF-AREA</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>EXEC CICS RETURN</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>TRANSID(‘EMPS’)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>COMMAREA(‘SEC’)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>LENGTH(LENGTH-OF-AREA)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>END-EXEC.</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in; text-indent: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 1in; text-indent: 0.5in;">EXEC CICS RETURN</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>END-EXEC.</p> <p class="MsoNormal" style="margin-right: -0.75in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;">ELSE IF<span style=""> </span><span style=""> </span>(EXITINPI NOT = ‘Y’)</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>EXEC CICS RETURN</p> <p class="MsoNormal" style="margin: 0in -0.75in 0.0001pt 0.5in;"><span style=""> </span>END-EXEC.</p> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><i style="">The following are most frequently asked questions (FAQS):<o:p></o:p></i></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q33)<span style=""> </span>What does “Pseudo Conversational” mean?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A33)<span style=""> </span>The programming technique in which the task will not wait for the end-user replies on the terminal. Terminating the </p> <p class="MsoNormal" style="text-indent: 27pt;">task every time the application needs a response from the user and specifying the next transaction to be started when </p> <p class="MsoNormal" style="text-indent: 27pt;">the end user press any attention key (Enter, PF1 through PF24, PA1,PA2 and Clear) is pseudo-conversational </p> <p class="MsoNormal" style="text-indent: 27pt;">processing.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q34)<span style=""> </span>Explain the means of supporting pseudo conversation programming. (E.g. Storing and restoring of states, <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">control flow, error handling)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A34)<span style=""> </span>When<span style=""> </span>we<span style=""> </span>send<span style=""> </span>a<span style=""> </span>map<span style=""> </span>using<span style=""> </span>SEND MAP<span style=""> </span>command.<span style=""> </span>Immediately<span style=""> </span>we<span style=""> </span>release<span style=""> </span>the<span style=""> </span>program<span style=""> </span>by using<span style=""> </span>EXEC </p> <p class="MsoNormal" style="text-indent: 27pt;">CICS<span style=""> </span>RETURN<span style=""> </span>command.<span style=""> </span>In this<span style=""> </span>command<span style=""> </span>we<span style=""> </span>mention<span style=""> </span>the<span style=""> </span>TRANSACTION<span style=""> </span>ID<span style=""> </span>which<span style=""> </span>is to<span style=""> </span>be executed<span style=""> </span></p> <p class="MsoNormal" style="text-indent: 27pt;">after<span style=""> </span>receiving<span style=""> </span>the<span style=""> </span>map.<span style=""> </span>In<span style=""> </span>this<span style=""> </span>command<span style=""> </span>we<span style=""> </span>also<span style=""> </span>specify the<span style=""> </span>data<span style=""> </span>that<span style=""> </span>should<span style=""> </span>be<span style=""> </span>stored<span style=""> </span>in </p> <p class="MsoNormal" style="text-indent: 27pt;">COMMUNICATION<span style=""> </span>AREA<span style=""> </span>for later<span style=""> </span>use.<span style=""> </span>When<span style=""> </span>this<span style=""> </span>command<span style=""> </span>is<span style=""> </span>executed the<span style=""> </span>corresponding program is<span style=""> </span></p> <p class="MsoNormal" style="text-indent: 27pt;">released from<span style=""> </span>the<span style=""> </span>memory. After<span style=""> </span>receiving<span style=""> </span>the<span style=""> </span>response<span style=""> </span>from<span style=""> </span>the terminal<span style=""> </span>the<span style=""> </span>program<span style=""> </span>is again loaded<span style=""> </span>and<span style=""> </span>this<span style=""> </span></p> <p class="MsoNormal" style="text-indent: 27pt;">time<span style=""> </span>the data<span style=""> </span>which<span style=""> </span>we stored in<span style=""> </span>communication<span style=""> </span>area will<span style=""> </span>be<span style=""> </span>copied<span style=""> </span>into<span style=""> </span>the<span style=""> </span>working<span style=""> </span>storage<span style=""> </span>section.<span style=""> </span>And<span style=""> </span></p> <p class="MsoNormal" style="text-indent: 27pt;">the<span style=""> </span>map<span style=""> </span>will be<span style=""> </span>received<span style=""> </span>with<span style=""> </span>RECEIVE MAP<span style=""> </span>command.</p> <p class="MsoNormal" style="margin-left: 27pt;">The<span style=""> </span>variable<span style=""> </span>EIBCALEN<span style=""> </span>in<span style=""> </span>EIB<span style=""> </span>holds<span style=""> </span>the<span style=""> </span>length<span style=""> </span>of<span style=""> </span>communication area.<span style=""> </span>In<span style=""> </span>procedure<span style=""> </span>division<span style=""> </span>we<span style=""> </span>checks<span style=""> </span>the value<span style=""> </span>of<span style=""> </span>EIBCALEN If<span style=""> </span>it<span style=""> </span>is<span style=""> </span>zero,<span style=""> </span>we<span style=""> </span>first<span style=""> </span>send<span style=""> </span>the<span style=""> </span>map<span style=""> </span>followed<span style=""> </span>by<span style=""> </span>RETURN command.<span style=""> </span>Otherwise,<span style=""> </span>that is<span style=""> </span>if EIBCALEN is<span style=""> </span>not<span style=""> </span>zero,<span style=""> </span>we<span style=""> </span>know that<span style=""> </span>this<span style=""> </span>transaction<span style=""> </span>is<span style=""> </span>not<span style=""> </span>running first<span style=""> </span>time<span style=""> </span>and<span style=""> </span>we<span style=""> </span>receive the<span style=""> </span>map<span style=""> </span>by using<span style=""> </span>RECEIVE MAP<span style=""> </span>command.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q35)<span style=""> </span>What is the function of the CICS translator?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A35)<span style=""> </span>The CICS translator converts the EXEC CICS commands into call statements for a specific programming language. There are CICS translators for Assembler, COBOL, and PL/1.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q36)<span style=""> </span>How can you start a CICS transaction other than by keying the Transaction ID at the terminal?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A36)<span style=""> </span>By coding an EXEC CICS START in the application program</p> <p class="MsoNormal" style="margin-left: 58.5pt; text-indent: -0.25in;">1.<span style=""> </span>By coding the trans id and a trigger level on the DCT table</p> <p class="MsoNormal" style="margin-left: 58.5pt; text-indent: -0.25in;">2.<span style=""> </span>By coding the trans id in the EXEC CICS RETURN command</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 4.5pt;">3.<span style=""> </span>By associating an attention key with the Program Control Table</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 4.5pt;">4.<span style=""> </span>By embedding the TRANSID in the first four positions of a screen sent to the terminal.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 4.5pt;">5.<span style=""> </span>By using the Program List Table</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q37)<span style=""> </span>What is the purpose of the Program List Table?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A37)<span style=""> </span>The Program List Table records the set of applications programs that will be executed automatically at CICS start-up </p> <p class="MsoNormal" style="text-indent: 27pt;">time.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q38)<span style=""> </span>What are the differences between and EXEC CICS XCTL and an EXEC CICS START command?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A38)<span style=""> </span>The XCTL command transfer control to another application (having the same Transaction ID), while the START command initiates a new transaction ID (therefore a new task number). The XCTL continues task on the same terminal. START can initiate a task on another terminal.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q39)<span style=""> </span>What are the differences between an EXEC CICS XCTL and an EXEC CICS LINK command.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A39)<span style=""> </span>The XCTL command transfer control to an application program at the same logical level (do not expect to control back), while the LINK command passes control to an application program at the next logical level and expects control back.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q40)<span style=""> </span>What happens to resources supplied to a transaction when an XCTL command is executed?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A40)<span style=""> </span>With an XCTL, the working storage and the procedure division of the program issuing the XCTL are released. The I/O areas, the GETMAIN areas, and the chained Linkage Section areas (Commarea from a higher level) remain. All existing locks and queues also remain in effect. With a LINK, however, program storage is also saved, since the transaction expects to return and use it again.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q41)<span style=""> </span>What CICS command do you need to obtain the user logon-id?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A41)<span style=""> </span>You must code EXEC CICS ASSIGN with the OPERID option.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q42)<span style=""> </span>What is a resident program?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A42)<span style=""> </span>A program or map loaded into the CICS nucleus so that it is kept permanently in main storage and not deleted when CICS goes “Short On Storage”.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q43)<span style=""> </span>What is EIB. How it can be used?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A43)<span style=""> </span>CICS automatically provides some system-related<span style=""> </span>information to<span style=""> </span>each<span style=""> </span>task<span style=""> </span>in<span style=""> </span>a<span style=""> </span>form<span style=""> </span>of<span style=""> </span>EXEC Interface Block (EIB), which is unique to the CICS command level. We can use<span style=""> </span>all<span style=""> </span>the fields<span style=""> </span>of EIB in<span style=""> </span>our application<span style=""> </span>programs<span style=""> </span>right<span style=""> </span>away.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q44)<span style=""> </span>What is some of the information available in the EIB area?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A44)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.5in;">I.<span style=""> </span>The cursor position in the map</p> <p class="MsoNormal" style="margin-left: 0.5in;">II.<span style=""> </span>Transaction ID</p> <p class="MsoNormal" style="margin-left: 0.5in;">III.<span style=""> </span>Terminal ID</p> <p class="MsoNormal" style="margin-left: 0.5in;">IV.<span style=""> </span>Task Number</p> <p class="MsoNormal" style="margin-left: 0.5in;">V.<span style=""> </span>Length of<span style=""> </span>communication area</p> <p class="MsoNormal" style="margin-left: 0.5in;">VI.<span style=""> </span>Current date and time</p> <p class="MsoNormal" style="margin-left: 0.5in;">VII.<span style=""> </span>Attention identifier</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q45)<span style=""> </span>What information can be obtained from the EIBRCODE?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A45)<span style=""> </span>The EIBRCODE tells the application program if the last CICS command was executed successfully and, if not, why not.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q46)<span style=""> </span>What is the effect of including the TRANSID in the EXEC CICS RETURN command?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A46)<span style=""> </span>The next time the end user presses an attention key, CICS will start the transaction specified in the TRANSID option.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q47)<span style=""> </span>Explain how to handle exceptional conditions in CICS.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A47)<span style=""> </span>An<span style=""> </span>abnormal<span style=""> </span>situation<span style=""> </span>during<span style=""> </span>execution<span style=""> </span>of<span style=""> </span>a<span style=""> </span>CICS<span style=""> </span>command is called<span style=""> </span>an exceptional<span style=""> </span>condition".<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 22.5pt;"><span style=""> </span>There are various<span style=""> </span>ways<span style=""> </span>to<span style=""> </span>handle<span style=""> </span>these<span style=""> </span>exception<span style=""> </span>conditions:</p> <p class="MsoNormal" style="margin-left: 45pt;">1. <b style="">Handle Condition Command:</b> It is used to transfer control to the procedure label specified if<span style=""> </span>the </p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>exceptional<span style=""> </span>condition specified<span style=""> </span>occurs.</p> <p class="MsoNormal" style="margin-left: 45pt;">2. <b style="">Ignore Condition Command:</b> It causes no action to be taken if the condition specified occurs in<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style=""> </span>the program. That is control will be returned to the next instruction following the command<span style=""> </span>which<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>encountered<span style=""> </span>the<span style=""> </span>exceptional<span style=""> </span>condition.</p> <p class="MsoNormal" style="margin-left: 45pt;">3. <b style="">No Handle Option:</b> This option can be specified in any CICS command and it will<span style=""> </span>cause no </p> <p class="MsoNormal" style="margin-left: 58.5pt;">action to be<span style=""> </span>taken<span style=""> </span>for<span style=""> </span>any<span style=""> </span>exceptional<span style=""> </span>condition<span style=""> </span>occurring<span style=""> </span>during<span style=""> </span>execution<span style=""> </span>of<span style=""> </span>this<span style=""> </span>command.</p> <p class="MsoNormal" style="margin-left: 45pt;">4. <b style="">RESP Option:</b> This option can<span style=""> </span>be<span style=""> </span>specified<span style=""> </span>in<span style=""> </span>any<span style=""> </span>CICS<span style=""> </span>command. If the RESP option is </p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>specified in a<span style=""> </span>command, CICS places a response code at<span style=""> </span>a<span style=""> </span>completion of the command.<span style=""> </span>The </p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>application program can check this code, then proceed to the next processing.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><b style="">Handle condition: <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in;">Invalid handling of<span style=""> </span>CICS<span style=""> </span>error condition within the program causing the looping.<span style=""> </span>Here is one example, most program have EXEC CICS HANDLE CONDTION ERROR(label) or<span style=""> </span>EXEC<span style=""> </span>CICS HANDLE ABEND LABEL(label) to<span style=""> </span>trap<span style=""> </span>any<span style=""> </span>error condition or<span style=""> </span>abend.<span style=""> </span>This<span style=""> </span>type<span style=""> </span>of<span style=""> </span>coding<span style=""> </span>is usually acceptable if<span style=""> </span>they handle<span style=""> </span>the error / abend correctly in<span style=""> </span>their<span style=""> </span>handling paragraph.<span style=""> </span>However,<span style=""> </span>the<span style=""> </span>program<span style=""> </span>often<span style=""> </span>cause another error or abend<span style=""> </span>within<span style=""> </span>the handling routine.<span style=""> </span>In that case, looping or sos will occur.<span style=""> </span>I strong recommend that<span style=""> </span>the<span style=""> </span>following statement should<span style=""> </span>be included in<span style=""> </span>their<span style=""> </span>ERROR handling paragraph.<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.5in;">EXEC CICS HANDLE CONDTION ERROR END-EXEC. It means that from<span style=""> </span>now on, CICS will handle all the errors and will not go back to error handling routine .For HANDLE ABEND, code EXEC CICS HANDLE ABEND CANCEL<span style="color: red;"> </span>instead. Please check the application program reference manual for further explanation of these two commands. Besides, not<span style=""> </span>only these two HANDLE will cause the program, other<span style=""> </span>type of error handle might cause loop too.<span style=""> </span>So<span style=""> </span>code<span style=""> </span>the HANDLE command carefully.<span style=""> </span>It<span style=""> </span>is<span style=""> </span>a good program practice to deactivate<span style=""> </span>the<span style=""> </span>error<span style=""> </span>handling<span style=""> </span>by<span style=""> </span>EXEC<span style=""> </span>CICS<span style=""> </span>HANDLE<span style=""> </span>CONDITION condition END-EXEC. Once you know that the program won't need it anymore.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q48)<span style=""> </span>What is the function of the EXEC CICS HANDLE CONDITION command?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A48)<span style=""> </span>To specify the paragraph or program label to which control is to be passed if the “handle condition” occurs.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q49)<span style=""> </span>How many conditions can you include in a single HANDLE CONDITION command?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A49)<span style=""> </span>No more than 16 in a single handle condition. If you need more, then you must code another HANDLE CONDITION </p> <p class="MsoNormal" style="text-indent: 27pt;">command.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q50)<span style=""> </span>What is the EXEC CICS HANDLE ABEND?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A50)<span style=""> </span>It allows the establishing of an exit so cleanup processing can be done in the event of abnormal task termination.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q51)<span style=""> </span>What is the difference between EXEC CICS HANDLE CONDTION and an EXEC CICS IGNORE command?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A51)<span style=""> </span>A HANDLE CONDITION command creates a “go-to” environment. An IGNORE command does not create a go-to environment; instead, it gives control back to the next sequential instruction following the command causing the condition. They are opposites.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q52)<span style=""> </span>What happens when a CICS command contains the NOHANDLE option?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A52)<span style=""> </span>No action is going to be taken for any exceptional conditional occurring during the execution of this command. The abnormal condition that occurred will be ignored even if an EXEC CICS HANDLE condition exist. It has the same effect as the EXEC CICS IGNORE condition except that it will not cancel the previous HANDLE CONDITION for any other command.<span style=""> </span> </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q53)<span style=""> </span>When a task suspends all the handle conditions via the PUSH<span style=""> </span>command, how does the task reactivate all the <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">handle conditions?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A53)<span style=""> </span>By coding an EXEC CICS POP HANDLE command.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q54)<span style=""> </span>Explain re-entrancy as applies to CICS.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A54)<span style=""> </span>Reentrant<span style=""> </span>program<span style=""> </span>is<span style=""> </span>a<span style=""> </span>program<span style=""> </span>which<span style=""> </span>does<span style=""> </span>not<span style=""> </span>modify itself<span style=""> </span>so<span style=""> </span>that<span style=""> </span>it<span style=""> </span>can<span style=""> </span>reenter to itself<span style=""> </span>and continue<span style=""> </span>processing<span style=""> </span>after<span style=""> </span>an<span style=""> </span>interruption<span style=""> </span>by<span style=""> </span>the<span style=""> </span>operating<span style=""> </span>system which, during<span style=""> </span>the<span style=""> </span>interruption, executes other<span style=""> </span>OS<span style=""> </span>tasks<span style=""> </span>including<span style=""> </span>OS<span style=""> </span>tasks<span style=""> </span>of<span style=""> </span>the<span style=""> </span><span style=""> </span>same<span style=""> </span>program.<span style=""> </span>It<span style=""> </span>is<span style=""> </span>also<span style=""> </span>called<span style=""> </span>a "reenterable"<span style=""> </span>program<span style=""> </span>or"serially<span style=""> </span>reusable"<span style=""> </span>program.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;">A quasi-reentrant program is a reentrant program under the CICS environment.<span style=""> </span>That<span style=""> </span>is,<span style=""> </span>the<span style=""> </span>quasi-reentrant<span style=""> </span>program is a CICS program which does not modify itself. That way it can reenter to itself and continue<span style=""> </span>processing after an interruption by CICS which,<span style=""> </span>during<span style=""> </span>the<span style=""> </span>interruption, executes other<span style=""> </span>tasks<span style=""> </span>including<span style=""> </span>CICS<span style=""> </span>tasks<span style=""> </span>of<span style=""> </span>the<span style=""> </span>same<span style=""> </span>program. In<span style=""> </span>order<span style=""> </span>to<span style=""> </span>maintain<span style=""> </span>the<span style=""> </span>quasi-reentrancy,<span style=""> </span>a<span style=""> </span>CICS<span style=""> </span>application<span style=""> </span>program<span style=""> </span>must<span style=""> </span>follow<span style=""> </span>the<span style=""> </span>following<span style=""> </span>convention:</p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;"><b style="">Constants in Working Storage:</b><span style=""> </span>The quasi-reentrant program defines only constants in its ordinary data area (e.g. working Storage Section ). These constants will never be modified and shared<span style=""> </span>by<span style=""> </span>the tasks.</p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;"><b style="">Variable in Dynamic<span style=""> </span>Working<span style=""> </span>Storage:</b> The quasi reentrant<span style=""> </span>program acquires a unique storage area ( </p> <p class="MsoNormal" style="margin-left: 27pt;">called Dynamic Working<span style=""> </span>Storage --DWS) dynamically<span style=""> </span>for<span style=""> </span>each<span style=""> </span>task by issuing<span style=""> </span>the<span style=""> </span>CICS<span style=""> </span>macro </p> <p class="MsoNormal" style="margin-left: 27pt;">equivalent<span style=""> </span>GETMAIN. <span style=""> </span>All variables<span style=""> </span>will be placed in<span style=""> </span>this DWS for each task. All counters<span style=""> </span>would<span style=""> </span>have<span style=""> </span>to be initialized<span style=""> </span>after the DWS has been<span style=""> </span>acquired.</p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;"><b style="">Restriction on Program<span style=""> </span>Alteration:</b><span style=""> </span>The<span style=""> </span>program must<span style=""> </span>not<span style=""> </span>alter<span style=""> </span>the<span style=""> </span>program<span style=""> </span>itself.<span style=""> </span>If<span style=""> </span>it<span style=""> </span>alters<span style=""> </span>a CICS macro<span style=""> </span>or<span style=""> </span>command,<span style=""> </span>it<span style=""> </span>must<span style=""> </span>restore<span style=""> </span>the<span style=""> </span>alteration<span style=""> </span>before<span style=""> </span>the<span style=""> </span>subsequent<span style=""> </span>CICS<span style=""> </span>macro<span style=""> </span>or command.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q55)<span style=""> </span>What are the CICS commands available for program control?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A55)<span style=""> </span>The<span style=""> </span>following<span style=""> </span>commands<span style=""> </span>are<span style=""> </span>available<span style=""> </span>for<span style=""> </span>the<span style=""> </span>Program<span style=""> </span>Control services:</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><b style="">1.<span style=""> </span>LINK: </b>To pass control<span style=""> </span>to<span style=""> </span>another<span style=""> </span>program<span style=""> </span>at<span style=""> </span>the<span style=""> </span>lower<span style=""> </span>level,<span style=""> </span>expecting<span style=""> </span>to<span style=""> </span>be<span style=""> </span>returned.</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><b style="">2.<span style=""> </span>XCTL:</b><span style=""> </span>To pass control to another<span style=""> </span>program<span style=""> </span>at the same<span style=""> </span>level,<span style=""> </span>not expecting<span style=""> </span>to be returned.</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><b style="">3.<span style=""> </span>RETURN:</b><span style=""> </span>To return<span style=""> </span>to<span style=""> </span>the<span style=""> </span>next<span style=""> </span>higher-level program<span style=""> </span>or<span style=""> </span>CICS.</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><b style="">4.<span style=""> </span>LOAD:</b><span style=""> </span>To<span style=""> </span>load<span style=""> </span>a<span style=""> </span>program.</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><b style="">5.<span style=""> </span>RELEASE:</b><span style=""> </span>To<span style=""> </span>release<span style=""> </span>a<span style=""> </span>program.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q56)<span style=""> </span>How is addressability achieved to the data outside programs working-storage.?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A56)<span style=""> </span>The<span style=""> </span>Base<span style=""> </span>Locator<span style=""> </span>for<span style=""> </span>Linkage<span style=""> </span>( BLL )<span style=""> </span>is<span style=""> </span>an<span style=""> </span>addressing convention<span style=""> </span>used<span style=""> </span>to<span style=""> </span>address<span style=""> </span>storage outside<span style=""> </span>the<span style=""> </span>Working<span style=""> </span>Storage Section<span style=""> </span>of<span style=""> </span>an<span style=""> </span>application<span style=""> </span>program. If BLL is used for the input commands (e.g.: READ, RECEIVE), it will improve the performance,<span style=""> </span>since<span style=""> </span>the<span style=""> </span>program<span style=""> </span>would<span style=""> </span>be<span style=""> </span>accessing directly the<span style=""> </span>input buffer<span style=""> </span>outside<span style=""> </span>of<span style=""> </span>the<span style=""> </span>program. In<span style=""> </span>order<span style=""> </span>to<span style=""> </span>work<span style=""> </span>as<span style=""> </span>intended,<span style=""> </span>the<span style=""> </span>program<span style=""> </span>must<span style=""> </span>construct BLL<span style=""> </span>based<span style=""> </span>on<span style=""> </span>the following<span style=""> </span>convention:</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 45pt;">1).<span style=""> </span>The<span style=""> </span>parameter<span style=""> </span>list<span style=""> </span>must<span style=""> </span>be<span style=""> </span>defined<span style=""> </span>by<span style=""> </span>means<span style=""> </span>of<span style=""> </span>a<span style=""> </span>01 level<span style=""> </span>data<span style=""> </span>definition<span style=""> </span>in<span style=""> </span>the Linkage Section<span style=""> </span>as<span style=""> </span>the<span style=""> </span>first area<span style=""> </span>definition<span style=""> </span>to<span style=""> </span>the<span style=""> </span>Linkage<span style=""> </span>Section,<span style=""> </span>unless<span style=""> </span>a communication<span style=""> </span>area<span style=""> </span>is<span style=""> </span>being<span style=""> </span>passed<span style=""> </span>to<span style=""> </span>the<span style=""> </span>program,<span style=""> </span>in<span style=""> </span>which case<span style=""> </span>DFHCOMMAREA must be defined<span style=""> </span>first. The parameter list<span style=""> </span>consists<span style=""> </span>of<span style=""> </span>a<span style=""> </span>group<span style=""> </span>of<span style=""> </span>the<span style=""> </span>address pointers, each of which is defined as<span style=""> </span>the full word binary field ( S9(8)<span style=""> </span>COMP ). This is called<span style=""> </span>the<span style=""> </span>BLL cells.</p> <p class="MsoNormal" style="margin-left: 45pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 45pt;">2). The parameter list is followed by a group of<span style=""> </span>01 level data definitions, which would be the<span style=""> </span>actual<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt;">data<span style=""> </span>areas.<span style=""> </span>The<span style=""> </span>first<span style=""> </span>address<span style=""> </span>pointer<span style=""> </span>of<span style=""> </span>the<span style=""> </span>parameter<span style=""> </span>list<span style=""> </span>is<span style=""> </span>set<span style=""> </span>up<span style=""> </span>by<span style=""> </span>CICS<span style=""> </span>for<span style=""> </span>addressing the<span style=""> </span>parameter<span style=""> </span>list<span style=""> </span>itself.<span style=""> </span>From<span style=""> </span>the<span style=""> </span>second<span style=""> </span>address<span style=""> </span>pointer onward, there<span style=""> </span>is<span style=""> </span>a<span style=""> </span>one-to-one correspondence<span style=""> </span>between<span style=""> </span>the<span style=""> </span>address<span style=""> </span>pointers<span style=""> </span>of<span style=""> </span>the parameter<span style=""> </span>list and<span style=""> </span>01<span style=""> </span>level<span style=""> </span>data<span style=""> </span>definitions.</p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 45pt;">3). VS<span style=""> </span>COBOL<span style=""> </span>II<span style=""> </span>provides CICS application<span style=""> </span>programs<span style=""> </span>with a significant improvements in the<span style=""> </span>area of addressability<span style=""> </span>through the special ADDRESS register. Therefore, if an application<span style=""> </span>program is written<span style=""> </span>in<span style=""> </span>VS<span style=""> </span>COBOL II, the<span style=""> </span>program<span style=""> </span>is<span style=""> </span>no<span style=""> </span>longer requires building<span style=""> </span>the<span style=""> </span>BLL cells<span style=""> </span>in<span style=""> </span>the<span style=""> </span>Linkage<span style=""> </span>Section.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q57)<span style=""> </span>Explain the various ways data can be passed between CICS programs.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A57)<span style=""> </span>Data can be passed between CICS programs in three ways- COMMAREA, TRASIENT DATA QUEUE & </p> <p class="MsoNormal" style="text-indent: 27pt;">TEMPORARY STORAGE QUEUE. </p> <p class="MsoNormal" style="text-indent: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 15.3pt 0.0001pt 27pt;">Data can be passed to a called program using the COMMAREA option of the LINK or XCTL command in a calling program. The called program may alter the data content of COMMAREA and the changes will be available to the calling program after the RETURN command is issued in the called program. This implies that the called program does not have to specify the COMMAREA option in the RETURN command. </p> <p class="MsoNormal" style="margin: 0in 15.3pt 0.0001pt 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 19.8pt 0.0001pt 27pt;">If the COMMAREA is used in the calling program, the area must be defined in the Working Storage Section of the program<span style=""> </span>(calling), whereas, in<span style=""> </span>the<span style=""> </span>called<span style=""> </span>program,<span style=""> </span>the<span style=""> </span>area must<span style=""> </span>be<span style=""> </span>defined<span style=""> </span>as<span style=""> </span>the<span style=""> </span>first<span style=""> </span>area<span style=""> </span>in<span style=""> </span>the<span style=""> </span>Linkage<span style=""> </span>Section, using<span style=""> </span>reserved<span style=""> </span>name<span style=""> </span>DFHCOMMAREA.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q58)<span style=""> </span>What is the difference between using the READ command with INTO option and SET option?<o:p></o:p></b></p> <p class="MsoNormal" style="margin: 0in 19.8pt 0.0001pt 27pt; text-indent: -27pt;">A58)<span style=""> </span>When<span style=""> </span>we<span style=""> </span>use<span style=""> </span>INTO<span style=""> </span>option<span style=""> </span>with<span style=""> </span>the<span style=""> </span>READ<span style=""> </span>command<span style=""> </span>the<span style=""> </span>data<span style=""> </span>content<span style=""> </span>of<span style=""> </span>the<span style=""> </span>record<span style=""> </span>will<span style=""> </span>be moved<span style=""> </span>into<span style=""> </span>the<span style=""> </span>specified<span style=""> </span>field<span style=""> </span>defined<span style=""> </span>in<span style=""> </span>the<span style=""> </span>Working<span style=""> </span>Storage<span style=""> </span>Section<span style=""> </span>of<span style=""> </span>the<span style=""> </span>program. When we<span style=""> </span>use SET<span style=""> </span>option<span style=""> </span>with<span style=""> </span>the<span style=""> </span>READ<span style=""> </span>command ,<span style=""> </span>CICS<span style=""> </span>sets<span style=""> </span>the<span style=""> </span>address pointer<span style=""> </span>to<span style=""> </span>the<span style=""> </span>address of the<span style=""> </span>record<span style=""> </span>in<span style=""> </span>the file<span style=""> </span>input / output<span style=""> </span>area<span style=""> </span>within<span style=""> </span>CICS,<span style=""> </span>so that<span style=""> </span>the<span style=""> </span>application<span style=""> </span>program<span style=""> </span>can<span style=""> </span>directly<span style=""> </span>refer<span style=""> </span>to<span style=""> </span>the record without<span style=""> </span>moving<span style=""> </span>the record<span style=""> </span>content<span style=""> </span>into<span style=""> </span>the<span style=""> </span>Working<span style=""> </span>Storage<span style=""> </span>area<span style=""> </span>defined<span style=""> </span>in<span style=""> </span>the<span style=""> </span>program. Therefore, the SET<span style=""> </span>option<span style=""> </span>provides<span style=""> </span>a<span style=""> </span>better<span style=""> </span>performance<span style=""> </span>than<span style=""> </span>the<span style=""> </span>INTO<span style=""> </span>option.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q59)<span style=""> </span>Can we define an alternate index on VSAM/RRDS<span style=""> </span>?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A59)<span style=""> </span>No</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q60)<span style=""> </span>What is the difference between the INTO and the SET option in the EXEC CICS RECEIVE MAP command?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A60)<span style=""> </span>The INTO option moves the information in the TIOA into the reserved specified area, while the SET option simply returns the address of the TIOA to the specified BLL cell or<span style=""> </span>“address-of” a linkage-section.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q61)<span style=""> </span>How to establish dynamic cursor position on a map? How to get the cursor position when we receive a map?<o:p></o:p></b></p> <p class="MsoNormal" style="margin: 0in 24.3pt 0.0001pt 27pt; text-indent: -27pt;">A61)<span style=""> </span>We<span style=""> </span>dynamically<span style=""> </span>position a<span style=""> </span>cursor<span style=""> </span>through<span style=""> </span>an<span style=""> </span>application<span style=""> </span>program<span style=""> </span>using a symbolic<span style=""> </span>name<span style=""> </span>of the<span style=""> </span>symbolic map by<span style=""> </span>placing<span style=""> </span>-1<span style=""> </span>into<span style=""> </span>the field length field ( i.e.,<span style=""> </span>fieldname + L) of<span style=""> </span>the<span style=""> </span>field<span style=""> </span>where you<span style=""> </span>wish to<span style=""> </span>place<span style=""> </span>the<span style=""> </span>cursor. The SEND MAP command to be issued must have the CURSOR option ( without<span style=""> </span>value ). Also,<span style=""> </span>the<span style=""> </span>mapset<span style=""> </span>must<span style=""> </span>be<span style=""> </span>coded<span style=""> </span>with<span style=""> </span>MODE = INOUT in the<span style=""> </span>DFHMSD macro. We<span style=""> </span>get<span style=""> </span>the<span style=""> </span>cursor position<span style=""> </span>when<span style=""> </span>we<span style=""> </span>receive<span style=""> </span>a<span style=""> </span>map<span style=""> </span>by<span style=""> </span>checking<span style=""> </span>EIBCPOSN,<span style=""> </span>which is<span style=""> </span>a<span style=""> </span>halfword<span style=""> </span>( S9(4) COMP) binary field<span style=""> </span>in<span style=""> </span>EIB,<span style=""> </span>and<span style=""> </span>contains<span style=""> </span>offset<span style=""> </span>position<span style=""> </span>(relatively to zero ) <span style=""> </span>of<span style=""> </span>the<span style=""> </span>cursor<span style=""> </span>on<span style=""> </span>the<span style=""> </span>screen.</p> <p class="MsoNormal" style="margin-right: 24.3pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q62)<span style=""> </span>What is MDT?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A62)<span style=""> </span>MDT<span style=""> </span>(<span style=""> </span>Modified<span style=""> </span>Data<span style=""> </span>Tag<span style=""> </span>)<span style=""> </span>is<span style=""> </span>one<span style=""> </span>bit<span style=""> </span>of<span style=""> </span>the<span style=""> </span>attribute<span style=""> </span>character.<span style=""> </span>If<span style=""> </span>it<span style=""> </span>is<span style=""> </span>off ( 0 ), it<span style=""> </span>indicates<span style=""> </span>that this<span style=""> </span>field<span style=""> </span>has<span style=""> </span>not<span style=""> </span>been<span style=""> </span>modified<span style=""> </span>by<span style=""> </span>the<span style=""> </span>terminal<span style=""> </span>operator.<span style=""> </span>If<span style=""> </span>it <span style=""> </span>is on<span style=""> </span>( 1 ),<span style=""> </span>it<span style=""> </span>indicates<span style=""> </span>that<span style=""> </span>this field has<span style=""> </span>been modified<span style=""> </span>by<span style=""> </span>the<span style=""> </span>operator.<span style=""> </span>Only<span style=""> </span>when MDT<span style=""> </span>is<span style=""> </span>on,<span style=""> </span>will the<span style=""> </span>data<span style=""> </span>of<span style=""> </span>the<span style=""> </span>field<span style=""> </span>be sent<span style=""> </span>by<span style=""> </span>the<span style=""> </span>terminal<span style=""> </span>hardware to<span style=""> </span>the<span style=""> </span>host computer ( i.e.,<span style=""> </span>to<span style=""> </span>the<span style=""> </span>application<span style=""> </span>program,<span style=""> </span>in<span style=""> </span>end ). An<span style=""> </span>effective<span style=""> </span>use<span style=""> </span>of<span style=""> </span>MDT<span style=""> </span>drastically<span style=""> </span>reduces the<span style=""> </span>amount<span style=""> </span>of<span style=""> </span>data<span style=""> </span>traffic<span style=""> </span>in<span style=""> </span>the communication<span style=""> </span>line,<span style=""> </span>thereby<span style=""> </span>improving performance<span style=""> </span>significantly.<span style=""> </span>Therefore, BMS maps<span style=""> </span>and<span style=""> </span>CICS<span style=""> </span>application programs should<span style=""> </span>be developed based<span style=""> </span>on<span style=""> </span><span style=""> </span>careful considerations<span style=""> </span>for<span style=""> </span>MDT.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q63)<span style=""> </span>What are the three ways available for a program to position the cursor on the screen?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A63)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;">I.<span style=""> </span>Static positioning. Code the insert cursor (IC) in the DFHMDF BMS macro.</p> <p class="MsoNormal" style="margin-left: 27pt;">II.<span style=""> </span>Relative positioning. Code the CURSOR option with a value relative to zero(position 1,1 is zero) .</p> <p class="MsoNormal" style="margin-left: 27pt;">III.<span style=""> </span>Symbolic positioning. Move high values or -1 to the field length in the symbolic map(and code CURSOR on the </p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 9pt;">SEND command).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q64)<span style=""> </span>Name three ways the Modified Data Tag can be set on?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A64)<span style=""> </span>The Modified Data Tag can be set on:</p> <p class="MsoNormal"><span style=""> </span>1. When the user enters data into the field.</p> <p class="MsoNormal"><span style=""> </span>2. When the application program moves DFHBMFSE to the attribute character.</p> <p class="MsoNormal"><span style=""> </span>3. By defining it in the BMS macro definition.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q65)<span style=""> </span>What is a mapset?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A65)<span style=""> </span>A mapset is a collection of BMS maps link-edited together.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q66)<span style=""> </span>What is the function of DFHMDF BMS macro?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A66)<span style=""> </span>The DFHMDF macro defines fields, literal, and characteristics of a field.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q67)<span style=""> </span>Why is a TERM ID recommended in naming a TSQ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin: 0in 24.3pt 0.0001pt 27pt; text-indent: -27pt;">A67)<span style=""> </span>In<span style=""> </span>order<span style=""> </span>to<span style=""> </span>avoid<span style=""> </span>confusion<span style=""> </span>and<span style=""> </span>to <span style=""> </span>maintain<span style=""> </span>data<span style=""> </span>security,<span style=""> </span>a<span style=""> </span>strict<span style=""> </span>naming convention<span style=""> </span>for QID<span style=""> </span>will be required<span style=""> </span>in<span style=""> </span>the installation.<span style=""> </span>Moreover,<span style=""> </span>for<span style=""> </span>a<span style=""> </span>terminal-dependent task<span style=""> </span>(e.g., pseudo-conversational<span style=""> </span>task),<span style=""> </span>the<span style=""> </span>terminal<span style=""> </span>id<span style=""> </span>should be<span style=""> </span>included<span style=""> </span>in<span style=""> </span>QID<span style=""> </span>in<span style=""> </span>order<span style=""> </span>to<span style=""> </span>ensure<span style=""> </span>the uniqueness<span style=""> </span>of<span style=""> </span>TSQ<span style=""> </span>to<span style=""> </span>the<span style=""> </span>task.</p> <p class="MsoNormal" style="margin: 0in 1in 0.0001pt 0.75in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q68)<span style=""> </span>Explain the basic difference between Intra partition TDQ and Extra partition TDQ.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A68)<span style=""> </span></p> <p class="MsoNormal" style="">INTRA<span style=""> </span>PARTITION<span style=""> </span>TD<span style=""> </span>QUEUEs<span style=""> </span>It is a<span style=""> </span>group of sequential records which are<span style=""> </span>produced by the same<span style=""> </span>and / or<span style=""> </span>different transactions within a CICS region.<span style=""> </span>These<span style=""> </span>Qs<span style=""> </span>are<span style=""> </span>stored<span style=""> </span>in<span style=""> </span>only<span style=""> </span>one<span style=""> </span>physical<span style=""> </span>file<span style=""> </span>(<span style=""> </span>VSAM<span style=""> </span>) in<span style=""> </span>a<span style=""> </span>CICS<span style=""> </span>region,<span style=""> </span>which<span style=""> </span>is<span style=""> </span>prepared<span style=""> </span>by<span style=""> </span>the<span style=""> </span>system<span style=""> </span>programmer.<span style=""> </span>Once<span style=""> </span>a<span style=""> </span>record<span style=""> </span>is<span style=""> </span>read<span style=""> </span>from<span style=""> </span>a<span style=""> </span>queue,<span style=""> </span>the<span style=""> </span>record <span style=""> </span>will<span style=""> </span>be logically<span style=""> </span>removed<span style=""> </span>from<span style=""> </span>the<span style=""> </span>queue;<span style=""> </span>that<span style=""> </span>is<span style=""> </span>the record<span style=""> </span>cannot<span style=""> </span>be<span style=""> </span>read<span style=""> </span>again.<span style=""> </span>EXTRA<span style=""> </span>PARTITION<span style=""> </span>TD<span style=""> </span>QUEUEs<span style=""> </span>It<span style=""> </span>is<span style=""> </span>a<span style=""> </span>group<span style=""> </span>of<span style=""> </span>sequential<span style=""> </span>records<span style=""> </span>which<span style=""> </span>interfaces<span style=""> </span>between<span style=""> </span>the<span style=""> </span>transactions<span style=""> </span>of<span style=""> </span>the<span style=""> </span>CICS<span style=""> </span>region<span style=""> </span>and<span style=""> </span>the<span style=""> </span>systems outside<span style=""> </span>of<span style=""> </span>CICS region.<span style=""> </span>Each<span style=""> </span>of<span style=""> </span>these<span style=""> </span>TDQs<span style=""> </span>is<span style=""> </span>a<span style=""> </span>separate<span style=""> </span>physical<span style=""> </span>file,<span style=""> </span>and<span style=""> </span>it<span style=""> </span>may be<span style=""> </span>on<span style=""> </span>the<span style=""> </span>disk,<span style=""> </span>tape,<span style=""> </span>printer<span style=""> </span>or<span style=""> </span>plotter.<span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q69)<span style=""> </span>What are the differences between Temporary Storage Queue (TSQ) and Transient Data Queue (TDQ).?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A69)<span style=""> </span>Temporary Storage Queue names are dynamically defined in the application program, while TDQs must first be defined in the DCT (Destination Control Table). When a TDQ contains certain amount of records (Trigger level), a CICS transaction can be started automatically. This does not happen when using a TSQ. TDQ(extra partition) may be used by batch application; TSQ cannot be accessed in batch. The Transient Data Queue is actually a QSAM file. You may update an existing item in a TSQ. A record in a TDQ cannot be updated. Records in TSQ can be read randomly. The TDQ can be read only sequentially. Records in Temporary Storage can be read more than once, while records stored in Temporary Data Queues cannot. With TDQs it is “one read” only.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q70)<span style=""> </span>What is the difference between getting the system time with EIBTIME and ASKTIME command?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A70)<span style=""> </span>The<span style=""> </span>ASKTIME<span style=""> </span>command<span style=""> </span>is<span style=""> </span>used<span style=""> </span>to<span style=""> </span>request<span style=""> </span>the<span style=""> </span>current<span style=""> </span>date<span style=""> </span>and<span style=""> </span>time. Whereas,<span style=""> </span>the<span style=""> </span>EIBTIME field<span style=""> </span>have<span style=""> </span>the<span style=""> </span>value<span style=""> </span>at<span style=""> </span>the<span style=""> </span>task<span style=""> </span>initiation<span style=""> </span>time.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q71)<span style=""> </span>What does the following transactions do?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">A71)<span style=""> </span>CEDF :</b> CICS-supplied<span style=""> </span>Execution<span style=""> </span>Diagnostic<span style=""> </span>Facility<span style=""> </span>transaction.<span style=""> </span>It<span style=""> </span>provides interactive<span style=""> </span>program<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>execution<span style=""> </span>and<span style=""> </span>debugging<span style=""> </span>functions<span style=""> </span>of<span style=""> </span>a<span style=""> </span>CICS programs.</p> <p class="MsoNormal" style="margin-left: 27pt;"><b style="">CEMT :</b> CICS-supplied<span style=""> </span>Extended<span style=""> </span>Master<span style=""> </span>Terminal<span style=""> </span>transaction.<span style=""> </span>It<span style=""> </span>displays<span style=""> </span>or<span style=""> </span>manipulates CICS </p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>control environment<span style=""> </span>interactively.</p> <p class="MsoNormal" style="margin-left: 27pt;"><b style="">CEBR :</b> CICS-supplied<span style=""> </span>Temporary<span style=""> </span>Storage<span style=""> </span>Browse<span style=""> </span>transaction.<span style=""> </span>It<span style=""> </span>displays<span style=""> </span>the<span style=""> </span>content of<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>Temporary Storage<span style=""> </span>Queue ( TSQ ).</p> <p class="MsoNormal" style="margin-left: 27pt;"><b style="">CECI :</b><span style=""> </span>CICS-supplied<span style=""> </span>Command<span style=""> </span>Interpreter<span style=""> </span>transaction.<span style=""> </span>It<span style=""> </span>verifies<span style=""> </span>the<span style=""> </span>syntax<span style=""> </span>of<span style=""> </span>a CICS<span style=""> </span>command<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>and<span style=""> </span>executes<span style=""> </span>the<span style=""> </span>command.</p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q72)<span style=""> </span>Explain floating maps with illustration.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A72)<span style=""> </span>Maps which can position themselves<span style=""> </span>relative to the previous maps on the screen or<span style=""> </span>page are known as </p> <p class="MsoNormal" style="margin-left: 27pt;">the floating maps. For this<span style=""> </span>you<span style=""> </span>have to use special positional operands to LINE and COLUMN parameters of the BMS macro definition. They are SAME, NEXT. Actually this floating map concept is there only in Full BMS where as it is not available in Min.<span style=""> </span>or<span style=""> </span>Standard<span style=""> </span>BMS macros. RECEIVE<span style=""> </span>MAP is not<span style=""> </span>recommended in the case of floating maps. Hence these maps are normally<span style=""> </span>used to send information such as selected records from a<span style=""> </span>database to screen but not for data entry. A<span style=""> </span>mapset<span style=""> </span>can contain more than one m ap in it, you may use all these maps to build a screen.<span style=""> </span>In<span style=""> </span>that case<span style=""> </span>there<span style=""> </span>are<span style=""> </span>two ways to send these maps on to the<span style=""> </span>screen</p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>i ) Use separate SEND MAP commands one for each map involved. or</p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>ii) Use<span style=""> </span>ACCUM operand along with SEND MAP command and while sending really on to the </p> <p class="MsoNormal" style="margin-left: 81pt;"><span style=""> </span>screen use SEND PAGE to display them<span style=""> </span>at one shot. <span style=""> </span>The second one is called </p> <p class="MsoNormal" style="margin-left: 81pt;"><span style=""> </span>cumulative mapping scheme where you also can use<span style=""> </span>floating maps.<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>Let's take a situation where you have to build a screen like this</p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>HEADER MAP (no. of A gr. employs)</p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>DETAIL MAP<span style=""> </span>(employee list )</p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span><span style=""> </span>TRAILER MAP<span style=""> </span>(Press a key to continue...)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;">Under such situations whatever the detail map needed<span style=""> </span>that<span style=""> </span>is<span style=""> </span>to<span style=""> </span>be<span style=""> </span>displayed again and again to display all the information<span style=""> </span>one<span style=""> </span>screenful<span style=""> </span>at<span style=""> </span>a<span style=""> </span>time.<span style=""> </span>In this<span style=""> </span>floating map concept helps.</p> <p class="MsoNormal" style="margin-left: 27pt;">Code the map like this<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span><span style=""> </span>M1 DFHMDI ...... HEADER=YES,JUSTIFY=FIRST..................</p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>M2 DFHMDI ...…<span style=""> </span>......................... <u>LINE=NEXT</u>....................</p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: 0.5in;">M3 DFHMDI ........TRAILER=YES,JUSTIFY=LAST...........................</p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;">Here M2 is detail map, which is coded as floating map. Procedure:</p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;">Every time using cumulative map technique send header (first) and followed by<span style=""> </span>detail<span style=""> </span>map<span style=""> </span>next<span style=""> </span>into a<span style=""> </span>page buffer once the page is full an overflow occurs by<span style=""> </span>using<span style=""> </span>CICS HANDLE OVERFLOW command send first trailer map then header<span style=""> </span>map<span style=""> </span>( This will do two things a) it sends previous map on to the screen b) starts<span style=""> </span>fresh page buffer ).<span style=""> </span>Repeated this until no more records to be retrieved. Here M2<span style=""> </span>is the one which holds the record values read from the file.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q73)<span style=""> </span>What is the function of the Terminal Control Table(TCT)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A73)<span style=""> </span>The TCT defines the characteristics of each terminal with which CICS can communicate.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q74)<span style=""> </span>What does it mean when EIBCALEN is equal to zeros?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A74)<span style=""> </span>When the length of the communication area (EIBCALEN) is equal to zeros, it means that no data was passed to the application.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q75)<span style=""> </span>How can the fact that EIBCALEN is equal to zeros be of use to an application programmer?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A75)<span style=""> </span>When working in a pseudo-conversational mode, EIBCALEN can be checked if it is equal to zero. A programmer can use this condition as a way of determining first time usage(of the program).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q76)<span style=""> </span>Which CICS system program is responsible for handling automatic task initialization?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A76)<span style=""> </span>The Transient Data Program(TDP).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q77)<span style=""> </span>In an on-line environment, how can you prevent more than one user from accessing the same Transient Data <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 27pt;"><b style="">Queue at the same time?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A77)<span style=""> </span>By issuing an EXEC CICS ENQ against the resource. When processing is completed, a DEQ should be executed.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q78)<span style=""> </span>When an application is invoked via the EXEC CICS START command with the from option, how does the <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 27pt;"><b style="">application gain access to the common area?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A78)<span style=""> </span>An EXEC CICS RETRIEVE command will access the common area.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q79)<span style=""> </span>The DFHCOMMAREA is used to pass information from one application to another. What are some other ways <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 27pt;"><b style="">that this function can be accomplished?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A79)<span style=""> </span>You can also pass information in the following ways.</p> <p class="MsoNormal"><span style=""> </span>- By using a temporary storage queue</p> <p class="MsoNormal"><span style=""> </span>- By using an intrapartition TDQ</p> <p class="MsoNormal"><span style=""> </span>- By using the Task Work Area</p> <p class="MsoNormal"><span style=""> </span>- By using TCTUA</p> <p class="MsoNormal"><span style=""> </span>- Through a file</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q80)<span style=""> </span>How do you define Task Work Area?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A80)<span style=""> </span>By defining it on the PCT (the Program Control Table)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q81)<span style=""> </span>What information do you get when an EXEC CICS STARTCODE is issued?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A81)<span style=""> </span>You will be able to determine if the application was started by (1) a transient data trigger level(QD), (2) a START command (S,SD), (3) user (U) or terminal input (TD), or (4) Distributed Program Link(D,DS).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q82)<span style=""> </span>Which CICS command must be issued by the application program in order to gain access to the Common <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 27pt;"><b style="">Work Area(CWA)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A82)<span style=""> </span>EXEC CICS ADDRESS with CWA option.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q83)<span style=""> </span>In which CICS table would you specify the length of the TASK WORK AREA (TWA)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A83)<span style=""> </span>In the Program Control Table(PCT).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q84)<span style=""> </span>What is a deadlock?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A84)<span style=""> </span>Deadlock (also known as a “deadly embrace”) occurs when a task is waiting for a resource held by another task which, in turn, is waiting for a resources held by the first task.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q85)<span style=""> </span>Explain the term Transaction routing?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A85)<span style=""> </span>Transaction routing is a CICS mode of intercommunication which allows a terminal connected to local CICS to execute another transaction owned by a remote CICS.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q86)<span style=""> </span>Explain the term Function Request Shipping?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A86)<span style=""> </span>Function request shipping is one of the CICS modes of intercommunication which allows an application program in a local CICS to access resources owned by a remote CICS.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q87)<span style=""> </span>Explain the term “MRO” (Multi Region Operation)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A87)<span style=""> </span>MRO is the mechanism by which different CICS address spaces with in the same<span style=""> </span>CPU can communicate and share resources. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q88)<span style=""> </span>What are different system tables used in CICS?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A88)<span style=""> </span>PCT, FCT, TCT, DCT, PPT</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q89)<span style=""> </span>What is multitasking and multithreading?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A89)<span style=""> </span>Multitasking is the feature supported by the operating system to execute more than one task simultaneously. Multithreading is the system environment where the tasks are sharing the same programs load module under the multitasking environment. It is a subset of multitasking since it concerns tasks which use the same program.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q90)<span style=""> </span>What is the difference between link xctl?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A90)<span style=""> </span>Link is temporary transfer of control. Xctl is permanent transfer of control </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q91)<span style=""> </span>Name some of the common tables in CICS and their usage. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A91)<span style=""> </span>PCT Program Control Table<span style=""> </span> <span style=""> </span>- defines each transaction, containing a list of valid transaction </p> <p class="MsoNormal" style=""><span style=""> </span><span style=""> </span>identifiers (transid) where each transaction is paired with its matching </p> <p class="MsoNormal" style=""><span style=""> </span><span style=""> </span>program;<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 22.5pt;"><span style=""> </span>PPT Program Processing Table<span style=""> </span>- contains a list of valid program names and maps and whether a </p> <p class="MsoNormal" style="margin-left: 189pt; text-indent: 27pt;"><span style=""> </span>current version is in the CICS region or needs to be brought in as a </p> <p class="MsoNormal" style="margin-left: 189pt; text-indent: 27pt;"><span style=""> </span>new copy; </p> <p class="MsoNormal" style="margin-left: 179.7pt; text-indent: -157.2pt;"><span style=""> </span>FCT<span style=""> </span>File Control Table <span style=""> </span>- contains a list of files known to CICS, the dataset name and status<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 215.7pt; text-indent: 0.3pt;"><span style=""> </span>(closed/open, enabled/disabled);</p> <p class="MsoNormal" style="margin-left: 22.5pt;"><span style=""> </span>TCT Terminal Control Table <span style=""> </span>- a list of the terminals known to CICS. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q92)<span style=""> </span>Name some common CICS service programs and explain their usage? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A92)<span style=""> </span>Terminal Control, File Control,<span style=""> </span>Task Control, Storage Control, etc.<span style=""> </span>Each CICS services program controls the usage </p> <p class="MsoNormal" style="text-indent: 27pt;">and status for its resource (file, terminal, etc) within the CICS region. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q93)<span style=""> </span>What is meant by a CICS task? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A93)<span style=""> </span>A CICS task exists from the time the operator presses the enter key until the application program returns control to </p> <p class="MsoNormal" style="text-indent: 27pt;">CICS. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q94)<span style=""> </span>What is meant by program reentrance? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A94)<span style=""> </span>A program is considered reentrant if more than one task can execute the code without interfering with the other tasks' </p> <p class="MsoNormal" style="text-indent: 27pt;">execution. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q95)<span style=""> </span>What is the common systems area (CSA)? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A95)<span style=""> </span>The common systems area is the major CICS control block that contains system information, including pointers to </p> <p class="MsoNormal" style="text-indent: 27pt;">most other CICS control blocks.<span style=""> </span>The CSA points to all members of STATIC storage.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q96)<span style=""> </span>What is the COMMAREA(communications area)? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A96)<span style=""> </span>This is the area of main storage designed to let programs or tasks communicate with one another, used in programs via </p> <p class="MsoNormal" style="text-indent: 27pt;">RETURN, XCTL and LINK commands. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q97)<span style=""> </span>What is the EIB (execute interface block)? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A97)<span style=""> </span>The execute interface block lets the program communicate with the execute interface program, which processes CICS </p> <p class="MsoNormal" style="text-indent: 27pt;">commands. It contains terminal id, time of day and response codes. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q98)<span style=""> </span>What is an MDT (Modified Data Tag) - it's meaning and use? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A98)<span style=""> </span>The modified data tag is the last bit in the attribute byte for each screen field.<span style=""> </span>It indicates whether the corresponding </p> <p class="MsoNormal" style="text-indent: 27pt;">field has been changed. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q99)<span style=""> </span>What is a transid and explain the system transid CEMT? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A99)<span style=""> </span>Transid is a transaction identifier, a four character code used to invoke a CICS task. CEMT is the master terminal </p> <p class="MsoNormal" style="text-indent: 27pt;">transaction that lets you display and change the status of resources - it is the primary CICS service transaction. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q100)<span style=""> </span>What is the common work area (CWA)? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A100)<span style=""> </span>The common work area is a storage area that can be accessed by any task in a CICS system.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q101)<span style=""> </span>How do you access storage outside your CICS program? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A101)<span style=""> </span>In COBOL storage was accessed via BLL cells using the SET option of ADDRESS commands.<span style=""> </span>In COBOL II the </p> <p class="MsoNormal" style="text-indent: 0.5in;">special register, ADDRESS OF lets you reference the address of any Linkage Section field. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q102)<span style=""> </span>How does COBOL II and CICS release 1.7 provide for exceptional conditions and how does that differ from <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.5in;"><b style="">VS COBOL and earlier CICS releases? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A102)<span style=""> </span>VS COBOL used the HANDLE CONDITION command to name routines to pass program control when exceptional </p> <p class="MsoNormal" style="text-indent: 0.5in;">conditions were encountered.<span style=""> </span>COBOL II and CICS release 1.7 introduced the RESP option on many CICS </p> <p class="MsoNormal" style="text-indent: 0.5in;">commands. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q103)<span style=""> </span>What is the meaning and use of the EIBAID field? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A103)<span style=""> </span>EIBAID is a key field in the execute interface block; it indicates which attention key the user pressed to initiate the </p> <p class="MsoNormal" style="text-indent: 0.5in;">task. </p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q104)<span style=""> </span>How do you control cursor positioning? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A104)<span style=""> </span>It's controlled by the CURSOR option of the SEND MAP command using a direct (0 through 1919) or symbolic </p> <p class="MsoNormal" style="text-indent: 0.5in;">value. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.25in; text-indent: -0.25in;"><b style="">Q105)<span style=""> </span>What are attribute bytes and how and why are they modified?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A105)<span style=""> </span>Attribute bytes define map field characteristics (brightness, protection, etc); they are modified prior to issuing a </p> <p class="MsoNormal" style="text-indent: 0.5in;">SEND MAP command, eg. from normal to intense to highlight an error field. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q106)<span style=""> </span>How do you invoke other programs?<span style=""> </span>What are the pros and cons of each method?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A106)<span style=""> </span>There are three ways:<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 45pt;">1)<span style=""> </span>Use a COBOL II CALL statement to invoke a subprogram. This method is transparent to CICS, which sees </p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>only the one load module.</p> <p class="MsoNormal" style="margin-left: 45pt;">2)<span style=""> </span>An EXEC LINK is similar to a call; it invokes a separate CICS program and ends with a RETURN to the </p> <p class="MsoNormal" style="margin-left: 45pt;"><span style=""> </span>invoking program.<span style=""> </span>or </p> <p class="MsoNormal" style="margin-left: 45pt;">3)<span style=""> </span>An EXEC XCTL which transfers control to another CICS program and does not get control back. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q107)<span style=""> </span>What is BMS? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A107)<span style=""> </span>BMS is Basic Map Support; it allows you to code assembler level programs to define screens. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q108)<span style=""> </span>What is the difference between FSET and FRSET? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A108)<span style=""> </span>FSET specifies that the modified data tag should be turned on before the map is sent to the screen. FRSET turns off </p> <p class="MsoNormal" style="text-indent: 0.5in;">the attribute byte; it's used to transmit only changed data from the terminal. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q109)<span style=""> </span>What is the difference between the enter key, the PF keys and the PA keys? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A109)<span style=""> </span>The enter and PF keys transmit data from the screen; the PA keys tell CICS that a terminal action took place, but </p> <p class="MsoNormal" style="text-indent: 0.5in;">data is not transmitted. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q110)<span style=""> </span>Explain the difference among the EXEC LINK, EXEC XCTL and Cobol II static call statements in CICS. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A110)<span style=""> </span>COBOL II allows for static calls which are more efficient than the LINK instruction which establishes a new run-</p> <p class="MsoNormal" style="text-indent: 0.5in;">unit. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q111)<span style=""> </span>Are sequential files supported by CICS? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A111)<span style=""> </span>Yes, but not as part of the File Control Program. They are supported as extra partition transient data files. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q112)<span style=""> </span>What option can be coded on the RETURN command to associate a transaction identifier with the next <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.5in;"><b style="">terminal input? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A112)<span style=""> </span>The TRANSID option. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q113)<span style=""> </span>What is an ASRA? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A113)<span style=""> </span>An ASRA is the CICS interrupt code, the equivalent of an MVS abend code. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q114)<span style=""> </span>What is temporary storage? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A114)<span style=""> </span>Temporary storage is either main or auxiliary storage that allows the program to save data between task invocations. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q115)<span style=""> </span>What is transient data? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A115)<span style=""> </span>Transient data provides CICS programs with a simple method for sequential processing, often used to produce </p> <p class="MsoNormal" style="text-indent: 0.5in;">output for 3270 printers. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q116)<span style=""> </span>What are the two types of transient data queues? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A116)<span style=""> </span>They are intrapartition, which can only be accessed from within CICS and extrapartition, which are typically used to </p> <p class="MsoNormal" style="text-indent: 0.5in;">collect data online, but process it in a batch environment.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q117)<span style=""> </span>Where are transient data sets defined to CICS? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A117)<span style=""> </span>They are defined in the destination control table (DCT). </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q118)<span style=""> </span>Once a transient data queue is read, can it be reread?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A118)<span style=""> </span>No, silly!<span style=""> </span>That's why IBM calls it transient. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q119)<span style=""> </span>Name some commands used for CICS file browsing. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A119)<span style=""> </span>STARTBR,<span style=""> </span>READNEXT, READPREV, ENDBR and RESETBR. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q120)<span style=""> </span>What other file control processing commands are used for file updating? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A120)<span style=""> </span>WRITE, REWRITE,<span style=""> </span>DELETE and UNLOCK. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q121)<span style=""> </span>What is Journal Recovery and Dynamic Transaction Backout? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A121)<span style=""> </span>Journal Recovery is recovery of changes made to a file during online processing.<span style=""> </span>If a file has I/O problems it is </p> <p class="MsoNormal" style="text-indent: 0.5in;">restored from a backup taken before online processing began and the journalled changes are applied. Dynamic </p> <p class="MsoNormal" style="text-indent: 0.5in;">transaction backout is the removal of partial changes made by a failed transaction. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q122)<span style=""> </span>What tables must be updated when adding a new transaction and program? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A122)<span style=""> </span>At a bare minimum the Program Control Table ( PCT) and Program Processing Table (PPT) must be updated. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q123)<span style=""> </span>What is the meaning of the SYNCPOINT command? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A123)<span style=""> </span>SYNCPOINT without the ROLLBACK option makes all updates to protected resources permanent, with the </p> <p class="MsoNormal" style="text-indent: 0.5in;">ROLLBACK option it reverses all updates. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q124)<span style=""> </span>What do the terms locality of reference and working set mean? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A124)<span style=""> </span>They refer to CICS efficiency techniques. Locality of reference requires that the application program should </p> <p class="MsoNormal" style="text-indent: 0.5in;">consistently reference instructions and data within a relatively small number of pages.<span style=""> </span>The working set is the </p> <p class="MsoNormal" style="text-indent: 0.5in;">number of program pages needed by a task. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q125)<span style=""> </span>What do the keywords MAPONLY and DATAONLY mean? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A125)<span style=""> </span>MAPONLY is a SEND MAP operand that sends only fields with initial values to the screen. DATAONLY is the </p> <p class="MsoNormal" style="text-indent: 0.5in;">SEND MAP operand that specifies only data from the map area should be displayed. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q126)<span style=""> </span>What is the MASSINSERT option? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A126)<span style=""> </span>MASSINSERT is a WRITE option that modifies normal VSAM split processing, leaving free space after the </p> <p class="MsoNormal" style="text-indent: 0.5in;">inserted record, so subsequent records can be inserted without splits.<span style=""> </span>It is ended by an UNLOCK command. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q127)<span style=""> </span>What is a cursor in CICS sql processing? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A127)<span style=""> </span>A cursor is a pointer that identifies one row in a sql results table as the current row. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q128)<span style=""> </span>What are the DB2 steps required to migrate a CICS DB2 program from source code to load module? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A128)<span style=""> </span>A DB2 precompiler processes some SQL statements and converts others. It creates a data base request module </p> <p class="MsoNormal" style="text-indent: 0.5in;">(DBRM) for the binding step.<span style=""> </span>The bind process uses the DBRM to create an application plan, which specifies the </p> <p class="MsoNormal" style="text-indent: 0.5in;">techniques DB2 will use to process the embedded SQL statements. The link/edit step includes an interface to the </p> <p class="MsoNormal" style="text-indent: 0.5in;">CICS/DB2 attachment facility. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q129)<span style=""> </span>Name some translator and compile options and explain their meaning? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A129)<span style=""> </span>For translator SOURCE option prints the program listing, DEBUG enables EDF and COBOL2 alerts the system to </p> <p class="MsoNormal" style="text-indent: 0.5in;">use the COBOL II compiler.<span style=""> </span>For the compiler XREF prints a sorted data cross reference and FDUMP prints a </p> <p class="MsoNormal" style="text-indent: 0.5in;">formatted dump if the program abends. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q130)<span style=""> </span>What is the significance of RDO? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A130)<span style=""> </span>RDO is Resource Definition Online. Since release 1.6 RDO allows resources (terminals, programs, transactions and </p> <p class="MsoNormal" style="text-indent: 0.5in;">files) to be defined interactively while CICS is running. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q131)<span style=""> </span>What is CECI? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A131)<span style=""> </span>CECI is the command level interpreter transid that interactively executes CICS commands.<span style=""> </span>It is a rudimentary CICS </p> <p class="MsoNormal" style="text-indent: 0.5in;">command debugger which does not require coding an entire program. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q132)<span style=""> </span>What is CEDF? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A132)<span style=""> </span>CEDF is the execute diagnostic facility that can be used for debugging CICS programs.<span style=""> </span></p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q133)<span style=""> </span>What is CEBR? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A133)<span style=""> </span>CEBR lets you browse the contents of a specific temporary storage queue. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q134)<span style=""> </span>Name and explain some common CICS abend codes? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A134)<span style=""> </span>Any AEI_ indicates an execute interface program problem - the abending program encountered an exceptional </p> <p class="MsoNormal" style="text-indent: 0.5in;">condition that was not anticipated by the coding.<span style=""> </span>APCT - the program could not be found or is disabled. ASRA - </p> <p class="MsoNormal" style="text-indent: 0.5in;">most common CICS abend, indicating a program check, identified by a one-byte code in the Program Status Word </p> <p class="MsoNormal" style="text-indent: 0.5in;">in the dump.<span style=""> </span>AKCP - the task was cancelled; it was suspended for a period longer than the transaction's defined </p> <p class="MsoNormal" style="text-indent: 0.5in;">deadlock timeout period.<span style=""> </span>AKCT - The task was cancelled because it was waiting too long for terminal input. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q135)<span style=""> </span>What is a logical message in CICS? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A135)<span style=""> </span>A logical message is a single unit of output created by SEND TEXT or SEND MAP commands. BMS collects the </p> <p class="MsoNormal" style="text-indent: 0.5in;">separate output from each command and treats them as one entity. This technique may be used to build CICS </p> <p class="MsoNormal" style="text-indent: 0.5in;">reports. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q136)<span style=""> </span>What are the CICS commands associated with temporary storage queue processing? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A136)<span style=""> </span>WRITEQ TS,<span style=""> </span>READQ TS, and<span style=""> </span>DELETEQ, whose meanings should be self-explanatory. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q137)<span style=""> </span>What are the CICS commands associated with transient data queue processing? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A137)<span style=""> </span>WRITEQ TD, READQ TD, DELETEQ TD, ENQ and DEQ. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q138)<span style=""> </span>What is the meaning of the ENQ<span style=""> </span>and DEQ commands? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A138)<span style=""> </span>Neither command is exclusively a transient data command. The ENQ command reserves any user defined resource </p> <p class="MsoNormal" style="text-indent: 0.5in;">for the specific task.<span style=""> </span>For enqueued transient data no other task will be able to write records to it for as long as it is </p> <p class="MsoNormal" style="margin-left: 0.5in;">enqueued.<span style=""> </span>DEQ removes the lock. </p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q139)<span style=""> </span>How do you delete Item 3 in a five-item TSQ? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A139)<span style=""> </span>You can't--at least not directly. Options, none of them good, include:<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 99pt; text-indent: -0.5in;"><st1:place st="on">I.</st1:place><span style=""> </span>adding a logical-delete flag to the contents of each item;</p> <p class="MsoNormal" style="margin-left: 99pt; text-indent: -0.5in;">II.<span style=""> </span>moving item 4 to 3 and 5 to 4 and initializing item 5, all thru rewrites; this is a variant on 1;<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 99pt; text-indent: -0.5in;">III.<span style=""> </span>creating a new 'copy' TSQ that excludes the unwanted item, killing the old TSQ (deleteq ts), writing the </p> <p class="MsoNormal" style="margin-left: 63pt; text-indent: 0.25in;">new TSQ with the original name from the new TSQ, and then deleting the 'copy' TSQ. This way, you </p> <p class="MsoNormal" style="margin-left: 63pt; text-indent: 0.25in;">will get an accurate report from NUMITEMS. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q140)<span style=""> </span>What CICS command would you use to read a VSAM KSDS sequentially in ascending order? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A140)<span style=""> </span>READNEXT reads the next record from a browse operation for any of the three VSAM files. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q141)<span style=""> </span>How do you get data from a task that began with a START command? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A141)<span style=""> </span>The RETRIEVE command is used to get data from a task that began with a START command. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q142)<span style=""> </span>What is interval control and what are some of the CICS commands associated with it? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A142)<span style=""> </span>CICS interval control provides a variety of time-related features - common commands are ASKTIME, </p> <p class="MsoNormal" style="text-indent: 0.5in;">FORMATTIME, START, RETRIEVE, and CANCEL. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q143)<span style=""> </span>What is task control and what are the CICS commands associated with it? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A143)<span style=""> </span>Task control refers to the CICS functions that manage the execution of tasks. Task control commands are </p> <p class="MsoNormal" style="text-indent: 0.5in;">SUSPEND, ENQ, and DEQ. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q144)<span style=""> </span>What is the CICS LOAD command? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A144)<span style=""> </span>The LOAD command retrieves an object program from disk and loads it into main storage - it's primarily used for a </p> <p class="MsoNormal" style="text-indent: 0.5in;">constant table that will be available system-wide.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q145)<span style=""> </span>What is the ABEND command and when would you use it? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A145)<span style=""> </span>The ABEND command forces a task to end abnormally.<span style=""> </span>It creates a transaction dump and invokes the dynamic </p> <p class="MsoNormal" style="text-indent: 0.5in;">transaction backout. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q146)<span style=""> </span>DB2 What is the difference between a package and a plan. How does one bind 2 versions of a CICS <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">transaction with the same module name in two different CICS regions that share the same DB2 subsystem?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A146)<span style=""> </span>Package and plan are usually used synonymously, as in this site. Both contain optimized code for SQL statements - a </p> <p class="MsoNormal" style="text-indent: 0.5in;">package for a single program, module or subroutine contained in the database request module (DBRM) library. A </p> <p class="MsoNormal" style="text-indent: 0.5in;">plan may contain multiple packages and pointers to packages. The one CICS module would then exist in a package </p> <p class="MsoNormal" style="text-indent: 0.5in;">that could be referenced in two different plans. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q147)<span style=""> </span>How to build up LU 6.2 communication?" and "what Pseudo-conversational and real conversational <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: 0.5in;"><b style="">transaction are and their differences." <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A147)<span style=""> </span>Pseudo-conversational transactions are almost always the preferred method.<span style=""> </span>In these mode CICS releases resources </p> <p class="MsoNormal" style="text-indent: 0.5in;">between responses to user input, i.e. the task is ended awaiting the user response. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q148)<span style=""> </span>Why is it important not to execute<span style=""> </span>a STOP RUN in CICS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A148)<span style=""> </span>Stop run will come out from the CICS region.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q149)<span style=""> </span>Why must all CICS programs have a Linkage Section ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A149)<span style=""> </span>To pass parameters from appl. Program to CICS.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q150)<span style=""> </span>A mapset consists of three maps and<span style=""> </span>10 fields on each map . How many of the following will be needed ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A150)<span style=""> </span>a) DFHMSD statements<span style=""> </span>1</p> <p class="MsoNormal" style="margin-left: 0.25in;">a<span style=""> </span>b) DFHMDI statements <span style=""> </span>3</p> <p class="MsoNormal" style="margin-left: 0.25in;">b<span style=""> </span>c) DFHMDF statements<span style=""> </span>30 </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q151)<span style=""> </span>How are programs reinitiated under CICS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A151)<span style=""> </span>START COMMAND , RETURN COMMAND</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q152)<span style=""> </span>Why doesn’t CICS use the Cobol<span style=""> </span>Open and Close statements ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A152)<span style=""> </span>CICS AUTOMATICALLY OPENS AND CLOSES THE FILES THOSE ARE PLASED IN FCT </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q153)<span style=""> </span>What is the difference between a Symbolic map and Physical map ? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A153)<span style=""> </span>SYMBOLIC MAP IS USED BY USER AND PHYSICAL MAP IS USED BY SYSTEM</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q154)<span style=""> </span>Can a program change protected field ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A154)<span style=""> </span>NO</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q155)<span style=""> </span>How is the<span style=""> </span>stopper byte different from<span style=""> </span>an auto skip byte ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A155)<span style=""> </span>STOPPER command will stop after completing its field , whereas AUTOSKIP command Will skip to next </p> <p class="MsoNormal" style="text-indent: 0.5in;">unprotected field after completing its field.</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q156)<span style=""> </span>By which CICS defined field<span style=""> </span>can you determine the position of the cursor on the map ? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A156)<span style=""> </span>ATTRIB FIELD</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q157)<span style=""> </span>How will you place cursor on a field called<span style=""> </span>‘EMPNO’.<span style=""> </span>This field belongs to mapset ‘MAPEMPG’<o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">and map ‘MAPEMPM’ and<span style=""> </span>Symbolic map ‘Empid-Rec’ ?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A157)<span style=""> </span>BY INSERTING IC IN THE ATTRIB COMMAND</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q158)<span style=""> </span>How do you place the cursor on a particular position on the screen? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A158)<span style=""> </span>Move -1 to the length attribute of the field and use the CURSOR option. </p> <p class="MsoNormal" style="text-indent: 0.5in;">Define the field with IC in the BMS map.</p> <p class="MsoNormal" style="text-indent: 0.5in;">Use CURSOR(n m)??</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q159)<span style=""> </span>What are the two outputs created as a result of generation of a map? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A159)<span style=""> </span>The map copybook and the load module.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q160)<span style=""> </span>What is the difference between physical map and symbolic map? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A160)<span style=""> </span>The physical map is the load module and the symbolic map is the data structure.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q161)<span style=""> </span>What is the attribute byte? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A161)<span style=""> </span>Defines the display/transmission of field. most cases is an output field from the program.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q162)<span style=""> </span>How do you use extended attributes ? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A162)<span style=""> </span>Define EXTATT=YES and the correct terminal type.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q163)<span style=""> </span>What are the 3 working storage fields used for every field on the map? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A163)<span style=""> </span>Length, attribute and input/output field.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q164)<span style=""> </span>What is MDT? What are FSET, FRSET ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">A164)<span style=""> </span>MDT:</b> Bit in the attribute byte indicating modification of field on screen. Happens on an input operation. </p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">FSET:</b> Sets MDT on to ensure field is transmitted. Happens on an output operation.</p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">FRSET:</b> Resets MDT. Until this happens, field continues to be sent.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q165)<span style=""> </span>What is the use of DSECT parameter in BMS?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A165)<span style=""> </span>Is the parameter to generate a symbolic map.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q166)<span style=""> </span>Do you receive the attribute byte in the symbolic map?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A166)<span style=""> </span>On EOF yes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q167)<span style=""> </span>How do you make your BMS maps case sensitive?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A167)<span style=""> </span>Use ASIS???</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q168)<span style=""> </span>What is effect on RECEIVE MAP when PF key is pressed? PA key is pressed?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A168)<span style=""> </span>When PF key is pressed, Data transmission may happen. When PA key is pressed, Data transmission will not </p> <p class="MsoNormal" style="text-indent: 0.5in;">happen.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q169)<span style=""> </span>What is the difference between a PF key & a PA key ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A169)<span style=""> </span>PF keys wake up the task and transmit modified data, PA keys only wake up the task.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q170)<span style=""> </span>Name the macros used to define the following: MAP<span style=""> </span>MAPSET<span style=""> </span>FIELD<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A170)<span style=""> </span>DFHMSD<span style=""> </span>DFHMDI<span style=""> </span>DFHMDF</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q171)<span style=""> </span>Can you use OCCURS in a BMS map?<span style=""> </span>If you do, what are the issues related with its use?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A171)<span style=""> </span>Yes. cannot use group by clause???</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q172)<span style=""> </span>Can you define multiple maps in a BMS mapset?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A172)<span style=""> </span>Yes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q173)<span style=""> </span>How is the storage determined in the symbolic map, if you have multiple maps?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A173)<span style=""> </span>Storage for maps redefine the first. This means largest map has to be the first.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q174)<span style=""> </span>What is the meaning of BMS length of field = 0?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A174)<span style=""> </span>Data was not entered in the field</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q175)<span style=""> </span>Can you simply check if length = 0 for checking if a field was modified?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A175)<span style=""> </span>No, not if ERASE EOF was used.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q176)<span style=""> </span>What do you do if you do not want characters entered by the user to be folded to uppercase ? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A176)<span style=""> </span>Use ASIS option on RECEIVE.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q177)<span style=""> </span>What does the BUFFER option in RECEIVE mean ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A177)<span style=""> </span>Brings the entire datastream from the terminal buffer.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q178)<span style=""> </span>What are the steps you go through to a create a BMS executable?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A178)<span style=""> </span>Assemble to create CSECT and Link</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q179)<span style=""> </span>When you compile a CICS program, the (pre)compiler puts an extra chunk of code.<span style=""> </span>Where does it get <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">included and that is it called?<span style=""> </span>What is its length? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A179)<span style=""> </span>DFHEIBLK, DFHCOMMAREA.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q180)<span style=""> </span>List all the CICS tables and explain their contents. - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A180)<span style=""> </span>PPT<span style=""> </span>SIT</p> <p class="MsoNormal" style="margin-left: 0.5in;">PCT<span style=""> </span>JCT</p> <p class="MsoNormal" style="margin-left: 0.5in;">FCT<span style=""> </span>SNT</p> <p class="MsoNormal" style="margin-left: 0.5in;">DCT<span style=""> </span>SRT</p> <p class="MsoNormal" style="margin-left: 0.5in;">RCT<span style=""> </span>TCT</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q181)<span style=""> </span>I have written a CICS program.<span style=""> </span>What tables should I setup to run this program? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A181)<span style=""> </span>PPT, PCT, (FCT, DCT, RCT (if needed)).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q182)<span style=""> </span>In which table would you make an entry for a BMS map? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A182)<span style=""> </span>PPT</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q183)<span style=""> </span>What is the content of the PPT entry? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A183)<span style=""> </span>Length, Source, Use count, Lang, Res count DFHRPL number</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q184)<span style=""> </span>For a CICS-DB2 program, how is the plan referenced? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A184)<span style=""> </span>Uses a RCT table.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q185)<span style=""> </span>How is dynamic memory allocated within a CICS application program? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A185)<span style=""> </span>Use a GETMAIN</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q186)<span style=""> </span>What is the use of a TDQ, TSQ? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A186)<span style=""> </span>Temporary data stores.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q187)<span style=""> </span>How do you read from a TSQ? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A187)<span style=""> </span>Temp storage read command</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q188)<span style=""> </span>If I create a TSQ from one transaction, can I read it from another transaction? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A188)<span style=""> </span>Yes. As long as they run in the same region.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q189)<span style=""> </span>What are extra partition & intra partition TDQs?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A189)<span style=""> </span>Extra partition TDQs are datasets used for communication b'n CICS and other CICS/Batch regions. Intrapartition </p> <p class="MsoNormal" style="text-indent: 0.5in;">TDQs are queues for communication within regn.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q190)<span style=""> </span>What is trigger level in the context of TDQs?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A190)<span style=""> </span>For intrapartition TDQs specify the # records at which ATI happens. not applicable for extra partition TDQs.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q191)<span style=""> </span>How do you fire a batch job from a CICS transaction ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A191)<span style=""> </span>Define an extrapartition TDQ as an internal reader and write the JCL to it. Terminate the JCL with /*EOF.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q192)<span style=""> </span>What is ATI? What kind of TDQ can be used?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A192)<span style=""> </span>Automatic Task Initiation. Intra partition TDQ.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q193)<span style=""> </span>Do you require a table entry for a TSQ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A193)<span style=""> </span>If recovery is needed.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q194)<span style=""> </span>Is there any entry for TSQs in CICS tables?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A194)<span style=""> </span>Yes in the DFHTST.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q195)<span style=""> </span>What is the use of DCT?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A195)<span style=""> </span>Destination Control Table used to define TDQs</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q196)<span style=""> </span>What is ENQ, DEQ ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A196)<span style=""> </span>Task control commands to make resources serially reusable.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q197)<span style=""> </span>Can you issue SQL COMMIT from a CICS program? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A197)<span style=""> </span>Yes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q198)<span style=""> </span>What is the other way of terminating a transaction? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A198)<span style=""> </span>EXEC CICS SYNCPOINT. Assuming it is a LUW. This will not end the Xn.</p> <p class="MsoNormal" style="text-indent: 2.4pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q199)<span style=""> </span>What is an ASRA abend ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A199)<span style=""> </span>Any data exception problem SOC7, SOC4 etc.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q200)<span style=""> </span>What is an AEY9 abend ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A200)<span style=""> </span>DB2/IDMS not up.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q201)<span style=""> </span>What are the situations under which<span style=""> </span>NEWCOPY is required ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A201)<span style=""> </span>When a program has been used in CICS atleast once and then changed and recompiled.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q202)<span style=""> </span>What is EXEC CICS RETRIEVE ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A202)<span style=""> </span>Used by STARTed tasks to get the parameters passed to them.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q203)<span style=""> </span>Name some important fields in the EIB block ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A203)<span style=""> </span>EIBRESP, EIBCALEN, EIBRRCDE, EIBTASK, EIBDATE, EIBTIME</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q204)<span style=""> </span>Can you use DYNAMIC calls in CICS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A204)<span style=""> </span>Yes, the called routine must be defined in PPT and the calling program must use CALL identifier..</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q205)<span style=""> </span>How do you handle errors in CICS pgms ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A205)<span style=""> </span>Check EIBRESP after the call or use the HANDLE condition.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q206)<span style=""> </span>Suppose pgm A passes 30 bytes to pgm B thru commarea and pgm B has defined its DFHCOMMAREA to be <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">50 bytes . Is there a problem ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A206)<span style=""> </span>Yes, if B tries to access bytes 31-50.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q207)<span style=""> </span>When an XCTL is done, does the tranid change ? Is a new task created ? Does it cause an implicit <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">SYNCPOINT to be issued ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A207)<span style=""> </span>No, No, Yes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q208)<span style=""> </span>How do you execute a background CICS transaction ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A208)<span style=""> </span>With a START or ATI.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q209)<span style=""> </span>What is the difference between START and XCTL ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A209)<span style=""> </span>START is used to start a new task. It is a interval control command. XCTL is used to pass control to a program </p> <p class="MsoNormal" style="text-indent: 0.5in;">within the same task. It is a program control command.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q210)<span style=""> </span>What is the usage of language in the PPT entry?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A210)<span style=""> </span>Language interface and call parameters???</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q211)<span style=""> </span>Can you have CICS code in a copybook?<span style=""> </span>If yes, what happens during compilation?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A211)<span style=""> </span>Yes. Needs to be preprocessed.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q212)<span style=""> </span>What is an AICA abend?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A212)<span style=""> </span>Runaway Task.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q213)<span style=""> </span>How would you resolve an ASRA abend?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A213)<span style=""> </span>In COBOL II start with CEBR, and get the offset/instruction.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q214)<span style=""> </span>I invoke a transaction from CICS.<span style=""> </span>The program has a code: MOVE DFHCOMMAREA TO WS-AREA.<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">What happens to this transaction?<span style=""> </span>What happens to the other transactions?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A214)<span style=""> </span>Junk may get moved in. Will cause Storage violation. ????</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q215)<span style=""> </span>When you do a START, what will the value of EIBCALEN?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A215)<span style=""> </span>Zero.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q216)<span style=""> </span>How are VSAM files Read in CICS pgms? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A216)<span style=""> </span>File Control Commands. Random, Sequential, forward and backward.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q217)<span style=""> </span>How will you access a VSAM file using an alternate index?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A217)<span style=""> </span>Thru the path. Define path as an FCT and use normal File control commands.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q218)<span style=""> </span>How do you rollback data written to an ESDS file?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A218)<span style=""> </span>Define the file as recoverable. in cases where records have been inserted into the file, you may need to run a batch </p> <p class="MsoNormal" style="text-indent: 0.5in;">program to logically delete the inserted records.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q219)<span style=""> </span>I have done a START BROWSE on a VSAM dataset.<span style=""> </span>Can I do another START BROWSE without doing an <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">END BROWSE?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A219)<span style=""> </span>No.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q220)<span style=""> </span>Can you access QSAM (seq ) files from CICS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A220)<span style=""> </span>No.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q221)<span style=""> </span>Can you access ESDS files from CICS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A221)<span style=""> </span>Yes.</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q222)<span style=""> </span>In the CICS command level all the re-entrancy issues are handled by the System(True or False). <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A222)<span style=""> </span>True </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q223)<span style=""> </span>What are the three BMS options ? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A223)<span style=""> </span>Minimum, Standard, Full</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q224)<span style=""> </span>What are the beginning and end points of an LUW called?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A224)<span style=""> </span>Sync point</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q225)<span style=""> </span>The DL/I database is a hierarchical database and the DL/I access method isthe access method of the <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">Information Management System (IMS)(True or False)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A225)<span style=""> </span>True </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q226)<span style=""> </span>Before you can use a Temporary Storage Queue you must first define the Queue name in the CICS <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">Temporary Queue Table)( True or False). <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A226)<span style=""> </span>False</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q227)<span style=""> </span>The process of writing its own type of journal records by the application program, other than the automatic <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">journalling provided by CICS is called<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A227)<span style=""> </span>Explicit Journalling</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q228)<span style=""> </span>In order to display a formatted screen, a terminal must receive a series of data stream called Native Mode <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">Data Stream(True or False).<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A228)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q229)<span style=""> </span>Which is the CICS control program which governs the flow of control among the CICS application <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">programs?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A229)<span style=""> </span>Program Control Program</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q230)<span style=""> </span>What is the option of the DFHDCT macro which makes it possible to recover logically deleted records from <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">an Intrapartition TDQ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A230)<span style=""> </span>REUSE=YES </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q231)<span style=""> </span>CICS and DB2 can exist in the same region under the Operating system (True or False)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A231)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q232)<span style=""> </span>What is the name of the facility provided by CICS to free the application program form the problems caused <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">by NMDS (device and format dependence)? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A232)<span style=""> </span>Terminal Paging<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q233)<span style=""> </span>What is the command which will delete a program LOADed into the main storage using LOAD command? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A233)<span style=""> </span>RELEASE<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q234)<span style=""> </span>Which is the option of the HANDLE AID command that will pass control to the specified label when any key <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">is pressed?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A234)<span style=""> </span>ANYKEY<span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q235)<span style=""> </span>What is the name of the mapset definition macro?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A235)<span style=""> </span>DFHMSD<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q236)<span style=""> </span>What is the access method used by DB2?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A236)<span style=""> </span>SQL<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q237)<span style=""> </span>What is the command that is used to add a new record to the file? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A237)<span style=""> </span>READ with UPDATE followed by REWRITE</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q238)<span style=""> </span>What will happen when the resource security check has failed on the program which has been specified in the <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">PROGRAM option of the LOAD command? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A238)<span style=""> </span>INVREQ </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q239)<span style=""> </span>What is the command used to send a map to a terminal? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A239)<span style=""> </span>SEND MAP</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q240)<span style=""> </span>What is the command used to request notification when the specified time has expired?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A240)<span style=""> </span>POST </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q241)<span style=""> </span>If DATAONLY option is specified in the SEND MAP command what will happen?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A241)<span style=""> </span>Only the symbolic map will be send </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q242)<span style=""> </span>What will happen if the TDQ that you want to delete is not in the DCT? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A242)<span style=""> </span>QIDERR will occur </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q243)<span style=""> </span>The read of a record from an Intrapartition TDQ is not destructive(True or False).<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A243)<span style=""> </span>True </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q244)<span style=""> </span>An XCTL uses more CPU time than LINK (True or False)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A244)<span style=""> </span>False<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q245)<span style=""> </span>What is the primary function of the Sign-on Table?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A245)<span style=""> </span>Register security information of all programs<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q246)<span style=""> </span>Native Mode Data Stream (NMDS) is a mixture of Buffer Control Characters(BCC) and text data (True or <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">False). <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A246)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q247)<span style=""> </span>When there are 2 records with the same key specified in a DELETE operation what will happen?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A247)<span style=""> </span>DUPKEY condition will be set</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q248)<span style=""> </span>The application programs that contain the SQL statements must be Pre-compiled for converting the SQL <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">statements into equivalent COBOL statements (True or False)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A248)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q249)<span style=""> </span>What are the databases that CICS can access?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A249)<span style=""> </span>DB2, DL/I, ORACLE</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q250)<span style=""> </span>The first step in the development of an application system is the Requirement Analysis(True or False). <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A250)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q251)<span style=""> </span>CICS provides an interface through which the all the DL/I services can be used under CICS(True or False). <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A251)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q252)<span style=""> </span>How to get the sign-on user-id from an application program? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A252)<span style=""> </span>ASSIGN command with USERID option<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q253)<span style=""> </span>What is a Logical Unit of Work (LUW)? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A253)<span style=""> </span>A sequence of operations logically tied together<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q254)<span style=""> </span>Translation Time is not<span style=""> </span>reduced if the Pre-compilation is done first(True or False).<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A254)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q255)<span style=""> </span>What is the general Command format of CICS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A255)<span style=""> </span>EXEC CICS followed by the command<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q256)<span style=""> </span>If you use the OPTIMIZE compiler option the size of the program can be reduced by 5 to 10%(True or <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">False).<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A256)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q257)<span style=""> </span>For multithreading an application program need not be re-entrant(True or False).<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A257)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q258)<span style=""> </span>Before issuing an ASKTIME command what will be the values in the EIBDATE and EIBTIME fields if the <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">EIB? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A258)<span style=""> </span>The date and time at the task initiation<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q259)<span style=""> </span>What is the error condition that is set when the file specified in the NAME option is not in the FCT? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A259)<span style=""> </span>PGMIDERR<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q260)<span style=""> </span>For protecting a transaction using the transaction security function, the two things that must be done are: <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in;"><b style="">1. in the SNT entry of the user who you which to allow to access a protected transaction, specify SCTKEY=n<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in;"><b style="">2. In the PCT entry of the transactions that you wish to protect specify the TRANSEC=n. (True or False)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A260)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q261)<span style=""> </span>What are the various types of accesses that can be allowed by the SERVREQ option of the DFHFCT? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A261)<span style=""> </span>ADD,BROWSE,DELETE,READ,UPDATE<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q262)<span style=""> </span>‘CICS' system services provides an interface between CICS and the operating system and carries out the </b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">functions like loading and releasing of application programs, acquiring and freeing of storage , task <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">scheduling, etc (True or False).<span style=""> </span></b><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A262)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q263)<span style=""> </span>What are the parameters that you have to give when you are using the CSSN transaction?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A263)<span style=""> </span>None<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q264)<span style=""> </span>What is the command that is used to delay the processing of a task for a specified time interval or until a <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">specified time? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A264)<span style=""> </span>WAIT<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q265)<span style=""> </span>NMDS is both device dependent and format dependent (True or False)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A265)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q266)<span style=""> </span>Which is the EIB field that gives the date when a task was started?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A266)<span style=""> </span>EIBDATE<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q267)<span style=""> </span>Which is the AID that will not be identified in the ANYKEY option of the HANDLE AID command? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A267)<span style=""> </span>CLEAR<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q268)<span style=""> </span><st1:city st="on"><st1:place st="on">Reading</st1:place></st1:city> a record from a TSQ will logically delete the record from the Queue (True or False).<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A268)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q269)<span style=""> </span>What is the option that is used to erase all unprotected fields during a SEND MAP operation? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A269)<span style=""> </span>ERASEAUP<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q270)<span style=""> </span>What is the CICS command that is used to receive the un-formatted data from the terminal or logical unit of <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">a communication network? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A270)<span style=""> </span>RECEIVE<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q271)<span style=""> </span>What is the command for reading a record form a TSQ? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A271)<span style=""> </span>READQ TS, READQ</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q272)<span style=""> </span>What will happen, if an out-of-range or negative value is specified in the LENGTH option of the SEND <o:p></o:p></b></p> <p class="MsoNormal"><b style=""><span style=""> </span>command? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A272)<span style=""> </span>The OUTRAGE condition will be set<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q273)<span style=""> </span>Which is the control table where you specify all the transaction that are to be started by CICS after CICS <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">start-up? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A273)<span style=""> </span>Sign-on table<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q274)<span style=""> </span>A HANDLE CONDITION remains active until the end of the program or until another HANDLE <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">CONDITION command (True or False). <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A274)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q275)<span style=""> </span>In the conversational mode the system waits for the user to enter his response and then press an attention <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">key, and while waiting the resources are held by the program or task.<span style=""> </span>So conversational mode of <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">programming is inefficient (True or False)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A275)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q276)<span style=""> </span>Which is the macro used for making an entry in the PPT<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A276)<span style=""> </span>DFHPPT<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q277)<span style=""> </span>The goal of a recovery process is to Maintain the integrity of the data processed by the system and to <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">minimize the impact of a task or system failure (True or False).<span style=""> </span><span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A277)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q278)<span style=""> </span>What is the primary objective of CICS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A278)<span style=""> </span>To provide the control and services of the DB/DC system<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q279)<span style=""> </span>If no exception handling is provided in the program, what will happen ? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A279)<span style=""> </span>CICS will take the default action specified for the condition<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q280)<span style=""> </span>What is the CICS supplied transaction which performs syntax checking of a CICS command? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A280)<span style=""> </span>CEMT<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q281)<span style=""> </span>What is the process of converting the CICS commands into the equivalent host language statements called? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A281)<span style=""> </span>Translation<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q282)<span style=""> </span>What is the function of the LOAD command? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A282)<span style=""> </span>To fetch a program, table or map to the main storage.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q283)<span style=""> </span>What is the CICS Command that is used for reading a record from the TDQ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A283)<span style=""> </span>READQ<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q284)<span style=""> </span>LENGERR, NOTAUTH and PGMIDERR are some of the common exception conditions that can occur with <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">LINK and XCTL (True or False). <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A284)<span style=""> </span>False<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q285)<span style=""> </span>Which of the following are recoverable CICS resources? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A285)<span style=""> </span>Data files and data bases, Intrapartition TDQs, Auxiliary TSQs </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q286)<span style=""> </span>Which is the program which determines whether a transaction should be restarted ?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A286)<span style=""> </span>DTB<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q287)<span style=""> </span>What is the command used for receiving a map from a terminal? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A287)<span style=""> </span>RECEIVE MAP<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q288)<span style=""> </span>The mode of achieving conversation with the user, by sending him the message and while waiting for his <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">response, freeing the system resources is called<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A288)<span style=""> </span>Pseudo-conversation<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q289)<span style=""> </span>Which is the command used for terminating a browse operation? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A289)<span style=""> </span>ENDBR<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q290)<span style=""> </span>What is the primary function of the Processing Program Table (PPT)? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A290)<span style=""> </span>To register all programs and maps<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q291)<span style=""> </span>Sync points cannot be requested by the application programs(True or False).<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A291)<span style=""> </span>False<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q292)<span style=""> </span>Which is the command that is used to dump the main storage areas related to a task?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A292)<span style=""> </span>DUMP<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q293)<span style=""> </span>What is the CICS command that is used to copy a screen image of a terminal into another terminal? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A293)<span style=""> </span>ISSUE COPY<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q294)<span style=""> </span>What is the name of the log which contains the information needed to restart the system, including the task <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">sync point information and system activity key points, snapshots of key system tables, etc.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A294)<span style=""> </span>Dynamic Log<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q295)<span style=""> </span>The EIB field which gives the last CICS command executed is <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A295)<span style=""> </span>EIBRCODE<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q296)<span style=""> </span>The READ command with INTO option will read the record specified into the data area specified (True or <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">false). <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A296)<span style=""> </span>False<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q297)<span style=""> </span>The attribute character is an visible 1 byte character which precedes a screen field and determines the <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">characteristics of the field (True or False). <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A297)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q298)<span style=""> </span>What is the function of the Terminal Control table?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A298)<span style=""> </span>To register all CICS terminals<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q299)<span style=""> </span>Which is the CICS control program that provides communication services between user written application <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.5in;"><b style="">programs and terminals? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A299)<span style=""> </span>Terminal Control Program<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q300)<span style=""> </span>CICS Command level is<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A300)<span style=""> </span>Low level version of CICS macro level<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q301)<span style=""> </span>TSQs can be written in the Main storage or Auxiliary storage (True or False).<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A301)<span style=""> </span>True<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q302)<span style=""> </span>what is difference between call and link ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A302)<span style=""> </span>In case of call , whenever you do changes to the called program you need to compile the calling program also. In case of link , it is not needed . </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q303)<span style=""> </span>what are the differences between DFHCOMMAREA and TSQ ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A303)<span style=""> </span>Both are used to save data among tasks. but 1. COMMAREA is private to that transaction only . like every transaction has its own COMMAREA created by CICS as soon as the transaction is initiated . however TSQ , if queue id is known can be accessed by other transactions also 2. COMMAREA length is s9(4) comp i.e. 65k . but TSQ can have any length.3. COMMAREA is available only during the transaction is running. TSQ if created with auxiliary option resides in aux memory and available even if main memory crashes.4.normally COMMAREA is used to transfer data from one task to another while tsq is used widely within the task as a scratch pad.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q304)<span style=""> </span>What is Communication Area?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A304)<span style=""> </span>Communication Area is used to pass data between the program or between the task.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q305)<span style=""> </span>Which of the following statements correctly describe the syntax of CICS command language?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;">A).<span style=""> </span>If an EXEC CICS command must be continued onto a second line a hyphen (-) must be coded in column 7 of the continued line.</p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;">B).<span style=""> </span>If an EXEC CICS command must be continued onto a second line an<span style=""> </span>'X' must be coded in column 72 of each line to be continued.</p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;">C).<span style=""> </span>An EXEC CICS command CANNOT be coded within a COBOL IF statement, between the IF command and the period (.) ending it.</p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;">D).<span style=""> </span>The END-EXEC delimiter is optional and never needs to be placed at the end of a CICS command.</p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;">E).<span style=""> </span>The options specified within an EXEC CICS command can be in any order. </p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A305)<span style=""> </span><b style="">E.</b> The options specified within an EXEC CICS command can be in any order. For example 'exec CICS Send From(Msg1) Length(30) End-Exec' can also be coded 'exec Cics Send Length(30) From(Msg1) End-Exec'</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q306)<span style=""> </span>A CICS program ABENDS with an ASRA ABEND code. What is its meaning?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style=""> </span>A)<span style=""> </span>A link was issued to a program whose name does not exist in the PPT (Program Processing Table).</p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style=""> </span>B)<span style=""> </span>A program attempted to use a map that is not defined in the PCT (Program Control Table).</p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;">C)<span style=""> </span>A security violation has occurred. The operator is not defined with the proper authority in the SNT (Sign-</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: 13.5pt;"><span style=""> </span>on Table) to use a particular file</p> <p class="MsoNormal" style="margin-left: 0.75in;">D)<span style=""> </span>A program interrupt (0C0 or 0C1 or 0C2 or ...) has occurred in a CICS program.</p> <p class="MsoNormal" style="margin-left: 0.75in;">E)<span style=""> </span>An I/O error has occurred when attempting to use a VSAM file from a CICS program</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A306)<span style=""> </span>A program interrupt (0C0 or 0C1 or 0C2 or ...) has occurred in a CICS program.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q307)<span style=""> </span>Which of the following commands, when issued by 2 different programs running at the same time, will prevent simultaneous use of resource 'SINGLE'?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 49.5pt;">B) EXEC CICS PROTECT RESOURCE('SINGLE') LENGTH(6) END-EXEC.</p> <p class="MsoNormal" style="margin-left: 49.5pt;">C) EXEC CICS HOLD RESOURCE('SINGLE') LENGTH(6) END-EXEC. </p> <p class="MsoNormal" style="margin-left: 49.5pt;">D) EXEC CICS TASK SINGLE('SINGLE') LENGTH(6) END-EXEC. </p> <p class="MsoNormal" style="margin-left: 49.5pt;">E) EXEC CICS EXCLUSIVE RESOURCE('SINGLE') LENGTH(6) END-EXEC.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A307)<span style=""> </span>EXEC CICS EXCLUSIVE RESOURCE('SINGLE') LENGTH(6) END-EXEC</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q308)<span style=""> </span>The map shown below is displayed with: <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in;">EXEC CICS SEND MAP('MAP1') MAPSET('MAP1S') MAPONLY END-EXEC. After the screen is displayed, the operator enters 1 character, the letter 'X'. Where will the cursor now appear on the screen?</p> <p class="MsoNormal" style="margin-left: 0.75in;">MAP1S DFHMSD </p> <p class="MsoNormal" style="margin-left: 0.75in;">TYPE=MAP,MODE=INOUT,CTRL=(FREEKB,FRSET),LANG=COBOL, X TIOAPFX=YESMAP1 </p> <p class="MsoNormal" style="margin-left: 0.75in;">DFHMDI SIZE=(24,80) DFHMDF POS=(5,1),ATTRB=UNPROT,LENGTH=1FIELD2 DFHMDF </p> <p class="MsoNormal" style="margin-left: 0.75in;">POS=(5,3),ATTRB=UNPROT,LENGTH=1FIELD3 DFHMDF </p> <p class="MsoNormal" style="margin-left: 0.75in;">POS=(5,5),ATTRB=(UNPROT,IC),LENGTH=1FIELD4 DFHMDF </p> <p class="MsoNormal" style="margin-left: 0.75in;">POS=(5,7),ATTRB=ASKIP,LENGTH=1FIELD5 DFHMDF </p> <p class="MsoNormal" style="margin-left: 0.75in;">POS=(5,9),ATTRB=UNPROT,LENGTH=1,INITIAL='Z' DFHMDF </p> <p class="MsoNormal" style="margin-left: 0.75in;">POS=(5,11),ATTRB=ASKIP,LENGTH=1 DFHMSD TYPE=FINAL </p> <p class="MsoNormal" style="margin-left: 0.5in;">A) In the field with a POS=(5,1) B) In FIELD2. C) In FIELD3. D) In FIELD4. E) In FIELD5.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A308)<span style=""> </span>In FIELD5</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q309)<span style=""> </span>How can you accomplish breakpoint in intertest?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A309)<span style=""> </span>U-for unconditional breakpoint, C-for conditional breakpoint, and A-for automatic breakpoint</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q310)<span style=""> </span>How many ways are there for initiating a transaction? what are they?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A310)<span style=""> </span>There are six ways in initiating a transaction.they are as follows.</p> <p class="MsoNormal" style="margin-left: 0.5in;">1.<span style=""> </span>embedding four character transid on the top left most corner of the screen.</p> <p class="MsoNormal" style="margin-left: 0.5in;">2.<span style=""> </span>making use of EXEC CICS START TRANSID ( )</p> <p class="MsoNormal" style="margin-left: 0.5in;">3.<span style=""> </span>making use of EXEC CICS RETURN TRANSID ( )</p> <p class="MsoNormal" style="margin-left: 0.5in;">4.<span style=""> </span>By defining the transid in DCT (destination control table) to enable ATI (AUTOMATIC TASK INITIATION)</p> <p class="MsoNormal" style="margin-left: 0.5in;">5.<span style=""> </span>Making use of PLT ( program list table)</p> <p class="MsoNormal" style="margin-left: 0.5in;">6.<span style=""> </span>By associating four character transid in PCT (program control table) </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q311)<span style=""> </span>Which type of TDQ is read destructive?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A311)<span style=""> </span>Intrapartition TDQ is read destructive. extra partition tdq is not read destructive.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q312)<span style=""> </span>The error code AEIV?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A312)<span style=""> </span>This is the error code for length, if length of the source data is more than the receiving field, This error will occur. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q313)<span style=""> </span>What is the size of commarea<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt;">A313)<span style=""> </span>The default commarea size is 65k.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q314)<span style=""> </span>What is ASRAABEND in CICS?<o:p></o:p></b></p> <p class="MsoNormal">A314)<span style=""> </span>It occurs when program interruption takes place. e.g.: when alphanumeric string moved to numeric data item OR </p> <p class="MsoNormal" style="text-indent: 0.5in;">when arithmetic calculations performed on nonnumeric data item OR when an attempt made to read an occurrence </p> <p class="MsoNormal" style="text-indent: 0.5in;">of a table beyond the defined occurrences. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q315)<span style=""> </span>What is a two Phase commit in CICS?<o:p></o:p></b></p> <p class="MsoNormal">A315)<span style=""> </span>This occurs when a programmer Issues a Exec CICS Syncpoint command. this is called two phase because CICS </p> <p class="MsoNormal" style="text-indent: 0.5in;">will first commit changes to the resources under its control like VSAM files. and the DB2 changes are </p> <p class="MsoNormal" style="text-indent: 0.5in;">committed. Usually CICS signals Db2 to complete the next phase and release all the locks.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q316)<span style=""> </span>Difference between TSQ & TDQ<o:p></o:p></b></p> <p class="MsoNormal">A316)<span style=""> </span>TDQ is read destructive, TSQ is not. TSQ can be created dynamically, TDQ cannot be created dynamically. TSQ is </p> <p class="MsoNormal" style="text-indent: 0.5in;">temporary in nature (i.e. it will be deleted when the program finishes execution, unless it is made permanent by </p> <p class="MsoNormal" style="text-indent: 0.5in;">making a entry in the Temporary Storage Table), TDQ is not. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q317)<span style=""> </span>What is ENQ in CICS?<o:p></o:p></b></p> <p class="MsoNormal">A317)<span style=""> </span>If any one want to restrict Trans-Id to single user, enter trans-id with ENQ. It won't allow any one else to use the </p> <p class="MsoNormal" style="text-indent: 0.5in;">same trans-id. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q318)<span style=""> </span>In SYMBOLIC Cursor Positioning after moving -1 to the length field also the cursor is not positioned in that particular field. Give reasons?<o:p></o:p></b></p> <p class="MsoNormal">A318)<span style=""> </span>You have to explicitly specify the word CURSOR between your EXEC CICS and END-EXEC in the program.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q319)<span style=""> </span>What does EIB mean?<o:p></o:p></b></p> <p class="MsoNormal">A319)<span style=""> </span>The EIB is the EXECUTIVE INTERFACE BLOCK. It is not the EXECUTE INTERFACE BLOCK. All TP </p> <p class="MsoNormal" style="text-indent: 0.5in;">monitors or transaction processors are know as EXECUTIVEs as they carry out process on behalf of a program </p> <p class="MsoNormal" style="text-indent: 0.5in;">module. CICS and DB2 are executives.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q320)<span style=""> </span>How many exceptional condition can be given in a HANDLE CONDITION? <o:p></o:p></b></p> <p class="MsoNormal">A320)<span style=""> </span>Max. of 12 exceptional conditions can be given in a single HANDLE CONDITION.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q321)<span style=""> </span>How do you access the records randomly in TSQ ?<o:p></o:p></b></p> <p class="MsoNormal">A321)<span style=""> </span>By specifying the ITEM option</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q322)<span style=""> </span>What command do you issue to delete a record in a transient data queue ?<o:p></o:p></b></p> <p class="MsoNormal">A322)<span style=""> </span>READQ TD, the read is destructive.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q323)<span style=""> </span>What are different ways of initiating transaction in CICS ?<o:p></o:p></b></p> <p class="MsoNormal">A323)<span style=""> </span>We can initiate cics transaction a) by giving transaction id b) by giving cics start command c) automatic task </p> <p class="MsoNormal" style="text-indent: 0.5in;">initiation.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q324)<span style=""> </span>What is the difference between LINK and XCTL ?<o:p></o:p></b></p> <p class="MsoNormal">A324)<span style=""> </span>The XCTL command passes control to another program, but the resources requested by the first program may still </p> <p class="MsoNormal" style="text-indent: 0.5in;">be allocated. A task does not end until a RETURN statement is executed. While in LINK command, program control </p> <p class="MsoNormal" style="text-indent: 0.5in;">resumes its instruction following the LINK parameter. The disadvantage of LINK is that it requires that both the </p> <p class="MsoNormal" style="text-indent: 0.5in;">calling program and the called program remain in main memory even though both are no longer needed.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q325)<span style=""> </span>What is the difference between CICS Program Control Table (PCT) and CICS Processing Program Table (PPT) ?<o:p></o:p></b></p> <p class="MsoNormal">A325)<span style=""> </span>PCT contains a list of valid transaction ID. Each transaction ID is paired with the name of the program ,CICS will </p> <p class="MsoNormal" style="text-indent: 0.5in;">load and execute when the transaction is invoked. On the other hand, PPT indicates each program's location which </p> <p class="MsoNormal" style="text-indent: 0.5in;">pertains to a storage address if the program has already been loaded or a disk location if the program hasn't been </p> <p class="MsoNormal" style="text-indent: 0.5in;">loaded. PPT will also be used to determine whether it will load a new copy of the program when the transaction is </p> <p class="MsoNormal" style="text-indent: 0.5in;">invoked.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q326)<span style=""> </span>What are the 3 common ways to create maps?<o:p></o:p></b></p> <p class="MsoNormal">A326)<span style=""> </span>The first way is to code a physical map and then code a matching symbolic map in your COBOL program. The </p> <p class="MsoNormal" style="text-indent: 0.5in;">second way to create a physical map along with a matching symbolic map is to code only the physical map using the </p> <p class="MsoNormal" style="text-indent: 0.5in;">&SYSPARM option, CICS will automatically create a member in a COPY library. And the third way is to use a </p> <p class="MsoNormal" style="text-indent: 0.5in;">map generator such as SDF (Screen Definition Facility)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q327)<span style=""> </span>What is Quasi-reentrancy?<o:p></o:p></b></p> <p class="MsoNormal">A327)<span style=""> </span>There are times when many users are concurrently using the same program, this is what we call MultiThreading. For </p> <p class="MsoNormal" style="text-indent: 0.5in;">example, 50 users are using program A, CICS will provide 50 Working storage for that program but one Procedure </p> <p class="MsoNormal" style="text-indent: 0.5in;">Division. And this technique is known as quasi-reentrancy</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q328)<span style=""> </span>What is the difference between a physical BMS mapset and a logical BMS mapset?<o:p></o:p></b></p> <p class="MsoNormal">A328)<span style=""> </span>The physical mapset is a load module used to map the data to the screen at execution time. The symbolic map is the </p> <p class="MsoNormal" style="text-indent: 0.5in;">actual copybook member used in the program to reference the input and output fields on the screen.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q329)<span style=""> </span>How To Set MDT(Modified Data Tag) Thru Application Program?(Dynamically)?<o:p></o:p></b></p> <p class="MsoNormal">A329)<span style=""> </span>You have to move the following macro DFHBMFSE to the Attribute field of that particular Variable.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q330)<span style=""> </span>What CICS facilities can you use to save data between the transactions?<o:p></o:p></b></p> <p class="MsoNormal">A330)<span style=""> </span>COMMONAREA, TSQ & TDQ.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q331)<span style=""> </span>How would you release control of the record in a READ for UPDATE?<o:p></o:p></b></p> <p class="MsoNormal">A331)<span style=""> </span>By issuing a REWRITE,DELETE, or UNLOCK command or by ending the task.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q332)<span style=""> </span>What is the difference between a RETURN with TRANSID and XCTL<span style=""> </span>?For example prog. A is issuing REUTRN with TRANSID to prog B. Prog A. is issuing XCTL to prog B?<o:p></o:p></b></p> <p class="MsoNormal">A332)<span style=""> </span>In RETURN with TRANSID the control goes to the CICS region and the user have to transfer the control to prog. B </p> <p class="MsoNormal" style="text-indent: 0.5in;">by pressing any of the AID KEYS.In XCTL the control is directly transfer to prog. B.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q333)<span style=""> </span>What will be the length of the eibcalen ,if the transaction is used to cics first time?<o:p></o:p></b></p> <p class="MsoNormal">A333)<span style=""> </span>The length will be 0(zero).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q334)<span style=""> </span>What is DFHEIBLK?<o:p></o:p></b></p> <p class="MsoNormal">A334)<span style=""> </span>DFHEIBLK is Execute Interface Block. It is placed in the linkage section automatically by CICS translator program. </p> <p class="MsoNormal" style="text-indent: 0.5in;">It must be the first entry in linkage section. CICS places values prior to giving control to the program and we can </p> <p class="MsoNormal" style="text-indent: 0.5in;">find almost any information about our transaction.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q335)<span style=""> </span>What is the difference between the XCTL and LINK commands?<o:p></o:p></b></p> <p class="MsoNormal">A335)<span style=""> </span>The LINK command anticipates return of control to the calling program, the XCTL command does not. Return to </p> <p class="MsoNormal" style="text-indent: 0.5in;">the calling program will be the result of the CICS RETURN command, specifying TRANSID(name of the calling </p> <p class="MsoNormal" style="text-indent: 0.5in;">program).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q336)<span style=""> </span>What CICS command would you use to read a VSAM KSDS sequentially in ascending order?<o:p></o:p></b></p> <p class="MsoNormal">A336)<span style=""> </span>First issue a STARTBR(start browse), which will position the browse at the desired record. Retrieve records by </p> <p class="MsoNormal" style="text-indent: 0.5in;">using subsequent READNEXT commands. Indicate the end of sequential processing with the ENDBR command. If </p> <p class="MsoNormal" style="text-indent: 0.5in;">the generic key is specified in the STARTBR command positioning in the file will be before the first record </p> <p class="MsoNormal" style="text-indent: 0.5in;">satisfying the generic key.For reading in descending order use the READPREV instead of READNEXT.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q337)<span style=""> </span>What is the difference between pseudo-conversational and conversational?<o:p></o:p></b></p> <p class="MsoNormal">A337)<span style=""> </span>Pseudo-conversational will start a new task for each input. By coding a CICS RETURN command specifying ‘</p> <p class="MsoNormal" style="text-indent: 0.5in;">TRANSID(itself). Conversational will have an active task during the duration of the data entry.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q338)<span style=""> </span>What is the COMMAREA(communications area)?<o:p></o:p></b></p> <p class="MsoNormal">A338)<span style=""> </span>An area used to transfer data between different programs or between subsequent executions of the same program. </p> <p class="MsoNormal" style="text-indent: 0.5in;">Needs to be defined in the Linkage Section.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">1.<span style=""> </span>What are the pros and cons of<span style=""> </span>Conversation Vs Pseudo conversation programming ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">2.<span style=""> </span>Explain IPC mechanisms and means in CICS?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">3.<span style=""> </span>Can we use EXEC SQL COMMIT/ROLLBACK in CICS? If so how? if not what are<span style=""> </span>the alternatives?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">4.<span style=""> </span>What<span style=""> </span>are<span style=""> </span>the<span style=""> </span>advantages<span style=""> </span>of<span style=""> </span>TDQ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">5.<span style=""> </span>How<span style=""> </span>do you<span style=""> </span>implement<span style=""> </span>locking<span style=""> </span>in<span style=""> </span>CICS?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">6.<span style=""> </span>What<span style=""> </span>is<span style=""> </span>multithreading?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">7.<span style=""> </span>Name 3 cobol commands<span style=""> </span>that cannot be used with CICS</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">8.<span style=""> </span>Why is it important not to execute<span style=""> </span>a STOP RUN in CICS ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">9.<span style=""> </span>How are programs reinitiated under CICS ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">10.<span style=""> </span>Why must all CICS programs have a Linkage Section ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">11.<span style=""> </span>Why doesn’t CICS use the Cobol<span style=""> </span>Open and Close statements ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">12.<span style=""> </span>What is the difference between a Symbolic map and Physical map ? </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">13.<span style=""> </span>If<span style=""> </span>a physical map has six variable fields and nine constant fields, how many fields must the symbolic map has ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">14.<span style=""> </span>In which column must label begin ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">15.<span style=""> </span>Code the parameter that will assign a start value to the filed</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">16.<span style=""> </span>Can a program change protected field ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">17.<span style=""> </span>How many<span style=""> </span>columns will be needed<span style=""> </span>on a screen to display a protected field that has 4 bytes of data</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">18.<span style=""> </span>How many columns will be needed to on a screen to display an unprotected field that has 4 bytes of data</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">19.<span style=""> </span>What are the 2 categories of extended attributes ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">20.<span style=""> </span>When<span style=""> </span>using extended attributes , how many attribute bytes will be needed for each symbolic map field ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">21.<span style=""> </span>How is the<span style=""> </span>stopper byte different from<span style=""> </span>an autoskip byte ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">22.<span style=""> </span>By which<span style=""> </span>command do you preserve working storage fields ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">23.<span style=""> </span>How do you restore working storage fields ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">24.<span style=""> </span>Which command will release all the resources used by the program ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">25.<span style=""> </span>What<span style=""> </span>is the relationship between<span style=""> </span>EIBCALEN and DFHCOMMAREA ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">26.<span style=""> </span>How will you place cursor on a field called<span style=""> </span>‘EMPNO’.<span style=""> </span>This field belongs to mapset ‘MAPEMPG’ and map<span style=""> </span>‘MAPEMPM’ and<span style=""> </span>Symbolic map ‘Empid-Rec’ ?<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">27.<span style=""> </span>How will the program know which key has been pressed.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">28.<span style=""> </span>By which CICS defined field<span style=""> </span>can you determine the position of the cursor on the map ? </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">29.<span style=""> </span>What is the function of a<span style=""> </span>STARTBR ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">30.<span style=""> </span>Assume that a file contains 100 records ,If one start browse and 99 read next<span style=""> </span>commands have been executed , which record will currently be in memory ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">31.<span style=""> </span>True or False ? . In a browse program the program should remain active while a user is viewing a screen </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">32.<span style=""> </span>Which condition will be triggered if a user attempts to start a browse beyond end-of file ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">33.<span style=""> </span>Which condition will be triggered if a user attempts to continue reading backward beyond the beginning of file?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">34.<span style=""> </span>What will happen if a user enters a record key that is lower than the lowest record key in a file ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">35.<span style=""> </span>How can<span style=""> </span>this answer be affected by the Start-Browse option ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">36.<span style=""> </span>Describe a method for beginning a browse at the beginning of a file .</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">37.<span style=""> </span>When is the condition of<span style=""> </span>NOTFND not an error<span style=""> </span>?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">38.<span style=""> </span>What will happen<span style=""> </span>if<span style=""> </span>you code a send map command<span style=""> </span>or<span style=""> </span>a return statement with the same transid option<span style=""> </span>if a MAPFAIL occurs ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">39.<span style=""> </span>Why is the Enter Key option<span style=""> </span>explicitly coded in the Handle Aid command ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">40.<span style=""> </span>What happens if you omit labels on a HANDLE Condition command ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">41.<span style=""> </span>What is the difference between a NOHANDLE<span style=""> </span>and an IGNORE<span style=""> </span>condition ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">42.<span style=""> </span>What are the 3 broad ways that a program can give up control ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">43.<span style=""> </span>What is the difference between<span style=""> </span>XCTL and<span style=""> </span>RETURN.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">44.<span style=""> </span>What happens if a<span style=""> </span>DELETEQ TS command<span style=""> </span>is executed ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">45.<span style=""> </span>Why is<span style=""> </span>the terminal<span style=""> </span>ID<span style=""> </span>often used as a part of<span style=""> </span>a TSQ ?<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">46.<span style=""> </span>What is the maximum length of a TSQ name ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">47.<span style=""> </span>What is the maximum length of a TDQ name ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">48.<span style=""> </span>Is it necessary to define a TSQ in a CICS table<span style=""> </span>?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">49.<span style=""> </span>Can you read the<span style=""> </span>5th<span style=""> </span>item<span style=""> </span>of<span style=""> </span>a<span style=""> </span>TDQ<span style=""> </span>?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">50.<span style=""> </span>Where<span style=""> </span>are TDQ’s defined ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">51.<span style=""> </span>Can you delete<span style=""> </span>an individual record from a TSQ<span style=""> </span>or<span style=""> </span>a<span style=""> </span>TDQ<span style=""> </span>?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">52.<span style=""> </span>Can you<span style=""> </span>update a record in a TDQ ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">53.<span style=""> </span>Why<span style=""> </span>is<span style=""> </span>it necessary to update PPT ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">54.<span style=""> </span>In which CICS table do we define the transaction for a program?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">55.<span style=""> </span>Distinguish between TSQ and TDQ.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">56.<span style=""> </span>What is DFHBMSCA?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">57.<span style=""> </span>What is Pseudo conversational programming?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">58.<span style=""> </span>Name 3 cobol commands <span style=""> </span>that cannot be used with CICS</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">59.<span style=""> </span>If<span style=""> </span>a physical map has<span style=""> </span>six variable fields and nine constant fields , how many fields must the symbolic map has ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">60.<span style=""> </span>In which column must label begin ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">61.<span style=""> </span>Code the parameter that will assign a start value to the filed</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">62.<span style=""> </span>How many<span style=""> </span>columns will be needed<span style=""> </span>on a screen to display a protected field that has 4 bytes of data?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">63.<span style=""> </span>How many columns will be needed to on a screen to display an unprotected field that has 4 bytes of data</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">64.<span style=""> </span>What are the 2 categories of extended attributes ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">65.<span style=""> </span>When<span style=""> </span>using extended attributes , how many attribute bytes will be needed for each symbolic map field ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">66.<span style=""> </span>By which<span style=""> </span>command do you preserve working storage fields ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">67.<span style=""> </span>How do you restore working storage fields ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">68.<span style=""> </span>Which command will release all the resources used by the program ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">69.<span style=""> </span>What<span style=""> </span>is the relationship between<span style=""> </span>EIBCALEN and DFHCOMMAREA ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">70.<span style=""> </span>How will the program know which key has been pressed.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">71.<span style=""> </span>What is the function of a<span style=""> </span>STARTBR ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">72.<span style=""> </span>Assume that a file contains 100 records ,If one start browse and 99 read next<span style=""> </span>commands have been executed , which record will currently be in memory ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">73.<span style=""> </span>True or False ? . In a browse program the program should remain active while a user is viewing a screen </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">74.<span style=""> </span>Which condition will be triggered if a user attempts to start a browse beyond end-of file ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">75.<span style=""> </span>Which condition will be triggered if a user attempts to continue reading backward beyond the beginning of file?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">76.<span style=""> </span>What will happen if a user enters a record key that is lower than the lowest record key in a file ? How can<span style=""> </span>this answer be affected by the Start-Browse option ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">77.<span style=""> </span>Describe a method for beginning a browse at the beginning of a file .</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">78.<span style=""> </span>When is the condition of<span style=""> </span>NOTFND not an error<span style=""> </span>?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">79.<span style=""> </span>What will happen<span style=""> </span>if<span style=""> </span>you code a send map command<span style=""> </span>or<span style=""> </span>a return statement with the same transid option<span style=""> </span>if a MAPFAIL occurs ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">80.<span style=""> </span>Why is the Enter Key option<span style=""> </span>explicitly coded in the Handle Aid command ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">81.<span style=""> </span>What happens if you omit labels on a HANDLE Condition command ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">82.<span style=""> </span>What is the difference between a NOHANDLE<span style=""> </span>and an IGNORE<span style=""> </span>condition ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">83.<span style=""> </span>What are the 3 broad ways that a program can give up control ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">84.<span style=""> </span>What is the difference between<span style=""> </span>XCTL and<span style=""> </span>RETURN.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">85.<span style=""> </span>What happens if a<span style=""> </span>DELETEQ TS command<span style=""> </span>is executed ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">86.<span style=""> </span>Why is<span style=""> </span>the terminal<span style=""> </span>ID<span style=""> </span>often used as a part of<span style=""> </span>a TSQ ?<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">87.<span style=""> </span>What is the maximum length of a TSQ name ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">88.<span style=""> </span>What is the maximum length of a TDQ name ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">89.<span style=""> </span>Is it necessary to define a TSQ in a CICS table<span style=""> </span>?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">90.<span style=""> </span>Can you read the<span style=""> </span>5th<span style=""> </span>item<span style=""> </span>of<span style=""> </span>a<span style=""> </span>TDQ<span style=""> </span>?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">91.<span style=""> </span>Where<span style=""> </span>are TDQ’s defined ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">92.<span style=""> </span>Can you delete<span style=""> </span>an individual record from a TSQ<span style=""> </span>or<span style=""> </span>a<span style=""> </span>TDQ<span style=""> </span>?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">93.<span style=""> </span>Can you<span style=""> </span>update a record in a TDQ ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">94.<span style=""> </span>Why<span style=""> </span>is<span style=""> </span>it necessary to update PPT ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">95.<span style=""> </span>In which CICS table do we define the transaction<span style=""> </span>for a program ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">96.<span style=""> </span>How do you do a browse Operation<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">97.<span style=""> </span>If you have a new map, new program, and a newfile, which CICS tables do you update?<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">98.<span style=""> </span>How to read a TS Queue<span style=""> </span><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">99.<span style=""> </span>Differentiate between XCTL and LINK<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">100.<span style=""> </span>What is START ?<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">101.<span style=""> </span>How do you update a file in CICS<span style=""> </span>In JCL,<span style=""> </span><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">102.<span style=""> </span>What is a temporary dataset?<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">103.<span style=""> </span>What is a PROC, and how is it different from a JCL<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">104.<span style=""> </span>Differentiate instream procedures versus Catalogued procedures<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">105.<span style=""> </span>What is difference between TDQ and TSQ ?<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">106.<span style=""> </span>How do interval control transactions invoke themselves<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">107.<span style=""> </span>How do we read<span style=""> </span>a VSAM file in CICS<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">108.<span style=""> </span>What are some of imp. CICS commands and their parameters<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">109.<span style=""> </span>How do you protect a field from being overlaid? - GS</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">110.<span style=""> </span>What are SEND MAP MAPONLY & SEND MAP DATAONLY ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">111.<span style=""> </span>What are the restrictions while using GETMAIN and FREEMAIN? - GS</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">112.<span style=""> </span>I have TSQ with 15 items.<span style=""> </span>I want to delete the 10th item.<span style=""> </span>How do I do that?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">113.<span style=""> </span>How do I find the name of the CICS region inside my COBOL program?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">114.<span style=""> </span>Can a CICS region be attached to more than one DB2 subsystem ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">115.<span style=""> </span>What determines the DB2 subsystem to which a particular CICS region is attached ?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">116.<span style=""> </span>What is the DSNC transaction used for ?</p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-2397098403204255122008-07-03T04:08:00.000-07:002008-12-23T21:45:21.641-08:00Tips on Mainframes<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="time"></o:smarttagtype><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]><object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id="ieooui"></object> <style> st1\:*{behavior:url(#ieooui) } </style> <![endif]--><!--[if !supportAnnotations]--><style id="dynCom" type="text/css"><!-- --></style><script language="JavaScript"><!-- function msoCommentShow(anchor_id, com_id) { if(msoBrowserCheck()) { c = document.all(com_id); a = document.all(anchor_id); if (null != c && null == c.length && null != a && null == a.length) { var cw = c.offsetWidth; var ch = c.offsetHeight; var aw = a.offsetWidth; var ah = a.offsetHeight; var x = a.offsetLeft; var y = a.offsetTop; var el = a; while (el.tagName != "BODY") { el = el.offsetParent; x = x + el.offsetLeft; y = y + el.offsetTop; } var bw = document.body.clientWidth; var bh = document.body.clientHeight; var bsl = document.body.scrollLeft; var bst = document.body.scrollTop; if (x + cw + ah / 2 > bw + bsl && x + aw - ah / 2 - cw >= bsl ) { c.style.left = x + aw - ah / 2 - cw; } else { c.style.left = x + ah / 2; } if (y + ch + ah / 2 > bh + bst && y + ah / 2 - ch >= bst ) { c.style.top = y + ah / 2 - ch; } else { c.style.top = y + ah / 2; } c.style.visibility = "visible"; } } } function msoCommentHide(com_id) { if(msoBrowserCheck()) { c = document.all(com_id); if (null != c && null == c.length) { c.style.visibility = "hidden"; c.style.left = -1000; c.style.top = -1000; } } } function msoBrowserCheck() { ms = navigator.appVersion.indexOf("MSIE"); vers = navigator.appVersion.substring(ms + 5, ms + 6); ie4 = (ms > 0) && (parseInt(vers) >= 4); return ie4; } if (msoBrowserCheck()) { document.styleSheets.dynCom.addRule(".msocomanchor","background: infobackground"); document.styleSheets.dynCom.addRule(".msocomoff","display: none"); document.styleSheets.dynCom.addRule(".msocomtxt","visibility: hidden"); document.styleSheets.dynCom.addRule(".msocomtxt","position: absolute"); document.styleSheets.dynCom.addRule(".msocomtxt","top: -1000"); document.styleSheets.dynCom.addRule(".msocomtxt","left: -1000"); document.styleSheets.dynCom.addRule(".msocomtxt","width: 33%"); document.styleSheets.dynCom.addRule(".msocomtxt","background: infobackground"); document.styleSheets.dynCom.addRule(".msocomtxt","color: infotext"); document.styleSheets.dynCom.addRule(".msocomtxt","border-top: 1pt solid threedlightshadow"); document.styleSheets.dynCom.addRule(".msocomtxt","border-right: 2pt solid threedshadow"); document.styleSheets.dynCom.addRule(".msocomtxt","border-bottom: 2pt solid threedshadow"); document.styleSheets.dynCom.addRule(".msocomtxt","border-left: 1pt solid threedlightshadow"); document.styleSheets.dynCom.addRule(".msocomtxt","padding: 3pt 3pt 3pt 3pt"); document.styleSheets.dynCom.addRule(".msocomtxt","z-index: 100"); } // --></script><!--[endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0; mso-font-charset:2; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:宋体; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} h1 {mso-style-next:Normal; margin:0in; margin-bottom:.0001pt; text-indent:3.0pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:1; font-size:12.0pt; mso-bidi-font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-font-kerning:0pt; mso-fareast-language:EN-US; mso-bidi-font-weight:normal;} h2 {mso-style-next:Normal; margin-top:12.0pt; margin-right:0in; margin-bottom:3.0pt; margin-left:0in; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:2; font-size:12.0pt; mso-bidi-font-size:10.0pt; font-family:Arial; mso-fareast-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman"; mso-fareast-language:EN-US; mso-bidi-font-weight:normal; font-style:italic; mso-bidi-font-style:normal;} p.MsoCommentText, li.MsoCommentText, div.MsoCommentText {mso-style-noshow:yes; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} span.MsoCommentReference {mso-style-noshow:yes; mso-ansi-font-size:8.0pt;} p.MsoTitle, li.MsoTitle, div.MsoTitle {margin:0in; margin-bottom:.0001pt; text-align:center; mso-pagination:widow-orphan; font-size:14.0pt; mso-bidi-font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US; font-weight:bold; mso-bidi-font-weight:normal; text-decoration:underline; text-underline:single;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:-2; mso-list-type:simple; mso-list-template-ids:-1;} @list l0:level1 {mso-level-start-at:0; mso-level-text:*; mso-level-tab-stop:none; mso-level-number-position:left; margin-left:0in; text-indent:0in;} @list l1 {mso-list-id:564143618; mso-list-type:simple; mso-list-template-ids:905735994;} @list l1:level1 {mso-level-tab-stop:.25in; mso-level-number-position:left; margin-left:.25in; text-indent:-.25in; mso-ansi-font-weight:bold; mso-ansi-font-style:normal;} @list l2 {mso-list-id:648242801; mso-list-type:simple; mso-list-template-ids:67698703;} @list l2:level1 {mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l3 {mso-list-id:897404179; mso-list-template-ids:429399542;} @list l3:level1 {mso-level-tab-stop:.25in; mso-level-number-position:left; margin-left:.25in; text-indent:-.25in; mso-ansi-font-weight:bold; mso-ansi-font-style:normal;} @list l3:level2 {mso-level-number-format:alpha-upper; mso-level-tab-stop:.5in; mso-level-number-position:left; margin-left:.5in; text-indent:-.25in; mso-ansi-font-weight:bold; mso-ansi-font-style:normal;} @list l3:level3 {mso-level-number-format:roman-lower; mso-level-text:"%3\)"; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l3:level4 {mso-level-text:"\(%4\)"; mso-level-tab-stop:1.0in; mso-level-number-position:left; margin-left:1.0in; text-indent:-.25in;} @list l3:level5 {mso-level-number-format:alpha-lower; mso-level-text:"\(%5\)"; mso-level-tab-stop:1.25in; mso-level-number-position:left; margin-left:1.25in; text-indent:-.25in;} @list l3:level6 {mso-level-number-format:roman-lower; mso-level-text:"\(%6\)"; mso-level-tab-stop:1.5in; mso-level-number-position:left; margin-left:1.5in; text-indent:-.25in;} @list l3:level7 {mso-level-tab-stop:1.75in; mso-level-number-position:left; margin-left:1.75in; text-indent:-.25in;} @list l3:level8 {mso-level-number-format:alpha-lower; mso-level-tab-stop:2.0in; mso-level-number-position:left; margin-left:2.0in; text-indent:-.25in;} @list l3:level9 {mso-level-number-format:roman-lower; mso-level-tab-stop:2.25in; mso-level-number-position:left; margin-left:2.25in; text-indent:-.25in;} @list l4 {mso-list-id:1109006959; mso-list-type:simple; mso-list-template-ids:67698703;} @list l4:level1 {mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5 {mso-list-id:1248925518; mso-list-type:simple; mso-list-template-ids:67698703;} @list l5:level1 {mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6 {mso-list-id:1298759459; mso-list-type:simple; mso-list-template-ids:67698703;} @list l6:level1 {mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7 {mso-list-id:1993214333; mso-list-type:simple; mso-list-template-ids:67698703;} @list l7:level1 {mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo4 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo5 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo6 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo7 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo8 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo9 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo10 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo11 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo12 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo13 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo14 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo15 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo16 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo17 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo18 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo19 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo20 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo21 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo22 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo23 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo24 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo25 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo26 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo27 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo28 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo29 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo30 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo31 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo32 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo33 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo34 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo35 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo36 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo37 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo38 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo39 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo40 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo41 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo42 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo43 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo44 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo45 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo46 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo47 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo48 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo49 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo50 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo51 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo52 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo53 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo54 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo55 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo56 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo57 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo58 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l7:level1 lfo59 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo64 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo65 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo66 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo67 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo68 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo69 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo70 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo71 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo72 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo73 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo74 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo75 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo76 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo77 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo78 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo79 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo80 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo81 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo82 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo83 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo84 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo85 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo86 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo87 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo88 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo89 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo90 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo91 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo92 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo93 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo94 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo95 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo96 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo97 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo98 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo99 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo100 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo101 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo102 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo103 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo104 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo105 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo106 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo107 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo108 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo109 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo110 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo111 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo112 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo113 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo114 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo115 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo116 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo117 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo118 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo119 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo120 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo121 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo122 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo123 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo124 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo125 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo126 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo127 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo128 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo129 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo130 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo131 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo132 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo133 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo134 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo135 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo136 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo137 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo138 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo139 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo140 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l0:level1 lfo141 {mso-level-start-at:1; mso-level-number-format:bullet; mso-level-numbering:continue; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.75in; text-indent:-.25in; font-family:Symbol;} @list l6:level1 lfo142 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo143 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo144 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo145 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo146 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo147 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo148 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo149 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo150 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo151 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo152 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo153 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo154 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo155 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo156 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo157 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo158 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo159 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo160 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo161 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo162 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo163 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo164 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo165 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo166 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo167 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo168 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo169 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo170 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo171 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo172 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo173 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo174 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo175 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo176 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo177 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo178 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l6:level1 lfo179 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo180 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo181 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo182 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo183 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo184 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo185 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo186 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo187 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo188 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo189 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo190 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo191 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo192 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo193 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo194 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo195 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo196 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo197 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo198 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo199 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo200 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo201 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo202 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo203 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo204 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo205 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo206 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo207 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo208 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo209 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo210 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo211 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo212 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo213 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo214 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo215 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo216 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l5:level1 lfo217 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l0:level1 lfo218 {mso-level-start-at:1; mso-level-number-format:bullet; mso-level-numbering:continue; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.75in; text-indent:-.25in; font-family:Symbol;} @list l4:level1 lfo219 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} @list l2:level1 lfo220 {mso-level-numbering:continue; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:.25in; text-indent:-.25in;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <h2 style="text-align: center;" align="center"><u><span style="font-style: normal;">
<br /><o:p></o:p></span></u></h2> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><span style="font-size: 12pt;">This BOK is organised in the from of questions and answers. These are some tips on the TSO environment which makes working on TSO easier.<o:p></o:p></span></p> <h2><span style="font-style: normal;">ISPF Environment<o:p></o:p></span></h2> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I create multiple instances of ISPF sessions? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use PDF command from the TSO panel, which will initiate a new ISPF session, Type<span style=""> </span>=x<span style=""> </span>to comeback to previous ISPF session. You can also type 'start' to initiate a new ISPF session, in this case you have to swap to go to the other session. You can have as many as 6 sessions open.( This command is installation specific)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I want to clear off the PF keys that are shown at the bottom of my ISPF panels. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use command ‘PFSHOW OFF’ on command line. If you want to turn it on, issue ‘<st1:place st="on"><st1:city st="on">PFSHOW</st1:city> <st1:state st="on">ON</st1:state></st1:place>’. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I typed ‘/’ before pressing some Pfkey and this takes me to some other session <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;"><span style=""> </span>Character ‘/’ is used as a jump character for going to TPX screen in most of the installations. Therefore typing ‘/’ preceded by a PFkey is as good as going to TPX main menu and going to the corresponding session.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I see someone else’s jobs in IOF/SDSF? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">In IOF menu give '<i style="">userid</i>' in SCOPE field. In SDF you may have to type ‘ u xxxxx’ where xxxxx is the id or some other option will be available.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I compare a specific column in two files on ISPF?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Go to Option 3.13 (SUPERCE) and type 'edit'. You can give your compare options here. Also, you can specify many other options such as ‘treat certain records as comments’ etc.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I recover a Dataset I deleted by mistake, or maybe overwrote? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use the TSO command HRECOVER, you’ll have to mention the generation or date of the backup you want restored. You can restore it to a new dataset. Usually, HRECOVER option can be found in ‘HSM’ utility panel.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do you allocate a file similar to existing production file thought a job?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Specify production file as Model dataset. If you want to allocate a file similar to another file you can use the LIKE command and override any DCB parameter that you want different in your file.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">8.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I create a sequential file from VSAM file? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use IDCAMS utility with the repro command. You can create a VSAM from a sequential file: the only condition is the sequential file should be sorted on the key fields.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">9.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I compare VSAM datasets?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use either compare option in file-aid or ‘comparex’ utility or ‘data-xpert’ utility.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">10.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I know which version of Cobol compiler I am using? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Look at<span style=""> </span>the first line of your compilation listing<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">11.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I find out which base cluster does an alternate index file belong to? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Display information in file aid for the '.PATH' file which will show the base cluster as well as corresponding alt index file.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">12.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">If I am using 3.4 and try to create a new member in an empty PDS, I can’t ? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use option 2 and the new member name.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">13.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I got a B37 abend when tried to save the file.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Your PDS is out of space. Start another session open this PDS in 3.4 and put a ‘z’ next to it. It will compress the PDS. All x37 abends are ‘out of space’ situations.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">14.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I got an error message ‘NO SPACE IN DIRECTORY’ while creating a member in PDS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Your PDS can no longer accommodate more members in it. You need to increase the<span style=""> </span>‘Directory blocks’. Each directory block can hold at least 4 members.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">15.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I want to copy only the first 500 records of my file.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use file-aid or dataexpert and give the number of records in the option.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">16.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">The dataset I want is migrated, but I don’t want my screen to be frozen when I recall it.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Type HRECALL next to the dataset name in 3.4<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">17.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I want to send a message to another person logged on to TSO <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Say ‘ TSO SEND ‘message line’ U(user_id)’. If the person in not logged on but you want to send a message which he can read when he logs on say ‘ TSO SEND ‘message line’ U(user_id) LOGON’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">18.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I want to see the LIMIT of a GDG.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use LISTCAT in TSO or File-Aid option 3.2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">19.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I want to know the % free and other statistics of my dataset.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">If you press ‘right or PF11’ on your 3.4 listing you can see the dataset statistics or use option 3.1 and I<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">20.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I keep using certain commands that I want to save.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">The commands you use regularly can be saved as a function key. E.g. – if you often change a JCL, save it, submit it and then go to the job spool. You could save a PF key as ‘save; sub; =IOF’ . To do this type ‘KEYS’ on ‘command line’ and make the necessary entries.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">21.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I am not able to delete a dataset that resides on a tape.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Yes. You cannot delete/rename a tape dataset. Only you can uncatalog it. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h1>ISPF Editor</h1> <p class="MsoNormal" style="text-indent: 3pt;"><b style=""><span style="font-size: 12pt;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="text-indent: 3pt;"><b style=""><span style="font-size: 12pt;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">22.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I see only those lines that contain a particular string?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;"><span style=""> </span>Type ‘X all’ then ‘F all ‘<i style="">search-string’</i><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">23.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Now I want to see only those lines that contain a particular value in the display I get after doing an ‘X all, F all’. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Type ‘ F <i style="">new_value</i> all nx’. ‘nx’ will restrict the search only to the displayed lines.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">24.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I go to a particular line numbers ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use ‘L <i style="">search-string</i>’ command. This is the Label command.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">25.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I want to find for a search-string that is Not prefix/suffix of another word. I want to find for an instance of a search-string that is whole word by itself. How can I do this?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use keyword ‘word’ at the end of find command. E.g., ‘f job word’ will find for the whole word ‘job’. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">26.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I specify the direction of search i.e., how do I search for a string in backward / forward direction (w.r.t., your current cursor position)?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <table class="MsoNormalTable" style="border: medium none ; margin-left: 36.9pt; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0"> <tbody><tr style=""> <td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"> <p class="MsoNormal"><span style="font-size: 12pt;">Direction<o:p></o:p></span></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"> <p class="MsoNormal"><span style="font-size: 12pt;">Keyword<o:p></o:p></span></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 184.5pt;" valign="top" width="246"> <p class="MsoNormal"><span style="font-size: 12pt;">Example<o:p></o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"> <p class="MsoNormal"><span style="font-size: 12pt;">Backward<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"> <p class="MsoNormal"><span style="font-size: 12pt;">PREV<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 184.5pt;" valign="top" width="246"> <p class="MsoNormal"><span style="font-size: 12pt;">F ‘job’ PREV finds for string ‘job’ in backward direction<o:p></o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"> <p class="MsoNormal"><span style="font-size: 12pt;">Forward<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"> <p class="MsoNormal"><span style="font-size: 12pt;">No need to mention any keyword. It’s default direction<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 184.5pt;" valign="top" width="246"> <p class="MsoNormal"><span style="font-size: 12pt;">F ‘job’<span style=""> </span>finds for string ‘job’ in forward direction.<o:p></o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"> <p class="MsoNormal"><span style="font-size: 12pt;">From the beginning of the file <o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"> <p class="MsoNormal"><span style="font-size: 12pt;">FIRST<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 184.5pt;" valign="top" width="246"> <p class="MsoNormal"><span style="font-size: 12pt;">F ‘job’ FIRST finds the first instance of sting ‘job’ in the file.<o:p></o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"> <p class="MsoNormal"><span style="font-size: 12pt;">Count of all instances in file<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.5in;" valign="top" width="144"> <p class="MsoNormal"><span style="font-size: 12pt;">ALL<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 184.5pt;" valign="top" width="246"> <p class="MsoNormal"><span style="font-size: 12pt;">F ‘job’ FIRST finds the first instance of sting ‘job’ in the file and gives <i style="">total-no-of-instances</i> of sting ‘job’ in the file.<o:p></o:p></span></p> </td> </tr> </tbody></table> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">27.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I search for a value say '0980312' stored in comp-3 format? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Type F X’0980312’.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">28.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I do case sensitive search find for a given search-string?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Just, enclose the search-string within quotes and have a letter C in front of the string itself. For e.g., F C’FindMe’ will find all FindMe strings only if the case matches.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">29.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I find for <i style="">any</i> non-blank characters?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use picture string ‘^’. E.g., “F P’^’ 36” will find the next non-blank characters in column 36. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">30.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I find for <i style="">any</i> numeric character?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use picture string ‘#’. E.g., 1. “F p’#’” finds the next numeric character. 2. “F ‘PAGE ##’ will find the next instance of the string ‘page followed by a blank followed by 2 numeric characters’.<o:p></o:p></span></p> <span style="font-size: 12pt; font-family: "Times New Roman";">
<br /> </span> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">31.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I find for <i style="">any</i> non-numeric character? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use picture string ‘-’. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">32.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I find for <i style="">any</i> alphabetic character?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use picture string ‘@’. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">33.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I find for <i style="">any</i> uppercase alphabetic character?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use picture string ‘>’.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">34.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I find for <i style="">any</i> lowercase alphabetic character?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use picture string ‘<’.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">35.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I find for <i style="">any</i> non-display character?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use picture string ‘.’ E.g., “f p’.’” finds the next instance of non-display character.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">36.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How can I split a line in ISPF editor? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Key in ‘TS’ in columns 1-6, position cursor at a point from where you want to split the line and press ENTER. This will result in splitting the line: the contents of line from where the cursor is positioned goes to the next line and the remaining portion will be retained in that line itself.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">---TS---<span style=""> </span>This is first portion. It’s been split here.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;"><span style=""> </span>^ Cursor is placed here.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">Upon hitting ENTER, it splits into 2 lines as below:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">--------<span style=""> </span>This is first portion.<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">--------<span style=""> </span>It’s been split here. </span><span style="font-size: 12pt; font-family: Wingdings;"><span style="">ß</span></span><span style="font-size: 12pt;"> next line<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">37.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I join 2 lines?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">You can do this by using overlay command. For e.g., <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">-------- This is line-1.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">-------- This is line-2.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">Say, you want to join these 2 lines. First, you need to move the 2<sup>nd</sup> line to the position from where you need to join it in the first line. Then, key in ‘M’ in columns 1-6 of 2<sup>nd</sup> line and ‘O’ in columns 1-6 of 1<sup>st</sup> line. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">----O--- This is line-1.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">----M---<span style=""> </span><span style=""> </span>This is line-2.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">Upon hitting ENTER, line-2 joins line-1.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">-------- This is line-1. This is line-2.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">NOTE: If you key in ‘C’ instead of ‘M’ in the 2<sup>nd</sup> line, it joins the 2<sup>nd</sup> line to the first line and also retains the 2<sup>nd</sup> line.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">38.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I see the value of the field stored in comp-3 format? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Type <st1:place st="on"><st1:city st="on">HEX</st1:city> <st1:state st="on">ON</st1:state></st1:place> and go to the location of the field and get the value from the two lines displayed below it.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">39.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I get rid of the <st1:time hour="16" minute="56" st="on">4 to 5</st1:time> message lines displayed at the beginning of the file in ISPF edit?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use ‘RESET’ command.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">40.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;"><span style=""> </span>How do I stop the standard numbers on <st1:place st="on"><st1:state st="on">Col</st1:state></st1:place> 73-80 in the ISPF editor? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Type<span style=""> </span>‘NUM OFF’. Some Clients use <st1:place st="on"><st1:state st="on">Col</st1:state></st1:place> 73-80 to mark their changes, in that case you HAVE to have NUM OFF as the option.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">41.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I make columns 1-6 disappear from my ISPF editor screen? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Type 'NUM ON COB’. These are the ‘COBOL numbers’ columns and the screen display will be from <st1:place st="on"><st1:state st="on">Col</st1:state></st1:place> 9-80.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">42.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I make the numbers on <st1:place st="on"><st1:state st="on">Col</st1:state></st1:place> 1-6 contiguous, i.e., the COBOL numbers<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Type 'RENUM'. ISPF sometimes recommends you to do this. You can ignore it.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">43.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I replace a particular value in a particular column with a constant value? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Type <i style="">c ‘from_value’ ‘to_value’ 6 all.</i> If you want this change in a particular range of rows, you’ll have to block the rows with ‘xx’ and say ‘<i style="">c from_value to_value 6 x all’</i>. Here ‘6’ is the column number.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">44.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I want to copy a block of records from one dataset to another.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Block the records and type ‘CUT’ at the command line. Open the other dataset in edit mode and type ‘PASTE’ at the command line and type ‘a’ or ‘b’ on the row after / before which you want these records.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">45.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;"><span style=""> </span>I have a file of record length 240 and want to know in which column the value I am looking at occurs. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Say cols on the Command line if in browse mode and in the column command if in edit mode.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt;">File-Aid<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt;">
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">46.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I get record length of a copybook?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use File-aid option 8<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">47.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">File aid says insufficient memory?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;"><span style=""> </span>Increase region size in TSO logon prompt.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">48.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Above option is tried but still complete file is not displayed. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use initial records & skip options.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">49.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I overlay a field with a particular value for all the records in a file? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Use file aid 3.6 option<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">50.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">I have multiple record layouts in the copybook. How do I select the record layout of my choice for viewing the file in FileAid? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Type the command USE on command prompt which will show a list of available record lay-outs and you can choose one from them.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">51.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">How do I make file-aid select different record layouts automatically depending upon data content?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;"><span style=""> </span>Use XREF which allows you to specify what rec lay-out to use under which conditions.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">52.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">In file-aid if I am viewing a file in the formatted mode, how to I go to a particular field? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">Type ‘L field_name’. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <span style="font-size: 12pt; font-family: "Times New Roman";">
<br /> </span> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h2><span style="font-style: normal;">Common Abends:<o:p></o:p></span></h2> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">s322 : timed out, try changing job class<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">s806 : load module not found. Check library specified in joblib<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">s913 : Insufficient authority. Check if you have required access to dataset<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">s878 : region size is not enough. Increase the value you have specified in REGION parameter of JOB statement or in EXEC step. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">s522:<span style=""> </span>job cancelled by either user or operator.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">s0c4:<span style=""> </span>storage related problem. Check your linkage section, table definition, and FD section.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">JCL error: file attributes doesn’t match; I have given RECFM=VB, RECLEN is same as that specified in FD section. Why do I get this error? For variable record format files you should add 4 bytes to record length in DCB.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">8.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">s0c7 :<span style=""> </span>Invalid character in COMP/COMP-3 numeric field – check all COMP/COM-3 numeric fields and arithmetic operations.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">9.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">s013 – A file open error.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">10.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 12pt;">S722 – The Sysout or spool is full. You program is writing too many things to Sysout. Increase job’s sysout limit by specifying ‘LINES=(150,WARNING)’ option in job statement and then retry. This will increase your sysout limit to ‘150’ <i style="">thousand</i> lines.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoTitle"><o:p><span style="text-decoration: none;"> </span></o:p></p> <p class="MsoTitle" style="">COBOL-FAQs</p> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Name the divisions in a COBOL program. - GS <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATA DIVISION, PROCEDURE DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the different data types available in COBOL?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Alpha-numeric (X), alphabetic (A) and numeric (9).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What does the INITIALIZE verb<span style=""> </span>do?<span style=""> </span>- GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Numeric, Numeric edited items set to ZERO.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">FILLER , OCCURS DEPENDING ON items left untouched.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is 77 level used for ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is 88 level used for ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 12pt;">For condition names.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is level 66 used for ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">For RENAMES clause.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What does the IS NUMERIC clause establish ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">IS NUMERIC can be used on alphanumeric items, signed numeric & packed decimal items and unsigned numeric & packed decimal<span style=""> </span>items. IS NUMERIC returns TRUE if the item only consists of 0-9. However, if the item being tested is a signed<span style=""> </span>item, then it may contain 0-9,<span style=""> </span>+ and - .<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">8.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you define a table/array in COBOL?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">01<span style=""> </span>ARRAYS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 12pt;">05<span style=""> </span>ARRAY1<span style=""> </span>PIC X(9) OCCURS 10 TIMES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 12pt;">05<span style=""> </span>ARRAY2<span style=""> </span>PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">9.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can the OCCURS clause be at the 01 level?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">10.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between index and subscript? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array. An index can only be modified using PERFORM, SEARCH & SET.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Need to have index for a table in order to use SEARCH, SEARCH ALL.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">11.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between SEARCH and SEARCH ALL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">SEARCH - is a serial search.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">SEARCH ALL - is a binary search & the table must be sorted ( ASCENDING/DESCENDING KEY clause to be used & data loaded in this order) before using SEARCH ALL.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">12.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What should be the sorting order for SEARCH ALL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">It can be either ASCENDING or DESCENDING.<span style=""> </span>ASCENDING is default.<span style=""> </span>If you want the search to be done on an array sorted in descending order, then while defining the array, you should give DESCENDING KEY clause. (You must load the table in the specified order).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">13.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is binary search?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Search on a sorted array.<span style=""> </span>Compare the item to be searched with the item at the center.<span style=""> </span>If it matches, fine else repeat the process with the left half or the right half depending on where the item lies.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">14.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">My program has an array defined to have 10 items.<span style=""> </span>Due to a bug, I find that even if the program access the 11th item in this array, the program does not abend.<span style=""> </span>What is wrong with it?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Must use compiler option SSRANGE if you want array bounds checking. Default is NOSSRANGE.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">15.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you sort in a COBOL program?<span style=""> </span>Give sort file definition, sort statement syntax and meaning. - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Syntax:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">SORT file-1 ON ASCENDING/DESCENDING KEY key....<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">USING file-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">GIVING file-3.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">USING can be substituted by INPUT PROCEDURE IS para-1 THRU para-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">GIVING can be substituted by OUTPUT PROCEDURE IS para-1 THRU para-2.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">file-1 is the sort workfile and must be described using SD entry in FILE SECTION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">file-2 is the input file for the SORT and must be described using an FD entry in FILE SECTION and SELECT clause in FILE CONTROL.<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">file-3 is the outfile from the SORT and must be described using an FD entry in FILE SECTION<span style=""> </span>and SELECT clause in FILE CONTROL.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>file-1, file-2 & file-3 should not be opened explicitly.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">INPUT PROCEDURE is executed before the sort and records must be RELEASEd to<span style=""> </span>the sort work file from the input procedure.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">OUTPUT PROCEDURE is executed after all records have been sorted. Records from the sort work file must be RETURNed one at a time to the output procedure.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">16.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you define a sort file in JCL that runs the COBOL program?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Use the SORTWK01, SORTWK02,..... dd names in the step. Number of sort datasets depends on the volume of data being sorted, but a minimum of 3 is required.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">17.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the two ways of doing sorting in a COBOL program?<span style=""> </span>Give the formats. - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">See question 16.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">18.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Give the format of USING and GIVING in SORT statement.<span style=""> </span>What are the restrictions with it? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">See question 16. Restrictions - Cannot massage records, canot select records to be sorted.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">19.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between performing a SECTION and a PARAGRAPH? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Performing a SECTION will cause all the paragraphs that are part of the section, to be performed. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Performing a PARAGRAPH will cause only that paragraph to be performed.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">20.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the use of EVALUATE statement? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Evaluate is like a case statement and can be used to replace nested Ifs. The difference between EVALUATE and case is that no ‘break’ is required for EVALUATE i.e. control comes out of the EVALUATE as soon as one match is made.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">21.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the different forms of EVALUATE statement?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">EVALUATE<span style=""> </span>EVALUATE SQLCODE ALSO FILE-STATUS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">WHEN A=B AND C=D<span style=""> </span>WHEN 100 ALSO ‘00’<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 12pt;">WHEN (D+X)/Y = 4<span style=""> </span>WHEN -305 ALSO ‘32’<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 12pt;">WHEN OTHER<span style=""> </span>WHEN OTHER<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span><span style=""> </span>imperative stmt<span style=""> </span><span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 12pt;">END-EVALUATE<span style=""> </span>END-EVALUATE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 12pt;">EVALUATE SQLCODE ALSO A=B<span style=""> </span>EVALUATE SQLCODE ALSO TRUE<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 12pt;">WHEN 100 ALSO TRUE<span style=""> </span>WHEN 100 ALSO A=B<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 12pt;"><span style=""> </span>imperative stmt<span style=""> </span><span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 12pt;">WHEN -305 ALSO FALSE<span style=""> </span>WHEN -305 ALSO (A/C=4)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">END-EVALUATE<span style=""> </span>END-EVALUATE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">22.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you come out of an EVALUATE statement? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">After the execution of one of the when clauses, the control is automatically passed on to the next sentence after the EVALUATE statement.<span style=""> </span>There is no need of any extra code.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">23.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">In an EVALUATE statement, can I give a complex condition on a when clause?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">24.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is a scope terminator?<span style=""> </span>Give examples.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Scope terminator is used to mark the end of a verb e.g. EVALUATE, END-EVALUATE; IF, END-IF.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">25.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you do in-line PERFORM? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">PERFORM ... <until> ... <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;"><sentences><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>END PERFORM<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">26.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">When would you use in-line perform?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">When the body of the perform will not be used in other paragraphs. If the body of the perform is a generic type of code (used from various other places in the program), it would be better to put the code in a separate para and use PERFORM paraname rather than in-line perform.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">27.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between CONTINUE & NEXT SENTENCE ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">CONTINUE is like a null statement (do nothing) , while NEXT SENTENCE transfers control to the next sentence (!!) (A sentence is terminated by a period)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">28.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What does EXIT do ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Does nothing ! If used, must be the only sentence within a paragraph in OSVS COBOL. In COBOL II you can have other statements along with EXIT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">29.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can I redefine an X(100) field with a field of X(200)?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Yes. Redefines just causes both fields to start at the same location. For example:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;">01 WS-TOP PIC X(1)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;">01 WS-TOP-RED REDEFINES WS-TOP PIC X(2).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">If you MOVE ‘12’ to WS-TOP-RED, <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">DISPLAY WS-TOP will show 1 while <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">DISPLAY WS-TOP-RED will show 12. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt; color: green;">This works only if the level number is 01. If the respective level numbers were say 05, then you will get a severe error in compilation.</span><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">30.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can I redefine an X(200) field with a field of X(100) ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">31.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What do you do to resolve SOC-7 error? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Basically you need to correct the offending data.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Many times the reason for SOC7 is an un-initialized numeric item. Examine that<span style=""> </span> possibility first.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Many installations provide you a dump for run time abends ( it can be<span style=""> </span>generated also by calling some subroutines or OS services thru<span style=""> </span>assembly language).<span style=""> </span>These dumps provide the offset of the last instruction at which the abend occurred.<span style=""> </span>Examine the compilation <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">output XREF listing to get the verb and the line number of the source<span style=""> </span>code at this offset.<span style=""> </span>Then you can look at the source code to find the<span style=""> </span>bug.<span style=""> </span>To get capture the runtime dumps,<span style=""> </span>you will have to define some<span style=""> </span>datasets (SYSABOUT etc ) in the JCL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">If none of these are helpful,<span style=""> </span>use judgement and DISPLAY to localize<span style=""> </span>the source of error.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Some installtion might have batch program debugging tools.<span style=""> </span>Use them.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">32.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How is sign stored in Packed Decimal fields and Zoned Decimal fields?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Packed Decimal fields:<span style=""> </span>Sign is stored as a hex value in the last nibble (4 bits ) of the storage.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Zoned Decimal fields:<span style=""> </span>As a default, sign is over punched with the numeric value stored in the last byte.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">33.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How is sign stored in a comp-3 field? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">It is stored in the last nibble. For example if your number is +100, it stores hex 0C in the last byte, hex 1C if your number is 101, hex 2C if your number is 102, hex 1D if the number is -101, hex 2D if the number is -102 etc...<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">34.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;"><span style=""> </span>How is sign stored in a COMP field ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">In the most significant bit. Bit is on if -ve, off if +ve.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">35.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between COMP & COMP-3<span style=""> </span>?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">COMP is a binary storage format while COMP-3 is packed decimal format.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">36.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is COMP-1? COMP-2?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">COMP-1<span style=""> </span>- Single precision floating point. Uses 4 bytes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">COMP-2 - Double precision floating point. Uses 8 bytes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">37.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you define a variable of COMP-1?<span style=""> </span>COMP-2?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">No picture clause to be given. Example 01 WS-VAR USAGE COMP-1.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">38.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How many bytes does a S9(7) COMP-3 field occupy ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Will take 4 bytes. Sign is stored as hex value in the last nibble.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">General formula is INT((n/2) + 1)), where n=7 in this example.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">39.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Will occupy 8 bytes (one extra byte for sign).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">40.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How many bytes will a S9(8) COMP field occupy ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">4 bytes. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">41.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the maximum value that can be stored in S9(8) COMP?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">99999999<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">42.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is COMP SYNC?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Causes the item to be aligned on natural boundaries. Can be SYNCHRONIZED LEFT or RIGHT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">For binary data items, the address resolution is faster if they are located at word boundaries in the memory.<span style=""> </span>For example, on main frame the memory word size is 4 bytes.<span style=""> </span>This means that each word will start from an address divisible by 4.<span style=""> </span>If my first variable is x(3) and next <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">one is s9(4) comp, then if you do not specify the SYNC clause, S9(4) COMP will start from byte 3 ( assuming that it starts from 0 ).<span style=""> </span>If you specify SYNC, then the binary data item will start from address 4. You might see some wastage of memory, but the access to this <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">computational field is faster. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">43.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the maximum size of a 01 level item in COBOL I?<span style=""> </span>in COBOL II?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">In COBOL II: 16777215<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">44.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you reference the following file formats from COBOL programs:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Fixed Block File<span style=""> </span>- Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK CONTAINS 0 .<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Fixed Unblocked - Use ORGANISATION IS SEQUENTIAL. Use RECORDING<span style=""> </span>MODE IS F, do not use BLOCK CONTAINS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Variable Block File - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, BLOCK CONTAINS 0. Do not code the 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Variable Unblocked - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, do not use BLOCK CONTAINS. Do not code 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">ESDS VSAM file - Use ORGANISATION IS SEQUENTIAL. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">KSDS VSAM file - Use ORGANISATION IS INDEXED, RECORD KEY IS, ALTERNATE RECORD KEY IS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">RRDS File - Use ORGANISATION IS RELATIVE, RELATIVE KEY IS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Printer File - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK CONTAINS 0. (Use RECFM=FBA in JCL DCB).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">45.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are different file OPEN modes available in COBOL?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Open for INPUT, OUTPUT, I-O, EXTEND.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">46.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the mode in which you will OPEN a file for writing? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">OUTPUT, EXTEND<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">47.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">In the JCL, how do you define the files referred to in a subroutine ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Supply the DD cards just as you would for files referred to in the main program. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">48.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can you REWRITE a record in an ESDS file?<span style=""> </span>Can you DELETE a record from it?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Can rewrite(record length must be same), but not delete.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">49.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is file status 92? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Logic error. e.g., a file is opened for input and an attempt is made to write to it.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">50.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is file status 39 ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL pgm & the JCL (or the dataset label). You will get file status 39 on an OPEN.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">51.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is Static, Dynamic linking?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">In static linking, the called subroutine is link-edited into the calling program , while in dynamic linking, the subroutine & the main program will exist as separate load modules. You choose static/dynamic linking by choosing either the DYNAM or NODYNAM link edit option. (Even if you choose NODYNAM, a CALL identifier (as opposed to a CALL literal), will translate to a DYNAMIC call).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">A statically called subroutine will not be in its initial state the next time it is called unless you explicitly use INITIAL or you do a CANCEL. A dynamically called routine will always be in its initial state.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">52.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is AMODE(24), AMODE(31), RMODE(24) and RMODE(ANY)?<span style=""> </span>( applicable to only MVS/ESA Enterprise Server).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">These are compile/link edit options.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 14.2pt;"><span style="font-size: 12pt;">AMODE<span style=""> </span>- Addressing mode. RMODE - Residency mode.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt;"><span style="font-size: 12pt;">AMODE(24) - 24 bit addressing. AMODE(31) - 31 bit addressing. AMODE(ANY) - Either 24 bit or 31 bit addressing depending on RMODE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt;"><span style="font-size: 12pt;">RMODE(24) - Resides in virtual storage below 16 Meg line. Use this for 31 bit programs that call 24 bit programs. (OS/VS Cobol pgms use 24 bit addresses only).<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 14.2pt;"><span style="font-size: 12pt;">RMODE(ANY) - Can reside above or below 16 Meg line.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">53.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What compiler option would you use for dynamic linking?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">DYNAM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-align: center; text-indent: -0.25in;" align="center"><b style=""><u><span style="font-size: 12pt;">Db2 Faqs<o:p></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">In the WHERE clause what is BETWEEN and IN? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">BETWEEN supplies a range of values while IN supplies a list of values.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Is BETWEEN inclusive of the range values specified? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is 'LIKE' used for in WHERE clause? What are the wildcard characters? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">LIKE is used for partial string matches.<span style=""> </span>‘%’ ( for a string of any character ) and ‘_’ (for any single character ) are the two wild card characters.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">When do you use a LIKE statement?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">To provide partial search facility e.g. to search employee by name, you need not specify the complete name, using LIKE, you can search for partial string matches.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the meaning of underscore ( ‘_’ ) in the LIKE statement? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Match for any single character.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What do you accomplish by GROUP BY .... HAVING clause? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">Can think of the HAVING as a ‘WHERE’ clause on the GROUP<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is a cursor? why should it be used? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">When multiple of rows are to be retrieved with embedded SQL,<span style=""> </span>a cursor should be used.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">8.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Where would you specify the DECLARE CURSOR statement? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">See answer to next question.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">9.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you specify and use a cursor in a COBOL program? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Use DECLARE CURSOR statement either in working storage or in procedure division(before open cursor), to specify the SELECT statement.<span style=""> </span>Then use OPEN, FETCH rows in a loop and finally CLOSE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">10.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How would you retrieve rows from a DB2 table in embedded SQL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Either by using the single row SELECT statements,or by using the CURSOR.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">11.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">PIC S9(9)V99 COMP-3.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Note: In DECIMAL(11,2), 11 indicates the size of the data type and 2 indicates the precision.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">12.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is DCLGEN ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">DeCLarations GENerator: used to create the host language copy books for the table definitions. Also creates the DECLARE table.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">13.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the contents of a DCLGEN? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">1. EXEC SQL DECLARE TABLE statement which gives the layout of the table/view in terms of DB2 datatypes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">2. A host language copy book that give the host variable definitions for the column names.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">14.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Is it mandatory to use DCLGEN? If not, why would you use it at all? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">It is not mandatory to use DCLGEN. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Using DCLGEN, helps detect wrongly spelt column names etc. during the precompile stage itself ( because of the DECLARE TABLE ).<span style=""> </span>DCLGEN being a toll, would generate accurate host variable definitions for the table reducing chances of error.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">15.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Is DECLARE TABLE in DCLGEN necessary? Why it used?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">It not necessary to have DECLARE TABLE statement in DCLGEN.<span style=""> </span>This is used by the pre-compiler to validate the table-name, view-name, column name etc.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">16.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is EXPLAIN? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">EXPLAIN is used to display the access path as determined by the optimizer for a SQL statement.<span style=""> </span>It can be used in SPUFI (for single SQL statement ) or in BIND step (for embedded SQL ).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">17.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What do you need to do before you do EXPLAIN?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Make sure that the PLAN_TABLE is created.<span style=""> </span>Do RUNSTATS.<span style=""> </span>( Any thing else? )<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">18.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Where is the output of EXPLAIN stored? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">In userid.PLAN_TABLE<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">19.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">EXPLAIN has output with MATCHCOLS = 0.<span style=""> </span>What does it mean? – GS<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">While doing the accesspath, objects accessed have matching cols as 0, in other words index scan or TS scan is used depending on access type R or I<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">20.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you do the EXPLAIN of a dynamic SQL statement?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Using Spufi. At bind time, accesspath are not defined. So all permutation and combinations of SQLs need to be examined separately in spufi.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">21.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause.)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">22.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the isolation levels possible ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">CS:<span style=""> </span>Cursor Stability – A read lock is released as soon as access is moved to next page<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">RR:<span style=""> </span>Repeatable Read – Lock is released only after commit or end of execution <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">23.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Where do you specify them ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">ISOLATION LEVEL is a parameter for the bind process.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">24.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">I use CS and update a page.<span style=""> </span>Will the lock be released after I am done with that page?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">No<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">25.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is ALTER ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">SQL command used to change the definition of DB2 object.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">26.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are PACKAGES ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">They contain executable code for SQL statements.<span style=""> </span>Can contain SQL statements for only one DBRM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Non Executable accesspath instruction for a DBRM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">27.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the advantages of using a PACKAGE?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">In Online Systems – Where there is normally one plan used, You do not have to bind the plan again. So downtime is reduced.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">If packages are used than binding changed program is required, however in other case you will have to bind whole plan.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">28.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is RUNSTATS? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">A DB2 utility used to collect statistics about the data values in tables which can be used by the optimizer to decide the access path. These statistics are stored in DB2 catalog tables and is critical in determining accesspaths for a SQL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">29.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">When will you chose to run<span style=""> </span>RUNSTATS?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">After a load, or after mass updates, inserts, deletes, or after REORG. And Periodically<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">30.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Give some example of statistics collected during RUNSTATS?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Col Count – Number of unique values in a column (if high index access is used), Number of columns populated.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">31.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">In SPUFI suppose you want to select max. of 1000 rows , but the select returns only 200 rows. What are the 2 sqlcodes that are returned? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">100 ( for successful completion of the query ), 0 (for successful COMMIT<span style=""> </span>if AUTOCOMMIT is set to Yes).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">32.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How would you print the output of an SQL statement from SPUFI? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Print the output dataset.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">33.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you pull up a query which was previously saved in QMF ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">34.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you select a row using indexes? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Specify the indexed columns in the WHERE clause.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">35.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><st1:place st="on"><span style="font-size: 12pt;">Lot</span></st1:place><span style="font-size: 12pt;"> of updates have been done ona table due to which indexes have gone haywire.<span style=""> </span>What do you do? – GS<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Reorg<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">36.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are split indexes?<span style=""> </span>( exact question is not known )<span style=""> </span>GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">Ramesh, I think they were talking about what do you do if index splits occur due to mass inserts/updates. I think the answer is a REORG is required. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">37.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What happens when you say OPEN CURSOR?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">If there is an ORDER BY clause, rows are fetched, sorted and made available for the FETCH statement.<span style=""> </span>Other wise simply the cursor is placed on the first row.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">In case of Open Cursor<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">If Cursor statement is complex (i.e. multiple tables accessed, access path use multiple indexes etc.) than materialization happenes and a temporary table is created.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">In other case cursor is simply placed on first row depending on Order By clause<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">38.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Is DECLARE CURSOR executable?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">No.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">39.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can you have more than one cursor open at any one time in a program ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">40.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How would you find out the total number of rows in a table? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Use SELECT COUNT(*) ...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">41.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you eliminate duplicate values in SELECT? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Use SELECT DISTINCT ...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">42.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you find the maximum value in a column? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Use SELECT MAX(...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">43.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What does the sqlcode of -818 pertain to? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">This is generated when the consistency tokens in the DBRM and the load module are different.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">44.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is <st1:place st="on">UNION</st1:place>,UNION ALL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><st1:place st="on"><span style="font-size: 12pt;">UNION</span></st1:place><span style="font-size: 12pt;"> : <span style=""> </span>eliminates duplicates<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">UNION ALL: <span style=""> </span>retains duplicates<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Both these are used to combine the results of different SELECT statements.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">45.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Suppose I have five SQL SELECT statements connected by UNION/UNION ALL, how many times should I specify <st1:place st="on">UNION</st1:place> to eliminate the duplicate rows? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Once.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">46.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is dynamic SQL? - GS
<br />Dynamic SQL is a SQL statement created at program execution time.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">47.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What else is there in the PLAN apart from the access path? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">PLAN has the executable code for the SQL statements in the host program<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">48.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">When is the access path determined for dynamic SQL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">At run time, when the PREPARE statement is issued.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">49.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Suppose I have a program which uses a dynamic SQL and it has been performing well till now.<span style=""> </span>Off late, I find that the performance has deteriorated.<span style=""> </span>What happened? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Probably RUN STATS is not done and the program is using a wrong index due to incorrect stats.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Probably RUNSTATS is done and optimizer has chosen a wrong access path based on the latest statistics.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">50.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Apart from cursor, what other ways are available to you to retrieve a row from a table in embedded SQL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Single row SELECTs.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">51.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you retrieve the data from a nullable column? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Use null indicators. Syntax INTO :HOSTVAR:NULLIND<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">52.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the picture clause of the null indicator variable? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">S9(4) COMP.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">53.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What does it mean<span style=""> </span>if the null indicator has -1, 0, -2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">-1<span style=""> </span>: the field is null<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">0 <span style=""> </span>: the field is not null<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">-2<span style=""> </span>: the field value is truncated<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">54.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you insert a record with a nullable column?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">To insert a NULL, move -1 to the null indicator<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">To insert a valid value, move 0 to the null indicator<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">55.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Some questions on concatenate, substring features of DB2. - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">56.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is IMAGECOPY ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">It is full backup of a DB2 table which can be used in recovery.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">57.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">When do you use the IMAGECOPY? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">To take routine backup of tables<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">After a LOAD with LOG NO<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">58.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is a clustering index ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">A mandatory index defined on a partitioned table space. Causes the data rows to be stored in the order specified in the index. Obviously a table can have only one clustering index. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">59.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are correlated subqueries? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">One in which the lower level nested select refers back to the table in the higher level.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">60.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the issues related with correlated subqueries? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">61.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is sqlcode -922 ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">62.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is sqlcode -811?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">63.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is a DBRM, PLAN ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">DBRM: DataBase Request Module, has the SQL statements extracted from the host language program by<span style=""> </span>the SQL precompile.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">PLAN: A result of the BIND process.<span style=""> </span>It has the executable code for the SQL statements in the DBRM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">64.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What happens to the PLAN if index used by it is dropped?
<br />Plan is marked as invalid. The next time the plan is invoked, it is recreated.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">65.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between primary key & unique index ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">66.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is QUIESCE?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">A QUIESCE flushes all DB2 buffers on to the disk. This gives a correct snapshot of the database and should be used before any IMAGECOPY to maintain consistency.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">67.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Are views updatable ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Not all of them.<span style=""> </span>Some views are updatable e.g. single table view with all the fields or mandatory fields. Examples of non-updatable views are views which are joins, views that contain aggregate functions(such as MIN).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">68.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">If I have a view which is a join of two or more tables, can this view be updatable? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">No.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">69.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is a synonym ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">Synonym is an alternate name for a table or view. A synonym is accessible only by the creator.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">70.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is FREEPAGE and PCTFREE in TABLESPACE creation?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">PCTFREE: percentage of each page to be left free <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">FREEPAGE: Number of pages to be loaded with data between each free page<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">71.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is CHECK PENDING ?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Pend status of table space to check for different values. Usuall before load TS is pended in four different pend status. After load a image copy job is run which will eliminate these pend statuses<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">72.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the 4 environments which can access DB2 ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">TSO, CICS, IMS and BATCH<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">73.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is<span style=""> </span>outer join ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">Outer join is one in which you want both matching and non matching rows to be returned. DB2 has no specific operator for outer joins, it can be simulated by combining a join and a correlated sub query with a <st1:place st="on">UNION</st1:place>.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">74.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are simple, segmented and<span style=""> </span>partitioned table spaces ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Simple Tablespace:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 12pt;">Can contain one or more tables<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 12pt;">Rows from multiple tables can be interleaved on a page under the DBAs control and maintenance<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Segmented Tablespace: <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 12pt;">Can contain one or more tables<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 12pt;">Tablespace is divided into segments of 4 to 64 pages in increments of 4 pages.<span style=""> </span>Each segment is dedicated to single table.<span style=""> </span>A table can occupy multiple segments<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Partitioned Tablespace:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 12pt;">Can contain one table<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 12pt;">Tablespace is divided into parts and each part is put in a separate VSAM dataset.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">75.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How is a typical DB2 batch pgm executed ? <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">Use DSN utility to run a DB2 batch program.<span style=""> </span>An example is shown:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">DSN SYSTEM(DSP3)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span>RUN PROGRAM(EDD470BD) PLAN(EDD470BD) LIB('EDGS01T.OBJ.LOADLIB')<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">END<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">Use IKJEFT01 utility program to run this command in a JCL. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">76.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Assuming that a site’s standard is that pgm name = plan name, what is the easiest way to find out which pgms are affected by change in a table’s structure ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Query the catalogue table SYSPLANDEP.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">77.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Name some fields from SQLCA.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">SQLCODE, SQLERRM, SQLERRD ...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">78.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">When do you specify the isolation level? How?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">During the BIND process.<span style=""> </span>ISOLATION ( CS/RR )...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">79.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How can you quickly find out the # of rows updated after a mass update statement?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Check the value stored in SQLERRD(3).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">80.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Consider the employee table with column PROJECT nullable.<span style=""> </span>How can you get a list of employees who are not assigned to any project?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">SELECT EMPNO <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">FROM EMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">WHERE PROJECT IS NULL;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">81.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Why SELECT * is not preferred in embedded SQL programs?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">For<span style=""> </span>three reasons:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt; font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">If the table structure is changed ( a field is added ), the program will have to be modified<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt; font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Program might retrieve the columns which it might not use, leading on I/O over head.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt; font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">The chance of an index only scan is lost.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">82.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is filter factor?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Number of distinct col values/Number of rows in the table<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">83.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is index cardinality? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">84.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the various locking levels available?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">PAGE, TABLE, TABLESPACE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">Subpage, row level with type2 indexes<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">85.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How does DB2 determine what locking level to use?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Type of indexes, Bind<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">86.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the disadvantages of PAGE level lock?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">Concurrency is limited<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">87.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is lock escalation?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Lock moved from a subpage to page or page to tablespace<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">88.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the various locks available?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">SHARE, EXCLUSIVE, UPDATE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">89.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between CS and RR isolation levels?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">CS:<span style=""> </span>Releases the lock on a page after use<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">RR:<span style=""> </span>Retains all locks acquired till end of transaction<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">90.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can I use LOCK TABLE on a view?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">No.<span style=""> </span>To lock a view, take lock on the underlying tables.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">91.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are COLLECTIONS?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Prefixes for a package name. Makes it convenient to use in PKLIST for plans.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">92.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">When you COMMIT, is the cursor closed?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">93.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you leave the cursor open after issuing a COMMIT?<span style=""> </span>( for DB2 2.3 or above only )<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Use WITH HOLD option in DECLARE CURSOR statement. Has no effect in CICS. I believe CICS will retain posn after a SYNCPOINT???. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">In pseudoconversation CURSOR with HOLD also gets closed<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">94.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Give the COBOL definition of a VARCHAR field.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">95.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the physical storage length of each of the following DB2 data types: <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><span style=""> </span>DATE, TIME, TIMESTAMP?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">DATE: 4bytes<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">TIME: 3bytes<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">TIMESTAMP: 10bytes<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">96.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the COBOL picture clause of the following DB2 data types:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><span style=""> </span>DATE, TIME, TIMESTAMP?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">DATE: PIC X(10)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">TIME : PIC X(08)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">TIMESTAMP: PIC X(26)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">97.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the result of this query if no rows are selected:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">SELECT SUM(SALARY)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">FROM EMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">WHERE QUAL=‘MSC’;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">NULL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">98.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between SYNONYM and ALIAS?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">SYNONYM: is dropped when the table or tablespace is dropped. Synonym is available only to the creator.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">ALIAS: is retained even if table or tablespace is dropped.<span style=""> </span>ALIAS can be created even if the table does not exist.<span style=""> </span>It is used mainly in distributed environment to hide the location info from programs. Alias is a global object & is available to all.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">99.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">My SQL statement SELECT AVG(SALARY) FROM EMP yields inaccurate results. Why?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Because SALARY is not declared to have NULLs and the employees for whom the salary is not known are also counted.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">100.</span></span><!--[endif]--><span style="font-size: 12pt;">How do you retrieve the first 5 characters of FIRSTNAME column of EMP table?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">SELECT SUBSTR(FIRSTNAME,1,5) FROM EMP;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">101.</span></span><!--[endif]--><span style="font-size: 12pt;">How do you concatenate the FIRSTNAME and LASTNAME from EMP table to give a complete name?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">SELECT FIRSTNAME || ‘ ‘ || LASTNAME FROM EMP;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">102.</span></span><!--[endif]--><span style="font-size: 12pt;">What is the use of VALUE function?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Avoid handling NULLable fields.<span style=""> </span>It assigns a default of 0 to numeric fields which are NULL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">103.</span></span><!--[endif]--><span style="font-size: 12pt;">What do you mean by NOT NULL WITH DEFAULT?<span style=""> </span>When will you use it?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">In insert if column is not specified than default value is taken<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">104.</span></span><!--[endif]--><span style="font-size: 12pt;">What do you mean by NOT NULL?<span style=""> </span>When will you use it?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Column needs to have some value specified. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">105.</span></span><!--[endif]--><span style="font-size: 12pt;">What are aggregate functions?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Max, Sum, Avg<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">106.</span></span><!--[endif]--><span style="font-size: 12pt;">What is REORG?<span style=""> </span>When is it used?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">107.</span></span><!--[endif]--><span style="font-size: 12pt;">How do I create a table MANAGER ( EMP#, MANAGER) where MANAGER is a foreign key which references to EMP# in the same table?<span style=""> </span>Give the exact DDL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">108.</span></span><!--[endif]--><span style="font-size: 12pt;">Will precompile of an DB2-COBOL program bomb, if DB2 is down?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">No.<span style=""> </span>Because the precompiler does not refer to the DB2 catalogue tables.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">109.</span></span><!--[endif]--><span style="font-size: 12pt;">Can you use MAX on a CHAR column?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">YES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">110.</span></span><!--[endif]--><span style="font-size: 12pt;">What is the restriction on using <st1:place st="on">UNION</st1:place> in embedded SQL?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">It has to be in a CURSOR.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">111.</span></span><!--[endif]--><span style="font-size: 12pt;">When does the authorization check on DB2 objects is done - at BIND time or run time?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Both, there is bind authority and execution authority<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">112.</span></span><!--[endif]--><span style="font-size: 12pt;">What is COPY PENDING status?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">A state in which, an image copy on a table needs to be taken,<span style=""> </span>In this status, the table is available only for queries.<span style=""> </span>You cannot update this table.<span style=""> </span>To remove the COPY PENDING status, you take an image copy or use REPAIR utility.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">113.</span></span><!--[endif]--><span style="font-size: 12pt;">How many clustering indexes can be defined for a table?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;">Only one.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">114.</span></span><!--[endif]--><span style="font-size: 12pt;">How does DB2 store NULL physically?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">High Values<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">115.</span></span><!--[endif]--><span style="font-size: 12pt;">When would you prefer to use VARCHAR?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">116.</span></span><!--[endif]--><span style="font-size: 12pt;">What are the disadvantages of using VARCHAR?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">117.</span></span><!--[endif]--><span style="font-size: 12pt;">What happens to the plans when an index used by them is dropped?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Marked as invalid<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">118.</span></span><!--[endif]--><span style="font-size: 12pt;">What is auditing?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Logging updates<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">119.</span></span><!--[endif]--><span style="font-size: 12pt;">What is ACQUIRE/RELEASE in BIND?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">When to release the lock at commit or task termination point.</span></p> <p class="MsoTitle" style="">JCL-FAQs</p> <p class="MsoNormal"><b style=""><u><span style="font-size: 14pt;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is primary allocation for a dataset?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span>The space allocated when the dataset is first created.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between primary and secondary allocations for a dataset?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><span style=""> </span>Secondary allocation is done when more space is required than what has already been allocated. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How many extents are possible for a sequential file ? For a VSAM file ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">16 extents on a volume for a sequential file and 123 for a VSAM file.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What does a disposition of (NEW,CATLG,DELETE) mean? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">That this is a new dataset and needs to be allocated,<span style=""> </span>to CATLG the dataset if the step is successful and to delete the dataset if the step abends.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What does a disposition of (NEW,CATLG,KEEP) mean? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">That this is<span style=""> </span>a new dataset and needs to be allocated, to CATLG the dataset if the step is successful and to KEEP but not CATLG the dataset if the step abends. Thus if the step abends, the dataset would not be catalogued and we would need to supply the vol. ser the next time we refer to it.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you access a file that had a disposition of KEEP? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Need to supply volume serial no. VOL=SER=xxxx.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What does a disposition of (MOD,DELETE,DELETE) mean ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">The MOD will cause the dataset to be created (if it does not exist),<span style=""> </span>and then the two DELETEs will cause the dataset to be deleted whether the step abends or not. This disposition is used to clear out a dataset at the beginning of a job. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">8.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the DD statement for a output file?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Unless allocated earlier, will have the foll parameters:<span style=""> </span>DISP=(NEW,CATLG,DELETE), UNIT , SPACE & DCB .<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">9.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What do you do if you do not want to keep all the space allocated to a dataset? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Specify the parameter<span style=""> </span>RLSE ( release ) in the SPACE e.g. SPACE=(CYL,(50,50),RLSE)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">10.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is DISP=(NEW,PASS,DELETE)?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">This is a new file and create it, if the step terminates normally, pass it to the subsequent steps and if step abends, delete it.<span style=""> </span>This dataset will not exist beyond the JCL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">11.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you create a temporary dataset?<span style=""> </span>Where will you use them?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Temporary datasets can be created either by not specifying any DSNAME or by specifying the temporary file indicator as in DSN=&&TEMP. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">We use them to carry the output of one step to another step in the same job. The dataset will not be retained once the job completes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">12.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you restart a proc from a particular step? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">In job card, specify RESTART= procstep.stepname<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">where procstep = name of the jcl step that invoked the proc <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">and stepname = name of the proc step where you want execution to start<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">13.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you skip a particular step in a proc/JOB? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Can use either condition codes or use the jcl control statement IF (only in ESA JCL)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">14.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">A PROC has five steps.<span style=""> </span>Step 3 has a condition code. <span style=""> </span>How can you override/nullify this condition code? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Provide the override on the EXEC stmt in the JCL as follows:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">//STEP001 EXEC procname,COND.stepname=value<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">All parameters on an EXEC stmt in the proc such as COND, PARM have to be overridden like this.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">15.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you override a specific DDNAME/SYSIN in PROC from a JCL?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">//<stepname.dd><span style=""> </span>DSN=...<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">16.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is NOTCAT 2 - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">This is an MVS message indicating that a duplicate catalog entry exists. E.g., if you already have a dataset with dsn = ‘xxxx.yyyy’ and u try to create one with disp new,catlg, you would get this error. the program open and write would go through and at the end of the step the system would try to put it in the system catalog. at this point since an entry already exists the catlg would fail and give this message. you can fix the problem by deleting/uncataloging the first data set and going to the volume where the new dataset exists(this info is in the msglog of the job) and cataloging it.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">17.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is 'S0C7' abend? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Caused by invalid data in a numeric field.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">18.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is a S0C4 error ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Storage violation error - can be due to various reasons. e.g.: READING a file that is not open, invalid address referenced due to subscript error.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">19.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are SD37, SB37, SE37 abends?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">All indicate dataset out of space. SD37 - no secondary allocation was specified. SB37 - end of vol. and no further volumes specified.<span style=""> </span>SE37 - Max. of 16 extents already allocated.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">20.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is S322 abend ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Indicates a time out abend. Your program has taken more CPU time than the default limit for the job class. Could indicate an infinite loop.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">21.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Why do you want to specify the REGION parameter in a JCL step? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">To override the REGION defined at the JOB card level.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">REGION specifies the max region size. REGION=0K or 0M or omitting REGION means no limit will be applied.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">22.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What does the TIME parameter signify ? What does TIME=1440 mean ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">TIME parameter can be used to overcome S322 abends for programs that genuinely need more CPU time. TIME=1440 means no CPU time limit is to be applied to this step.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">23.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is COND=EVEN ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Means execute this step even if any of the previous steps, terminated abnormally.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">24.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is COND=ONLY ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Means execute this step only if any of the previous steps, terminated abnormally.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">25.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you check the syntax of a JCL without running it?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">TYPERUN=SCAN on the JOB card or use JSCAN.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">26.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What does IEBGENER do?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Used to copy one QSAM file to another. Source dataset should be described using SYSUT1 ddname. Destination dataset should be decribed using SYSUT2. IEBGENR can also do some reformatting of data by supplying control cards via SYSIN.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">27.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you send the output of a COBOL program to a member of<span style=""> </span>a PDS?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Code the DSN as pds(member) with a DISP of SHR. The disp applies to the pds and not to a specific member.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">28.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">I have multiple jobs ( JCLs with several JOB cards ) in a member.<span style=""> </span>What happens if I submit it?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Multiple jobs are submitted (as many jobs as the number of JOB cards). <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">29.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">I have a COBOL program that ACCEPTs some input data.<span style=""> </span>How do you code the JCL statment for this? ( How do you code instream data in a JCL? )<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">//SYSIN DD*<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">input data<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">input data<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">/*<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">30.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can you code instream data in a PROC ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">31.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;"><span style=""> </span>How do you overcome this limitation ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">One way is to code SYSIN DD DUMMY in the PROC, and then override this from the JCL with instream data.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">32.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you run a COBOL batch program from a JCL?<span style=""> </span>How do you run a COBOL/DB2 program?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">To run a non DB2 program,<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">//STEP001 EXEC PGM=MYPROG<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">To run a DB2 program,<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">//STEP001 EXEC PGM=IKJEFT01<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">//SYSTSIN DD *<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">DSN SYSTEM(....)<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">RUN PROGRAM(MYPROG)<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">PLAN(.....)<span style=""> </span>LIB(....)<span style=""> </span>PARMS(...)<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">/*<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">33.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is STEPLIB, JOBLIB?<span style=""> </span>What is it used for? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Specifies that the private library (or libraries) specified should be searched before the default system libraries in order to locate a program to be executed.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">STEPLIB applies only to the particular step, JOBLIB to all steps in the job.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">34.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is order of searching of the libraries in a JCL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">First any private libraries as specified in the STEPLIB or JOBLIB, then the system libraries such as SYS1.LINKLIB. The system libraries are specified in the linklist. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">35.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What happens if both JOBLIB & STEPLIB is specified ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">JOBLIB is ignored.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">36.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">When you specify mutiple datasets in a JOBLIB or STEPLIB, what factor determines the order? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">The library with the largest block size should be the first one.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">37.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How to change default proclib ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">//ABCD<span style=""> </span>JCLLIB ORDER=(ME.MYPROCLIB,SYS1.PROCLIB)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">38.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">The disp in the JCL is MOD and the<span style=""> </span>program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Records will be written to end of file (append) when a WRITE is done in both cases.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">39.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the valid DSORG values ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">PS - QSAM, <st1:place st="on">PO</st1:place> - Partitioned, IS - ISAM<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">40.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the differences between JES2 & JES3 ?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">JES3 allocates datasets for all the steps before the job is scheduled. In JES2, allocation of datasets required by a step are done only just before the step executes. <o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><b style=""><u><span style="font-size: 14pt;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="text-align: center;" align="center"><b style=""><u><span style="font-size: 14pt;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;"><o:p> </o:p></span></b></p> <p class="MsoTitle">CICS-FAQs</p> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you place the cursor on a particular position on the screen? - GS
<br />Move -1 to the length attribute of the field and use the CUSRSOR option.
<br />Define the field with IC in the BMS map.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the two outputs<span style=""> </span>created as a result of generation of a map? - GS
<br />The map copybook and the load module.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between physical map and symbolic map? - GS
<br />The physical map is the load module and the symbolic map is the data structure.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you protect a field from being overlaid? - GS
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the attribute byte? - GS
<br />Defines the display/transmission of field. most cases is an output field from the program.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the 3 working storage fields used for every field on the map? - GS
<br />Length, attribute and input/output field.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How is dynamic memory allocated within a CICS application program? - GS
<br />Use a GETMAIN
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">8.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the restrictions while using GETMAIN and FREEMAIN? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">9.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How are VSAM files Read in CICS pgms? - GS
<br />File Control Commands. Random, Sequential, forward and backward.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">10.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">When you compile a CICS program, the (pre)compiler puts an extra chunk of code.<span style=""> </span>Where does it get included and that is it called?<span style=""> </span>What is its length? - GS
<br />DFHEIBLK, DFHCOMMAREA.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">11.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">List all the CICS tables and explain their contents. - GS
<br />PPT<span style=""> </span>SIT
<br />PCT<span style=""> </span>JCT
<br />FCT<span style=""> </span>SNT
<br />DCT<span style=""> </span>SRT
<br />RCT<span style=""> </span>TCT
<br />
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">12.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">I have written a CICS program.<span style=""> </span>What tables should I setup to run this program? - GS
<br />PPT, PCT, (FCT, DCT, RCT (if needed)).
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">13.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">In which table would you make an entry for a BMS map? - GS
<br />PPT<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">14.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the content of the PPT entry? - GS
<br />Length, Source, Use count, Lang, Res count DFHRPL number
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">15.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">For a CICS-DB2 program, how is the plan referenced? - GS
<br />Uses a RCT table.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">16.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the use of a TDQ, TSQ? - GS
<br />Temporary data stores.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">17.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you read from a TSQ? - GS
<br />Temp storage read command
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">18.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">If I create a TSQ from one transaction, can I read it from another transaction? - GS
<br />Yes. As long as they run in the same region.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">19.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can you issue SQL COMMIT from a CICS program? - GS
<br />No.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">20.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the other way of terminating a transaction? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><span style=""> </span>EXEC CICS SYNCPOINT. Assuming it is a LUW. This will not end the Xn.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">21.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is an ASRA abend ?
<br />Any data exception, problem SOC7, SOC4 etc.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">22.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is an AEY9 abend ?
<br />DB2/IDMS not up.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">23.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the situations under which<span style=""> </span>NEWCOPY is required ?
<br />When a program has been used in CICS atleast once and then changed and recompiled.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">24.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is 2 phase commit?
<br />Simultaneous Syncpoint for two different DB for ex VSAM and DB2 updates<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">25.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are extra partition & intra partition TDQs?
<br />Extra partition TDQs are datasets used for communication b’n CICS and other CICS/Batch regions. Intrapartition TDQs are queues for communication within regn.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">26.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is trigger level in the context of TDQs?
<br />For intrapartition TDQs specify the # records at which ATI happens. not applicable for extra partition TDQs.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">27.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is ENQ, DEQ ?
<br />Task control commands to make resources serially reusable.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">28.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is MDT? What are FSET, FRSET ?
<br />Modified Data Tag. Bit in the attribute byte indicating modification of field on screen. Happens on an input operation.
<br />FSET. Sets MDT on to ensure field is transmitted. Happens on an output operation.
<br />FRSET. Resets MDT. Until this happens, field continues to be sent.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">29.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is EXEC CICS RETRIEVE ?
<br />Used by STARTed tasks to get the parameters passed to them.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">30.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What do you do if you do not want characters entered by the user to be folded to uppercase ?
<br />Use ASIS option on RECEIVE.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">31.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What does the BUFFER option in RECEIVE mean ?
<br />Brings the entire datastream from the terminal buffer.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">32.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are SEND MAP MAPONLY & SEND MAP DATAONLY ?
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">33.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between a PF key & a PA key ?
<br />PF keys wake up the task and transmit modified data, PA keys only wake up the task.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">34.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Name some important fields in the EIB block ?
<br />EIBRESP, EIBCALEN, EIBRRCDE, EIBTASK, EIBDATE, EIBTIME<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">35.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can you use DYNAMIC calls in CICS ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;">Yes, the called routine must be defined in PPT and the calling program must use CALL identifier..<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">36.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you handle errors in CICS pgms ?
<br />Check EIBRESP after the call or use the HANDLE condition.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">37.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you use extended attributes ?
<br />Define EXTATT=YES and the correct terminal type.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">38.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Suppose pgm A passes 30 bytes to pgm B thru commarea and pgm B has defined its DFHCOMMAREA to be 50 bytes . Is there a problem ?
<br />Yes, if B tries to access bytes 31-50.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">39.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">When an XCTL is done, does the tranid change ? Is a new task created ? Does it cause an
<br />implicit SYNCPOINT to be issued ?
<br />No, No, Yes.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">40.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you execute a background CICS txn ?
<br />With a START or ATI.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">41.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you fire a batch job from a CICS txn ?
<br />Define an extrapartition TDQ as an internal reader and write the JCL to it. Terminate the JCL with /*EOF.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">42.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can a CICS region be attached to more than one DB2 subsystem ?
<br />no and yes. You can access objects of other db2 subsyetms by defining alias. However explicit access to remote db2 subsystem object is not possible<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">43.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What determines the DB2 subsystem to which a particular CICS region is attached ?
<br />RCT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">44.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the DSNC transaction used for ?
<br />for establishing link between cics and db2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">45.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the use of DSECT parameter in BMS?
<br />Is the parameter to generate a symbolic map.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">46.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Do you receive the attribute byte in the symbolic map?
<br />On EOF yes.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">47.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you make your BMS maps case sensitive?
<br />Use ASIS???
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">48.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is effect on RECEIVE MAP when<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt; font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">PF key is pressed? Data transmission may happen,<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt; font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">PA key is pressed? Data transmission will not happen.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">49.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the use of DCT?
<br />Destination Control Table used to define TDQs
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">50.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you handle error in a CICS program?
<br />Same as 36.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">51.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Name the macros used to define the following:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-size: 12pt;">MAP<span style=""> </span>MAPSET <span style=""> </span>FIELD
<br />DFHMSD<span style=""> </span>DFHMDI<span style=""> </span>DFHMDF<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">52.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can you use OCCURS in a BMS map?<span style=""> </span>If you do, what are the issues related with its use?
<br />Yes. cannot use group by clause???
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">53.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the meaning of BMS length of field = 0?
<br />Data was not entered in the field
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">54.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can you simply check if length = 0 for checking if a field was modified?
<br />No, not if ERASE EOF was used.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">55.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is ATI? What kind of TDQ can be used?
<br />Automatic Task Initiation. Intra partition TDQ.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">56.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Do you require a table entry for a TSQ?
<br />If recovery is needed.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">57.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Is there any entry for TSQs in CICS tables?
<br />Yes in the DFHTST.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">58.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between START and XCTL ?
<br />START is used to start a new task. It is a interval control command. XCTL is used to pass control to a program within the same task. It is a program control command.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">59.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can you define multiple maps in a BMS mapset?
<br />Yes.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">60.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How is the storage determined in the symbolic map, if you have multiple maps?
<br />Storage for maps redefine the first. This means largest map has to be the first.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">61.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the usage of language in the PPT entry?
<br />Language interface and call parameters???
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">62.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can you have CICS code in a copybook?<span style=""> </span>If yes, what happens during compilation?
<br />Yes. Needs to be preprocessed.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">63.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is an AICA abend?
<br />Runaway Task.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">64.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How would you resolve an ASRA abend?
<br />In COBOL II start with CEBR, and get the offset/instruction.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">65.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the steps you go through to a create a BMS executable?
<br />Assemble to create CSECT and Link
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">66.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How will you access a VSAM file using an alternate index?
<br />Thru the path. Define path as an FCT and use normal File control commands.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">67.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">I have TSQ with 15 items.<span style=""> </span>I want to delete the 10th item.<span style=""> </span>How do I do that?
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">68.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you rollback data written to an ESDS file?
<br />Define the file as recoverable. in cases where records have been inserted into the file, you may need to run a batch program to logically delete the inserted records.
<br /></span><span class="MsoCommentReference"><span style="font-size: 8pt;"><a style=""></a><!--[if !supportAnnotations]--><a class="msocomanchor" id="_anchor_1" onmouseover="msoCommentShow('_anchor_1','_com_1')" onmouseout="msoCommentHide('_com_1')" href="#_msocom_1" language="JavaScript" name="_msoanchor_1">[v1]</a><!--[endif]--><span style="display: none;"><span style=""> </span></span></span></span><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">69.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">I invoke a transaction from CICS.<span style=""> </span>The program has a code: MOVE DFHCOMMAREA TO WS-AREA.<span style=""> </span>What happens to this transaction?<span style=""> </span>What happens to the other transactions?
<br />Junk may get moved in. Will cause Storage violation. ????
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">70.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">When you do a START, what will the value of EIBCALEN?
<br />Zero.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">71.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">I have done a START BROWSE on a VSAM dataset.<span style=""> </span>Can I do another START BROWSE without doing an END BROWSE?
<br />No.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">72.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do I find the name of the CICS region inside my COBOL program?
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">73.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can you access QSAM (seq ) files from CICS ?
<br />No.
<br /> <!--[if !supportLineBreakNewLine]-->
<br /> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;">Can you access ESDS files from CICS ?
<br />Yes.</span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;"><o:p> </o:p></span></b></p> <p class="MsoTitle">VSAM-FAQs</p> <p class="MsoNormal"><b style=""><u><span style="font-size: 14pt;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the different types of VSAM files available?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">ESDS:<span style=""> </span>Entry Sequence Data Set<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">KSDS:<span style=""> </span>Key Sequence Data Set<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">RRDS:<span style=""> </span>Relative Data Set<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is IDCAMS ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">IDCAMS is the Access Method Services program. You run the IDCAMS program and supply AMS commands thru SYSIN. (examples of AMS commands are DELETE, DEFINE, REPRO etc..).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can AMS commands be run from the TSO prompt ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Yes<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Syntax of<span style=""> </span>AMS modal commands ? <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Note: these can be used only under IDCAMS and not from the TSO prompt.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">IF LASTCC(or MAXCC)<span style=""> </span>>(or <,= etc..) value - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">THEN - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">DO - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>command set (such as DELETE, DEFINE etc..) <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">ELSE - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">DO - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>command set <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">LASTCC<span style=""> </span>- Condition code from the last function(such as delete) executed<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">MAXCC - Max condition code that was returned by any of the prev functions<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">SET is also a valid AMS command. SET LASTCC (or MAXCC) = value<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">The maximum condition code is 16. A cond code of 4 indicates a warning. A cond code of 8 is usually encountered on a DELETE of a dataset that is not present.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Under IDCAMS , multiple functions can be executed, each of which returns a cond code. What will be the condition code returned to the operating system ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">The maximum condition code generated is returned as the condition code of the IDCAMS step. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is Control Interval, Control Area<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Control Interval is analogous to a physical block for QSAM files. It is the unit of i/o. Must be between 512 bytes to 32 k. Usually either 2K or 4K. A larger control interval increases performance for sequential processing while the reverse is true for random access. Under CICS when a record is locked, the entire CI gets locked.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Control area is a group of control intervals. CA is used during allocation. CA size is calculated based on the allocation type (cyl, tracks or records) and can be max of 1 cylinder<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is FREESPACE ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Coded in the DEFINE as FREESPACE(ci ca) where ci is the percentage of each control interval to be left free for insertions, ca is the percentage of control intervals in each control area to be left empty.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">8.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you decide on optimum values for CI, FREESPACE etc...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">CI size should be based on record length, type of processing. Usually CI is 4K. If record length is larger(>1K), chose 6K or 8K. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">FREESPACE should be large if more number of insertions are envisaged. Usual values are (20 20) when heavy updates are expected. CI size can be calculated.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">9.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Would you specify FREESPACE for an ESDS?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">No. Because you cannot insert records in an ESDS, also when you rewrite a record, it must be of the same length. Thus putting any value for freespace does not make any sense.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">10.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is SHAREOPTS ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">SHAREOPTS is a parameter in the DEFINE and specifies how an object can be shared among users. It is coded as SHAREOPTS(a b), where a is the cross region share option ie how two or more jobs on a single system can share the file, while b is the cross system share option ie how two or more jobs on different MVSes can share the file. Usual value is (2 3).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">11.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the meaning of each of the values in SHAREOPTS(2 3)?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Value of 2 for cross region means that the file can be processed simultaneously by multiple users provided only one of them is an updater. Value of 3 for cross system means that any number of jobs can process the file for input or output (VSAM does nothing to ensure integrity).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">12.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you define a KSDS ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">DEFINE CLUSTER(cluster name) with the INDEXED parameter. Also specify the ds name for the DATA component & the ds INDEX component. Other important parms are RECORDSIZE, KEYS, SHAREOPTIONS.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">13.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you define an ALTINDX ? How do you use ALTINDXs in batch, CICS pgms ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">DEFINE ALTERNATEINDEX. Important paramters are RELATE where you specify the base cluster name, KEYS, RECORDSIZE,SHAREOPTIONS,UNIQUEKEY(or NONUNIQUEKEY), DATA(ds name for the data component), INDEX(ds name for the index component).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Then DEFINE PATH. Important paramters are NAME (ds name for the path), PATHENTRY (ds name of the alternate index name), UPDATE(or NOUPDATE) which specifies whether an alt index is updated when a update to the base cluster takes place.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Then BLDINDEX. Parameters are INDATASET(ds name of base cluster), OUTDATASET(ds name of AIX).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Using alternate indexes in batch pgms:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">In the JCL, you must have DD stmts for the cluster and for the path(s). In the cobol pgm, SELECT .. ASSIGN TO ddname for base cluster RECORD KEY IS... ALTERNATE RECORD KEY IS..<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Using alternate indexes in CICS pgms:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">FCT entries must be created for both base cluster & the path. To read using the alternate index, use the dd name of the path in CICS file control commands.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">14.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What happens when you open an empty VSAM file in a COBOL program for input?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">A VSAM file that has never contained a record is treated as unavailable. Attempting to open for input will fail. An empty file can be opened for output only. When you open for output, COBOL will write a dummy record to the file & then delete it out.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">15.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you initialize a VSAM file before any operation? a VSAM with alternate index?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Can write a dummy program that just opens the file for output & then closes it. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">16.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What does a file status of 02 on a VSAM indicate?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Duplicate alternate key . Happens on both input and output operation<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">17.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you calculate record size of an alternate cluster?<span style=""> </span>Give your values for both unique and non-unique.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Unique Case:<span style=""> </span>5 + ( alt-key-length + primary-key )<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Nonunique Case: 5 + ( alt-key-length + n * primary-key )<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>where n = # of duplicate records for the alternate key<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">???? Ramesh - can you explain ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">18.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is the difference between sequential files and ESDS files?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><span style="font-size: 12pt;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Sequential(QSAM) files can be created on tape while ESDS files cannot.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Also, you can have ALTINDEX for an ESDS while no such facility exists for QSAM files.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">19.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you load a VSAM data set with records ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Using the<span style=""> </span>REPRO command. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">20.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you define a GDG ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Use the DEFINE GENERATIONDATAGROUP command. In the same IDCAMS step, another dataset must be defined whose DCB parameters are used when new generations of the GDG are created. This dataset is known as the model dataset. The ds name of this model dataset must be the same as that of the GDG, so use a disp of keep rather than catlg and also specify space=(trk,0)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">21.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Do all versions of the GDG have to be of the same record length ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">No,<span style=""> </span>the DCB of the model dataset can be overridden when you allocate new versions.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">22.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How are different versions of GDG named ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">base-file-name.GnnnnnV00 where nnnn= generation number (upto 255).<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">nnnn will be 0000 for the 1st generation.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">23.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Suppose 3 generations of a GDG exist. How would you reference the<span style=""> </span>1 st generation in the JCL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Use GDG name(-2).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">24.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Suppose a generation of GDG gets created<span style=""> </span>in a particular step of a proc. How would you refer the current<span style=""> </span>generation in a subsequent step? What would be the disposition of<span style=""> </span>this generation now? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Relative generation numbers are updated only at the end of the job, not at the end of a step. To allocate a new generation, we would be using (+1) with a DISP of<span style=""> </span>(NEW,CATLG,DELETE). To refer to this in a subsequent step in the same job, we would again use (+1) but with a DISP of SHR or OLD.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">25.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What more info you should give in the DD statement while defining the next generation of a GDG? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">Give (+1) as the generation number, give (new,catlg) for disp, give space parameter, can give the dcb parameter if you want to override the dcb of the model dataset.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">26.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Assuming that the DEFINE jcl is not available, how do you get info about a VSAM file’s organisation ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Use the LISTCAT command.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">27.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">During processing of a VSAM file, some system error occurs and it is subsequently unusable . What do you do ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-size: 12pt;">Run VERIFY. <o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;"><o:p> </o:p></span></b></p> <span style="font-size: 12pt; font-family: "Times New Roman";">
<br /> </span> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">54.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What is SSRANGE, NOSSRANGE ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-size: 12pt;">These are compiler options w.r.t subscript out of range checking. NOSSRANGE is the default and if chosen, no run time error will be flagged if your index or subscript goes out of the permissible range.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">55.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How do you set a return code to the JCL from a COBOL program?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-size: 12pt;">Move a value to RETURN-CODE register. RETURN-CODE should not be declared in your program.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">56.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">How can you submit a job from COBOL programs?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">Write JCL cards to a dataset with <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-size: 12pt;">//xxxxxxx SYSOUT=(A,INTRDR) where ‘A’ is output class, and dataset should be opened for output in the program. Define a 80 byte record layout for the file.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">57.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the differences between OS VS COBOL and VS COBOL II?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">OS/VS Cobol pgms can only run in 24 bit addressing mode, VS Cobol II pgms can run either in 24 bit or 31 bit addressing modes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: 14.7pt;"><span style="font-size: 12pt;">Report writer is supported only in OS/VS Cobol.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>USAGE IS POINTER is supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>Reference modification eg: WS-VAR(1:2) is supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>EVALUATE is supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>Scope terminators are supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>OS/VS Cobol follows ANSI 74 stds while VS COBOL II follows ANSI 85 stds.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 12pt;">Under CICS Calls between VS COBOL II programs are supported.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">58.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">What are the steps you go through while creating a COBOL program executable?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 12pt;">DB2 precompiler(if embedded sql used), CICS translator (if CICS pgm), Cobol compiler, Link editor.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><span style=""> </span><span style=""> </span>If DB2 program, create plan by binding the DBRMs.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">59.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">Can you call an OS VS COBOL pgm from a VS COBOL II<span style=""> </span>pgm ?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: 14.7pt;"><span style="font-size: 12pt;">In non-CICS environment, it is possible. In CICS, this is not possible.<o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><o:p> </o:p></p> <div style=""><!--[if !supportAnnotations]--> <hr class="msocomoff" size="1" width="33%" align="left"> <!--[endif]--> <div style=""><!--[if !supportAnnotations]--> <div id="_com_1" class="msocomtxt" language="JavaScript" onmouseover="msoCommentShow('_anchor_1','_com_1')" onmouseout="msoCommentHide('_com_1')"><!--[endif]--><span style=""><!--[if !supportAnnotations]--><a name="_msocom_1"></a><!--[endif]--></span> <p class="MsoCommentText"><o:p> </o:p></p> <!--[if !supportAnnotations]--></div> <!--[endif]--></div> </div> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-10524554463232461832008-07-03T03:53:00.001-07:002008-12-23T21:45:21.641-08:00JOB CONTROL LANGUAGE(JCL)<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:宋体; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"Book Antiqua"; panose-1:2 4 6 2 5 3 5 3 3 4; mso-font-charset:0; mso-generic-font-family:roman; mso-font-pitch:variable; mso-font-signature:647 0 0 0 159 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal"><b style=""><span style="font-size: 16pt;">
<br /><o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><i style=""><u><span style="font-family: "Book Antiqua";">The following are the most Frequently Asked Questions<span style=""> </span>(FAQS) :</span></u></i></b><b style=""><span style="font-family: "Book Antiqua";"><o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-family: "Book Antiqua";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q</b><b style=""><span style="font-family: "Book Antiqua";">1)</span><span style=""> </span>What is a Generation Data Group (GDG)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A1)<span style=""> </span>Generation Data Group is a group of chronologically or functionally related datasets. GDGs are processed periodically, often by adding a new generation, retaining previous generations, and sometimes discarding the oldest generation.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q2)<span style=""> </span>How is a GDG base created?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;">A2)<span style=""> </span>A GDG base is created in the system catalog and keeps track of the generation numbers used for datasets in the group. IDCAMS utility is used to define the GDG base.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q3)<span style=""> </span>What is model dataset label(Model DSCB)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;">A3)<span style=""> </span>A model dataset label is a pattern for the dataset label created for any dataset named as a part of the GDG group. The system needs an existing dataset to serve as a model to supply the DCB parameters for the generation data group one wishes to create. The model dataset label must be cataloged. The model DSCB name is placed on the DCB parameter on the DD statement that creates the generation data group.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q4)<span style=""> </span>How are GDGs concatenated?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;">A4)<span style=""> </span>Generation Data<span style=""> </span>Groups are concatenated by specifying each dataset name and the generation number for all generations of the generation data group.<span style=""> </span>Otherwise to have all generations of a generation data group, omit the generation number. The DD statement will refer to all generations. The result is the same as if all individual datasets were concatenated. If generations are not on the same volume, this will not work.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q5)<span style=""> </span>How is a new GDG coded?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;">A5)<span style=""> </span>A new GDG is coded as (+1) after the dataset name as follows: DSN=JAN.DATA(+1). This will cause all generations to be pushed down one level at the end of the job.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q6)<span style=""> </span>When should DISP=MOD is used?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;">A6)<span style=""> </span>DISP=MOD is used to either extend an existing sequential dataset or to create a dataset if it does not exist. If the dataset exists, then records are appended to the dataset at the end of the existing dataset. If the dataset does not exist, the system treats MOD as if it were NEW, provided that the volume parameter has not been used. If the volume parameter is used, the system terminates the job and does not create the new dataset. MOD can be used to add to a dataset that extends onto several volumes. Always specify a disposition of CATLG with MOD for cataloged datasets, even if they are already cataloged, so that any additional volume serial numbers will be recorded in the catalog.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q7)<span style=""> </span>How is a dataset passed from<span style=""> </span>one step to another?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;">A7)<span style=""> </span>A dataset is passed from one step to another based on what is coded on the DISP parameter. The dataset can only be passed to subsequent steps if PASS was used on the disposition parameter.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q8)<span style=""> </span>How are datasets concatenated?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;">A8)<span style=""> </span>Datasets are concatenated by writing a normal DD statement for the first dataset and then adding a DD statement without a DDNAME for each dataset to be concatenated in the order they are to be read. The following is an example of three datasets concatenated:</p> <p class="MsoNormal" style="margin-left: 45pt;">//YEARDAT<span style=""> </span>DD<span style=""> </span>DSN=JAN.DATA,DISP=SHR</p> <p class="MsoNormal" style="margin-left: 45pt;">//<span style=""> </span>DD<span style=""> </span>DSN=FEB.DATA,DISP=SHR</p> <p class="MsoNormal" style="margin-left: 45pt;">//<span style=""> </span>DD<span style=""> </span>DSN=MAR.DATA,DISP=SHR</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q9)<span style=""> </span>What is the difference between the JOBLIB and the STEPLIB statements?<o:p></o:p></b></p> <p class="MsoNormal" style="">A9)<span style=""> </span>The JOBLIB statement is placed after the JOB statement and is effective for all job steps. It cannot be placed in a </p> <p class="MsoNormal" style=""><span style=""> </span>cataloged procedure. The STEPLIB statement is placed after the EXEC statement and is effective for that job step </p> <p class="MsoNormal" style=""><span style=""> </span>only. Unlike the JOBLIB statement, the STEPLIB can be placed in a cataloged procedure.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q10)<span style=""> </span>Name some of<span style=""> </span>the JCL statements that are not allowed in procs.?<o:p></o:p></b></p> <p class="MsoNormal" style="">A10)<span style=""> </span>Some of the JCL statements which are not allowed in procedures are:</p> <p class="MsoNormal" style="margin-left: 76.5pt; text-indent: -4.5pt;">1.<span style=""> </span>JOB, Delimiter(/*), or Null statements</p> <p class="MsoNormal" style="margin-left: 1in;">2. JOBLIB or JOBCAT DD<span style=""> </span>statements</p> <p class="MsoNormal" style="margin-left: 1in;">3. DD * or DATA statements</p> <p class="MsoNormal" style="margin-left: 1in;">4. Any JES2 or JES3 control statements</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q11)<span style=""> </span>What is primary allocation for a dataset?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A11)<span style=""> </span>The space allocated when the dataset is first created.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q12)<span style=""> </span>What is the difference between primary and secondary allocations for a dataset?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A12)<span style=""> </span>Secondary allocation is done when more space is required than what has already been allocated. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q13)<span style=""> </span>How many extents are possible for a sequential file ? For a VSAM file ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A13)<span style=""> </span>16 extents on a volume for a sequential file and 123 for a VSAM file.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q14)<span style=""> </span>What does a disposition of (NEW,CATLG,DELETE) mean? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A14)<span style=""> </span>That this is a new dataset and needs to be allocated,<span style=""> </span>to CATLG the dataset if the step is successful and to delete the dataset if the step abends.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q15)<span style=""> </span>What does a disposition of (NEW,CATLG,KEEP) mean? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A15)<span style=""> </span>That this is<span style=""> </span>a new dataset and needs to be allocated, to CATLG the dataset if the step is successful and to KEEP but not CATLG the dataset if the step abends. Thus if the step abends, the dataset would not be catalogued and we would need to supply the vol. ser the next time we refer to it.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q16)<span style=""> </span>How do you access a file that had a disposition of KEEP? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A16)<span style=""> </span>Need to supply Volume Serial<span style=""> </span>Number VOL=SER=xxxx.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q17)<span style=""> </span>MOD, DELETE;<span style=""> </span>What does a disposition of (,DELETE) mean ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A17)<span style=""> </span>The MOD will cause the dataset to be created (if it does not exist),<span style=""> </span>and then the two DELETEs will cause the dataset to be deleted whether the step abends or not. This disposition is used to clear out a dataset at the beginning of a job. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q18)<span style=""> </span>What is the DD statement for a output file?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A18)<span style=""> </span>Unless allocated earlier, will have the following parameters:<span style=""> </span>DISP=(NEW,CATLG,DELETE), UNIT , SPACE & DCB </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q19)<span style=""> </span>What do you do if you do not want to keep all the space allocated to a dataset? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A19)<span style=""> </span>Specify the parameter<span style=""> </span>RLSE ( release ) in the SPACE e.g. SPACE=(CYL,(50,50),RLSE)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q20)<span style=""> </span>What is DISP= (NEW,PASS,DELETE)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A20)<span style=""> </span>This is a new file and create it, if the step terminates normally, pass it to the subsequent steps and if step abends, delete it.<span style=""> </span>This dataset will not exist beyond the JCL.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q21)<span style=""> </span>How do you create a temporary dataset?<span style=""> </span>Where will you use them?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A21)<span style=""> </span>Temporary datasets can be created either by not specifying any DSNAME or by specifying the temporary file indicator as in DSN=&&TEMP. We use them to carry the output of one step to another step in the same job. The dataset will not be retained once the job completes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q22)<span style=""> </span>How do you restart a PROC from a particular step? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A22)<span style=""> </span>In job card, specify RESTART=PROCSTEP.STEPNAME where PROCSTEP = name of the JCL step that invoked the PROC and STEPNAME = name of the PROC step where you want execution to start</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q23)<span style=""> </span>How do you skip a particular step in a proc/JOB? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A23)<span style=""> </span>Can use either condition codes or use the jcl control statement IF (only in ESA JCL)\</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q24)<span style=""> </span>A PROC has five steps.<span style=""> </span>Step 3 has a condition code.<span style=""> </span>How can you override/nullify this condition code? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A24)<span style=""> </span>Provide the override on the EXEC stmt in the JCL as follows:</p> <p class="MsoNormal" style="margin-left: 27pt;">//STEP001 EXEC procname, COND.stepname=value</p> <p class="MsoNormal" style="margin-left: 27pt;">All parameters on an EXEC stmt in the proc such as COND, PARM have to be overridden like this.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q25)<span style=""> </span>How do you override a specific DDNAME/SYSIN in PROC from a JCL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A25)<span style=""> </span>//<stepname.dd><span style=""> </span>DSN=...</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q26)<span style=""> </span>What is NOTCAT 2 - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A26)<span style=""> </span>This is an MVS message indicating that a duplicate catalog entry exists. E.g., if you already have a dataset with dsn = 'xxxx.yyyy' and u try to create one with disp new, catlg, you would get this error. the program open and write would go through and at the end of the step the system would try to put it in the system catalog. at this point since an entry already exists the catlg would fail and give this message. you can fix the problem by deleting/uncataloging the first data set and going to the volume where the new dataset exists(this info is in the msglog of the job) and cataloging it.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q27)<span style=""> </span>What is 'S0C7' abend? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A27)<span style=""> </span>Caused by invalid data in a numeric field.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q28)<span style=""> </span>What is a S0C4 error ? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A28)<span style=""> </span>Storage violation error - can be due to various reasons. e.g.: READING a file that is not open, invalid address referenced due to subscript error.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q29)<span style=""> </span>What are SD37, SB37, SE37 abends?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A29)<span style=""> </span>All indicate dataset out of space. SD37 - no secondary allocation was specified. SB37 - end of vol. and no further volumes specified.<span style=""> </span>SE37 - Max. of 16 extents already allocated.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q30)<span style=""> </span>What is S322 abend ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A30)<span style=""> </span>Indicates a time out abend. Your program has taken more CPU time than the default limit for the job class. Could indicate an infinite loop.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q31)<span style=""> </span>Why do you want to specify the REGION parameter in a JCL step? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A31)<span style=""> </span>To override the REGION defined at the JOB card level.<span style=""> </span>REGION specifies the max region size. REGION=0K or 0M or omitting REGION means no limit will be applied.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q32)<span style=""> </span>What does the TIME parameter signify ? What does TIME=1440 mean ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A32)<span style=""> </span>TIME parameter can be used to overcome S322 abends for programs that genuinely need more CPU time. TIME=1440 means no CPU time limit is to be applied to this step.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q33)<span style=""> </span>What is COND=EVEN ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A33)<span style=""> </span>Means execute this step even if any of the previous steps, terminated abnormally.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q34)<span style=""> </span>What is COND=ONLY ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A34)<span style=""> </span>Means execute this step only if any of the previous steps, terminated abnormally.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q35)<span style=""> </span>How do you check the syntax of a JCL without running it?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A35)<span style=""> </span>TYPERUN=SCAN on the JOB card or use JSCAN.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q36)<span style=""> </span>What does IEBGENER do?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A36)<span style=""> </span>Used to copy one QSAM file to another. Source dataset should be described using SYSUT1 ddname. Destination dataset should be described using SYSUT2. IEBGENR can also do some reformatting of data by supplying control cards via SYSIN.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q37)<span style=""> </span>How do you send the output of a COBOL program to a member of<span style=""> </span>a PDS?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A37)<span style=""> </span>Code the DSN as PDS (member) with a DISP = SHR. The DISP applies to the PDS and not to a specific member.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q38)<span style=""> </span>I have multiple jobs ( JCLs with several JOB cards ) in a member.<span style=""> </span>What happens if I submit it?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A38)<span style=""> </span>Multiple jobs are submitted (as many jobs as the number of JOB cards). </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q39)<span style=""> </span>I have a COBOL program that Accepts some input data.<span style=""> </span>How do you code the JCL statement for this? <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 27pt;"><b style="">( How do you code instream data in a JCL? )<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A39)<span style=""> </span>//SYSIN DD*</p> <p class="MsoNormal" style="margin-left: 0.4in;">input data</p> <p class="MsoNormal" style="margin-left: 0.4in;">input data</p> <p class="MsoNormal" style="margin-left: 0.4in;">/*</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q40)<span style=""> </span>Can you code instream data in a PROC ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A40)<span style=""> </span>No.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q41)<span style=""> </span>How do you overcome this limitation ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A41)<span style=""> </span>One way is to code SYSIN DD DUMMY in the PROC, and then override this from the JCL with instream data.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q42)<span style=""> </span>How do you run a COBOL batch program from a JCL?<span style=""> </span>How do you run a COBOL/DB2 program?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A42)<span style=""> </span>To run a non DB2 program,</p> <p class="MsoNormal" style="margin-left: 45pt;">//STEP001 EXEC PGM=MYPROG</p> <p class="MsoNormal" style="margin-left: 45pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 45pt;">To run a DB2 program,</p> <p class="MsoNormal" style="margin-left: 45pt;">//STEP001 EXEC PGM=IKJEFT01</p> <p class="MsoNormal" style="margin-left: 45pt;">//SYSTSIN DD *</p> <p class="MsoNormal" style="margin-left: 45pt;">DSN SYSTEM(....)</p> <p class="MsoNormal" style="margin-left: 45pt;">RUN PROGRAM(MYPROG)</p> <p class="MsoNormal" style="margin-left: 45pt;">PLAN(.....)<span style=""> </span>LIB(....)<span style=""> </span>PARMS(...)</p> <p class="MsoNormal" style="margin-left: 45pt;">/*</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q43)<span style=""> </span>What is STEPLIB, JOBLIB?<span style=""> </span>What is it used for? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A43)<span style=""> </span>Specifies that the private library (or libraries) specified should be searched before the default system libraries in order to locate a program to be executed. STEPLIB applies only to the particular step, JOBLIB to all steps in the job.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q44)<span style=""> </span>What is order of searching of the libraries in a JCL? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A44)<span style=""> </span>First any private libraries as specified in the STEPLIB or JOBLIB, then the system libraries such as SYS1.LINKLIB. The system libraries are specified in the link list. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q45)<span style=""> </span>What happens if both JOBLIB and STEPLIB is specified ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A45)<span style=""> </span>JOBLIB is ignored.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q46)<span style=""> </span>When you specify mutiple datasets in a JOBLIB or STEPLIB, what factor determines the order? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A46)<span style=""> </span>The library with the largest block size should be the first one.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q47)<span style=""> </span>How to change default PROCLIB?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A47)<span style=""> </span>//ABCD<span style=""> </span>JCLLIB ORDER=(ME.MYPROCLIB,SYS1.PROCLIB)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q48)<span style=""> </span>The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The DISP in the JCL is SHR and the program opens the file in EXTEND mode. What happens ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A48)<span style=""> </span>Records will be written to end of file (append) when a WRITE is done in both cases.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q49)<span style=""> </span>What are the valid DSORG values ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A49)<span style=""> </span>PS - QSAM, PO - Partitioned, IS - ISAM</p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q50)<span style=""> </span>What are the differences between JES2 & JES3 ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A50)<span style=""> </span>JES3 allocates datasets for all the steps before the job is scheduled. In JES2, allocation of datasets required by a step are done only just before the step executes.</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q51)<span style=""> </span>What are the causes for S0C1, S0C4, S0C5, S0C7, S0CB abends ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A51)<span style=""> </span>S0C1-May be due to 1.Missing or misspelled DD name 2.Read/Write to unopened dataset 3.Read to dataset opened </p> <p class="MsoNormal" style="text-indent: 27pt;"><span style=""> </span>output 4.Write to dataset opened input 5.Called subprogram not found</p> <p class="MsoNormal" style="margin-left: 27pt;">S0C4-may be due to 1.Missing Select statement(during compile) 2.Bad Subscript/index 3.Protection Exception </p> <p class="MsoNormal" style="text-indent: 27pt;"><span style=""> </span>4.Missing parameters on called subprogram 5.Read/Write to unopened file 6.Move data from/to unopened file</p> <p class="MsoNormal" style="margin-left: 27pt;">S0C5-May be due to 1.Bad Subscript/index 2.Closing an unopened dataset 3.Bad exit from a perform 4.Access to I/O </p> <p class="MsoNormal" style=""><span style=""> </span>area(FD) before read</p> <p class="MsoNormal" style="margin-left: 27pt;">S0C7-may be due to 1.Numeric operation on non-numeric data 2.Un-initialize working-storage 3.Coding past the </p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>maximum allowed sub script </p> <p class="MsoNormal" style="margin-left: 27pt;">S0CB-may be due to 1.Division by Zero</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q52)<span style=""> </span>What are the kinds of job control statements? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A52)<span style=""> </span>The JOB, EXEC and DD statement. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q53)<span style=""> </span>What is the meaning of keyword in JCL?<span style=""> </span>What is its opposite? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A53)<span style=""> </span>A keyword in a JCL statement may appear in different places and is recognized by its name, eg. MSGCLASS in the JOB statement.<span style=""> </span>The opposite is positional words, where their meaning is based on their position in the statement, eg. in the DISP keyword the =(NEW,CATLG,DELETE) meanings are based on first, second and third position. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q54)<span style=""> </span>Describe the JOB statement, its meaning, syntax and significant keywords?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A54)<span style=""> </span>The JOB statement is the first in a JCL stream.<span style=""> </span>Its format is // jobname, keyword JOB, accounting information in brackets and keywords, MSGCLASS, MSGLEVEL, NOTIFIY, CLASS, etc. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q55)<span style=""> </span>Describe the EXEC statement, its meaning, syntax and keywords? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A55)<span style=""> </span>The EXEC statement identifies the program to be executed via a PGM= program name keyword.<span style=""> </span>Its format is //jobname EXEC PGM= program name.<span style=""> </span>The PARM= keyword can be used to pass external values to the executing program. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q56)<span style=""> </span>Describe the DD statement, its meaning, syntax and keywords?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A56)<span style=""> </span>The DD statement links the external dataset name (DSN) to the DDNAME coded within the executing program.<span style=""> </span>It links the file names within the program code to the file names know to the MVS operating system. The syntax is // ddname DD DSN=dataset name.<span style=""> </span>Other keywords after DSN are DISP, DCB, SPACE, etc. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q57)<span style=""> </span>What is a PROC? What is the difference between an instream and a catalogued PROC? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A57)<span style=""> </span>PROC stands for procedure.<span style=""> </span>It is 'canned' JCL invoked by a PROC statement. An instream PROC is presented within the JCL; a catalogued PROC is referenced from a proclib partitioned dataset. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q58)<span style=""> </span>What is the difference between a symbolic and an override in executing a PROC? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A58)<span style=""> </span>A symbolic is a PROC placeholder; the value for the symbolic is supplied when the PROC is invoked, eg. &symbol=value.<span style=""> </span>An override replaces the PROC's statement with another one; it substitutes for the entire statement. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q59)<span style=""> </span>What is RESTART? How is it invoked? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A59)<span style=""> </span>RESTART is a JOB statement keyword. It is used to restart the job at a specified step rather than at the beginning. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q60)<span style=""> </span>What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A60)<span style=""> </span>GDG stands for generation data group.<span style=""> </span>It is a dataset with versions that can be referenced absolutely or relatively.<span style=""> </span>It is defined by an IDCAMS define generation datagroup execution. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q61)<span style=""> </span>Explain concatenating datasets? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A61)<span style=""> </span>Datasets can be grouped in a DD statement one after another, eg. in a JOBLIB statement where the load module can exist in one of many datasets. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q62)<span style=""> </span>What is the difference between specifying DISP=OLD and DISP=SHR for a dataset? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A62)<span style=""> </span>DISP=OLD denotes exclusive control of the dataset; DISP=SHR means there is no exclusivity. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q63)<span style=""> </span>What is MOD and when would you use it? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A63)<span style=""> </span>DISP=MOD is used when the dataset can be extended, ie, you can add records at the end of an existing dataset. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q64)<span style=""> </span>What are the keywords associated with DCB?<span style=""> </span>How can you specify DCB information? What is the OS precedence for obtaining that DCB information, ie. where does the system look for it first? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A64)<span style=""> </span>The keywords associated with the DCB parameter are LRECL, RECFM, BLKSIZE and DSORG.<span style=""> </span>The DCB information can be supplied in the DD statement.<span style=""> </span>The system looks for DCB information in the program code first. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q65)<span style=""> </span>How do you designate a comment in JCL? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A65)<span style=""> </span>The comment statement is //*<span style=""> </span>followed by the comments.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q66)<span style=""> </span>What is the meaning of the EXEC statement keyword, COND?<span style=""> </span>What is its syntax? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A66)<span style=""> </span>COND specifies the conditions for executing the subsequent job step.<span style=""> </span>The value after the COND=<span style=""> </span>is compared to the return codes of the preceding steps and if the comparison is true, the step is bypassed. (If this answer confuses you, welcome to the club - memorize it and don't ask questions!) </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q67)<span style=""> </span>What is the improvement to COND= in the latest version of MVS? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A67)<span style=""> </span>MVS now allows for an IF bracketed by an END IF around any job step to replace the COND= syntax. Again, if the IF statement is true, the step is bypassed. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q68)<span style=""> </span>What is the purpose of the PARM keyword in the EXEC statement? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A68)<span style=""> </span>The value after the PARM=<span style=""> </span>specifies control information to be passed to the executing program of the job step. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q69)<span style=""> </span>What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A69)<span style=""> </span>REGION specifies the maximum CPU memory allocated for a particular job or job step.<span style=""> </span>If REGION is in the JOB card, it relates to the entire job;<span style=""> </span>if in the EXEC statement, it relates to the job step. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q70)<span style=""> </span>What is the purpose and meaning of the TIME keyword and what JCL statement is it associated with?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A70)<span style=""> </span>TIME specifies the maximum CPU time allocated for a particular job or job step.<span style=""> </span>If TIME is in the JOB card, it relates to the entire job;<span style=""> </span>if in the EXEC statement, it relates to the job step. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q71)<span style=""> </span>What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A71)<span style=""> </span>Data definition name is the eight character designation after the // of the DD statement. It matches the internal name specified in the steps executing program.<span style=""> </span>In COBOL that's the name specified after the ASSIGN in the SELECT ASSIGN statement. Dataset name is the operating system (MVS) name for the file. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q72)<span style=""> </span>How is the keyword DUMMY used in JCL? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A72)<span style=""> </span>For an output file DUMMY specifies that the output is to be discarded.<span style=""> </span>For input it specifies that the file is empty.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q73)<span style=""> </span>What does the keyword DCB mean and what are some of the keywords associated with it? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A73)<span style=""> </span>DCB stands for data control block; it is a keyword for the DD statement used to describe datasets. Keywords associated with it are BLKSIZE, DEN, LRECL and RECFM. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q74)<span style=""> </span>What is the difference between BLKSIZE and LRECL? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A74)<span style=""> </span>LRECL is the logical record length , where as BLKSIZE is multiples of LRECL </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q75)<span style=""> </span>Can you execute a PROC from another PROC? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A75)<span style=""> </span>I did not know the answer and my interviewer said NO. Later I tried and executed PROC from a PROC, three levels deep. Manuals do not state any limit on PROC calling PROC, or nesting.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q76)<span style=""> </span>What will happen if you attempt to restart a job in the middle of a JCL // IF .... // ENDIF?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A76)<span style=""> </span>Job will fall through to the ENDIF (not executing any steps), then resume execution with the first step AFTER the // ENDIF.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q77)<span style=""> </span>How many positional parameters are there in job statement? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A77)<span style=""> </span>There are two position parameters in job statement. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q78)<span style=""> </span>What are three parameters you can specify on Job statement as well as on exec stmt ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A78)<span style=""> </span>Time, Region and Cond parameters</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q79)<span style=""> </span>How can you trap abends in the JCL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A79)<span style=""> </span>Use IF ABEND statement in the JCL.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q80)<span style=""> </span>How do you restart a step in JCL? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A80)<span style=""> </span>Use RESTART=step name.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q81)<span style=""> </span>How do you pass parameters to the program as the job is being executed ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A81)<span style=""> </span>By using 'parm' parameter in exec statement. the value mentioned here should be declared in linkage section in the program and process thru procedure division. this technique is very useful when you do not know the parameters at the time of coding the programs.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q82)<span style=""> </span>Why do you use a control card?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A82)<span style=""> </span>A control card can be a member of a pds or a sequential dataset and is used for storing the date fields, Definitions of VSAM files....etc. You use control card because you cannot use a instream procedure in a procedure. Generally you will be calling a Proc from your Jcl and you cannot code instream procedure in the Proc and so you will point to the dataset which is called control card.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q83)<span style=""> </span>How do you submit JCL via a Cobol program? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A83)<span style=""> </span>In your JCL define as //JOBA JOB 1111, JOB1 //STEP01 EXEC PGM=PROG1 //ddname DD SYSOUT=(*,INTRDR)....and your COBOL(PROG1) should look like this SELECT JCL-FILE ASSIGN TO ddname. Open this file and write the JCL statements into this file. E.g. MOVE '//TESTJOB JOB 1111,VISVEISH' TO JCL-REC.MOVE '//STEP01 EXEC PGM=IEFBR14' TO JCL- REC and close this file. Then TESTJOB will be submitted.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q84)<span style=""> </span>How do you submit a JCL under CICS environment ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A84)<span style=""> </span>Pass all the jcl codes to a COBOL variable(should be declare using OCCURS clause) and the write the line one by one to the spool using CICS commands like SPOOLClose SPOOLOpen SPOOLWrite . For more help reffer CECI of CICS or CICS manual </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q85)<span style=""> </span>What is the parameter to be passed in the job card for the unlimited time , irrespective of the job class ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A85)<span style=""> </span>TIME=1440</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q86)<span style=""> </span>Definition of COND parameter in JCL <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A86)<span style=""> </span>COND is a condition parameter, consists of 2 sub parameters, 1st - return code from the previous step, 2nd -<span style=""> </span>condition. If COND is true, the step on which COND is coded will be BYPASSED.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q87)<span style=""> </span>What is meant by S0C7 system abend code?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A87)<span style=""> </span>S0C7 - Data exception error - you will get it whenever you are trying to move the low values or spaces into the numeric field, or compare the numeric fields with low values, or try to do some arithmetic operations on the low values. To avoid this you have to always initialize the numeric fields otherwise they will contain the low values.</p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q88)<span style=""> </span>How to pass the temp dataset form one JOB step to another?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A88)<span style=""> </span>By specifying the DISP as PASS for the temp dataset</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q89)<span style=""> </span>What is a COND parameter in JCL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A89)<span style=""> </span>COND means condition parameter. It is compared with system return code of previous step.//step1 exec pgm=abcd//step2 exec pgm=xyz, cond=(4,lt)step2 will be executed when system return code of step1 is less than 4.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q90)<span style=""> </span>Write a jcl to execute a job by 7 a.m on Jan 20,1986 ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A90)<span style=""> </span>THE code IS : //*MAIN DEADLINE=(0700,B,012086)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q91)<span style=""> </span>How many types of libraries are there in JCL ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A91)<span style=""> </span>Libraries are of three types.1.Sytem Libraries: SUCH AS SYS1.LINKLIB2.Private Libraries: SPECIFIED IN A JOBLIB OR STEPLIB DD STATEMENTS.3.Temporary Libraries: CREATED IN A PREVIOUS STEP OF THE JOB.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q92)<span style=""> </span>What u mean by include statement in JCL ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A92)<span style=""> </span>An include statement identifies a member of a pds or pdse that contains. This set of JCL statements is called an include group. The system replaces the include statement with the statements in the include group.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q93)<span style=""> </span>The maximum number of in-stream procedure you can code in any JCL is ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A93)<span style=""> </span>Fifteen(15).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q94)<span style=""> </span>What you mean by skeleton JCl?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A94)<span style=""> </span>Jcl which changes during run time i.e. the values for the jcl such as pgm name , dd name will change .ie same jcl can be used for various job, equivalent to dynamic sql...</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q95)<span style=""> </span>How do you submit a JCL under CICS environment ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A95)<span style=""> </span>Edit the JCL in Extra partition TDQ and submit the same using some system command (not sure) under CICS subsystem. This is what i think, please clarify....</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q96)<span style=""> </span>What is JCL ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A96)<span style=""> </span>JCL is Job Control Language and is used for Batch processing. The startup procedures of OS and standard products like CICS etc are written in JCL. It is interface between operating system(MVS) & application program. when 2 related programs are combined together on control statements is called job control language</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q97)<span style=""> </span>What is the max blocksize for a Tape file?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A97)<span style=""> </span>It is 32,760.Based on that we can calculate efficient number of Records in a Block</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q98)<span style=""> </span>What are the basic JCL Statements for a Job?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A98)<span style=""> </span>JOB <span style=""> </span>: Identifies a job and supplies accounting info </p> <p class="MsoNormal" style="margin-left: 27pt;">EXEC<span style=""> </span><span style=""> </span><span style=""> </span>: Identifies a job step by indicating the name of the program to be executed. </p> <p class="MsoNormal" style="margin-left: 27pt;">DD<span style=""> </span><span style=""> </span><span style=""> </span><span style=""> </span>: Identifies a data set to be allocated for the job step </p> <p class="MsoNormal" style="margin-left: 27pt;">Delimiter(/*)<span style=""> </span>: Marks the end of an in-stream dataset </p> <p class="MsoNormal" style="margin-left: 27pt;">Null(//)<span style=""> </span><span style=""> </span><span style=""> </span>: Marks the end of a job </p> <p class="MsoNormal" style="margin-left: 27pt;">Comments(//*)<span style=""> </span>: Provides Comments </p> <p class="MsoNormal" style="margin-left: 27pt;">PROC<span style=""> </span><span style=""> </span>: Marks the beginning of a procedure </p> <p class="MsoNormal" style="margin-left: 27pt;">PEND<span style=""> </span><span style=""> </span><span style=""> </span><span style=""> </span>: Marks the end of a procedure </p> <p class="MsoNormal" style="margin-left: 27pt;">OUTPUT<span style=""> </span><span style=""> </span><span style=""> </span>: Supplies options for SYSOUT processing. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q99)<span style=""> </span>What does the statements: typrun=scan and typrun=hold do in a JCL statement <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A99)<span style=""> </span>typrun=scan checks the JCL for errors, typrun=hold holds the job until further notice. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q100)<span style=""> </span>Which is the most widely used batch performance monitor for DB2?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A100)<span style=""> </span>DB2PM</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q101)<span style=""> </span>What is QSAM error usually when it is occurs?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A101)<span style=""> </span>Usually it is occurs at the time of job submission. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q102)<span style=""> </span>What is the purpose of include statement in a JCL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A102)<span style=""> </span>It is used as an alternative for STEPLIB. When we specify the dataset name in include ,it will search in all the datasets specified in the include dataset.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q103)<span style=""> </span>What does S0C4 error mean?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A103)<span style=""> </span>This error is faced when we execute the COBOL program. The main reason for this error is that a variable is defined with less characters and we are trying to move data which is larger than the actual storage space.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q104)<span style=""> </span>In which table PLAN is registered in ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A104)<span style=""> </span>RCT</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q105)<span style=""> </span>What is GDG?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A105)<span style=""> </span>GDG - group of dataset that are logically or chronologically related, referred by name and a relative generation number - an integer which identifies the generation of a dataset and is coded in parentheses after dataset name. Absolute GDG name - GxxxxVyy, where xxxx-absolute gen. number, yy-version number. Can be sequential, direct, partitioned. (VSAM - no). Must always be cataloged. Advantage - all datasets have the same name and system keeps track of adding new and retaining previous generations and deleting oldest successive generation. To create a GDG we create a GDG index in the system catalog with IDCAMS utility and then a model (prototype, DSCB) on the same volume to supply DCB information. Empty - when limit is reached all members are removed from the index, otherwise-only oldest. Scratch-removed members are uncataloged & deleted, otherwise - removed & uncataloged, but remain in the system<span style=""> </span>(not members of GDG any more). GDG number is updated at the end of the job. If number is not specified all generations will be processed from the beginning</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q106)<span style=""> </span>what do you mean By spooling? Expand SPOOL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A106)<span style=""> </span>This is managed by JES. This is used for Queuing the Outputs that are intended for Printing and are first stored in SPOOLDASD. This can be managed Using </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q107)<span style=""> </span>For how long a job can be executed continuously in a mainframe ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A107)<span style=""> </span>248 DAYS</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q108)<span style=""> </span>Max. No of DD statements in a job ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A108)<span style=""> </span>3273</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q109)<span style=""> </span>How much space OS allocates when you create a PS or PDS?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A109)<span style=""> </span>56 KB</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q110)<span style=""> </span>Min no of member’s (PDS) in one directory block?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A110)<span style=""> </span>SIX(6)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q111)<span style=""> </span>The maximum number of steps in a job?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A111)<span style=""> </span>255</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q112)<span style=""> </span>How much is memory space involved, when we code BLOCKSIZE,TRK & CYL ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A112)<span style=""> </span>One block constitutes 32KB of formatted memory/ 42KB of Unformatted memory,6 blocks makes one Track & 15 Tracks makes one cylinder.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q113)<span style=""> </span>What is DSNDB06 ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A113)<span style=""> </span>This is the Place where DB2 Catalog resides</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q114)<span style=""> </span>What is the use of DSNDB07 ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A114)<span style=""> </span>This is the area where sorting takes place in DB2</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q115)<span style=""> </span>What is DATACOM db?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A115)<span style=""> </span>It is a database used with VSE.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q116)<span style=""> </span>What is a Dummy Utility and what it does ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A116)<span style=""> </span>IEFBR14 is a Dummy utility and it is used for the sake of EXEC PGM= .... statement in JCL[when used it wouldn't perform any task]. e.g. While Allocating a dataset you don't have to run any utility [this could be done by giving disp=new inDD statement]. But for a PGM name must be given in EXEC statement, it is used.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q117)<span style=""> </span>What 3 guidelines do we have to follow when concatenating DD statements? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A117)<span style=""> </span>Datasets must be of the same type (disk or tape), All datasets must have the same logical record length, The dataset with the largest blocksize must be listed first.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q118)<span style=""> </span>On the DD statement, what is the main difference between creating a new sequential flat file and a partitioned dataset?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A118)<span style=""> </span>SPACE=(n,m) for a sequential file, SPACE=(n,m,p) for a PDS where n, m, and p are numbers. The p designates how many directory blocks to allocate. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q119)<span style=""> </span>What is the difference between IEBGENER, IEBCOPY and REPRO in IDCAMS utility?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A119)<span style=""> </span><b style="">IEBGENER</b> -- This is a dataset utility for copying sequential datasets which produces a PDS or a member from a </p> <p class="MsoNormal" style="margin-left: 1in; text-indent: 31.5pt;">sequential dataset.</p> <p class="MsoNormal" style="margin-left: 0.5in;"><b style="">IEBCOPY</b> -- This is a dataset utility for copying one PDS to another or to merge PDSs.</p> <p class="MsoNormal" style="margin-left: 0.5in;"><b style="">REPRO</b> -- This is for copying sequential datasets. More or less same as the IEBGENER. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q120)<span style=""> </span>How do you submit JCL via a Cobol program?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A120)<span style=""> </span>Use a file //dd1 DD sysout=(*,intrdr)write your JCL to this file. Pl some one try this out.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q121)<span style=""> </span>How to execute a set of JCL statements from a COBOL program ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A121)<span style=""> </span>Using EXEC CICS SPOOL WRITE(var-name) END-EXEC command. var-name is a COBOL host structure containing JCL statements.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q122)<span style=""> </span>What is the difference between static call & Dynamic call ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A122)<span style=""> </span>In the case of Static call, the called program is a stand along program, it is an executable program . During run time we can call it in our called program. As about Dynamic call, the called program is not an executable program it can executed thru the called program </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q123)<span style=""> </span>What is the difference between catalogue procedure and In-Stream procedure?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A123)<span style=""> </span>In Stream procedures are set of JCL statements written between JOB and EXEC statements, start with PROC and end with PEND statement. Mainly used to test cataloged procedures. Cataloged procedure is cataloged on the procedure library and is called by specifying the procedure name on the EXEC statement.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q124)<span style=""> </span>What do you feel makes a good program?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A124)<span style=""> </span>A program that follows a top down approach. It is also one that other programmers or users can follow logically and is easy to read and understand.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q125)<span style=""> </span>Can we browse or edit the GDG dataset if it is a tape entry?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A125)<span style=""> </span>No, You can’t edit or browse the GDG if it resides on tape. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q126)<span style=""> </span>What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A126)<span style=""> </span>Minimum Size : 1 track Maximum size : 1 cylinder</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q127)<span style=""> </span>How to get cursor position from system in CICS environment ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A127)<span style=""> </span>Get it from EIBCURPOS !</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q128)<span style=""> </span>How many parameters are there to a DISP statement and what are their uses ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A128)<span style=""> </span>There are three(3) parameters. Parameter 1: current data set disposition(new, shr, old, mod) Parameter 2: normal close action for data set (catlg, keep, delete) Parameter 3:abend action for data set<span style=""> </span>(catlg, keep, delete). </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q129)<span style=""> </span>What is the error code SOC01 indicate ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A129)<span style=""> </span>Operation exception error For e.g. a dataset open error</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q130)<span style=""> </span>What is a procedure?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A130)<span style=""> </span>A set of precoded JCL that can be modified through the use of parameters or override cards. Note: Procedures can be catalogued or instream.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q131)<span style=""> </span>What is the difference between specifying DISP=OLD and DISP=SHR for a dataset? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A131)<span style=""> </span>OLD specifies exclusive use of a dataset, SHR allows multiple jobs to concurrently access the dataset Note: When updating a dataset, you would normally use OLD.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q132)<span style=""> </span>What are the three basic types of statements in a jobstream?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A132)<span style=""> </span>JOB(one per jobstream)EXEC(one or more per job)DD(one or more per jobstep)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in -0.5in 0.0001pt 0.5in; text-indent: -0.5in;"><b style="">Q133)<span style=""> </span>What does SYSIN * indicate?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A133)<span style=""> </span>Instream data follows this card and is terminated when followed by a card containing // or /* in columns 1 and 2.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q134)<span style=""> </span>What are three major types of JCL statements? What are their functions?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A134)<span style=""> </span>JOB - <span style=""> </span>indicates start of jobstream to the operating system and through parms coded on it, certain details about the </p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;">job (time, region, message level, job accounting data). </p> <p class="MsoNormal" style="margin-left: 0.5in;">EXEC - indicates the start of execution of a particular job step, be that step a program or a proc.</p> <p class="MsoNormal" style="margin-left: 0.5in;">DD - <span style=""> </span>is a data definition, which is used to describe the attributes of a data set (name, unit, type, space, </p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;">disposition).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">1. Distinguish between positional & keyword parameters</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">2. How can you omit positional parameters ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">3. How do u define the identifier field for a delimiter statement ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">4. List some valid operation codes .</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">5. What is the purpose of the MSGLEVEL parameter ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">6. What is the function of the following parameters : </p> <p class="MsoNormal"><span style=""> </span>I)<span style=""> </span>MSGLEVEL=(0,0)</p> <p class="MsoNormal"><span style=""> </span>ii)<span style=""> </span>MSGLEVEL=(2,1)</p> <p class="MsoNormal"><span style=""> </span>iii) MSGLEVEL=(1,1)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">7. What is the purpose of the MSGCLASS parameter ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">8. What are the parameters used with COND<span style=""> </span>?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">9. List down the different types of comparison operators & their meaning .</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">10.What is the function of the TYPRUN parameter ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">11.What are the subparameters that can be used with TYPRUN?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">12.What is the function of the TIME parameter?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">13. What is the purpose of the EXEC statement ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">14. What are the additional keyword parameters used on the EXEC statement?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">15. What is the difference between the following statements :</p> <p class="MsoNormal"><span style=""> </span>I)<span style=""> </span>step#1<span style=""> </span>exec PGM=accpay</p> <p class="MsoNormal"><span style=""> </span>ii)<span style=""> </span>step#1<span style=""> </span>exec<span style=""> </span>tbalance</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">16. What is the error in the following JCL statements : </p> <p class="MsoNormal"><span style=""> </span>I)<span style=""> </span>//step#three<span style=""> </span>exec<span style=""> </span>pgm=hkbc762</p> <p class="MsoNormal"><span style=""> </span>ii)<span style=""> </span>//step#3<span style=""> </span>exec pgm = hkbc762</p> <p class="MsoNormal"><span style=""> </span>iii)<span style=""> </span>//step#3<span style=""> </span>exec pgr<span style=""> </span>= hkbc672</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">17.<span style=""> </span>Name the system library from which modules are retrieved at execution time .</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">18.<span style=""> </span>What is the purpose of the JOBLIB statement ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">19.<span style=""> </span>If JOBLIB & STEPLIB statements are both included in a job , then which statement would overide .</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">20.<span style=""> </span>What is the purpose of the PARM parameter ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">21.<span style=""> </span>What is the pupose of the DD statement ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">22.<span style=""> </span>How would u specify the device for a dataset in a DD statement ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">23.<span style=""> </span>What is the function of the following DD statement <span style=""> </span>//ddname DD<span style=""> </span>*</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">24.<span style=""> </span>What is the purpose of the SYSOUT Parameter in the DD statement ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">25.<span style=""> </span>What are the two ways of specifying Temporary Data Sets ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">26.<span style=""> </span>What are the advantages of coding the DISP parameter with MOD rather than NEW ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">27.<span style=""> </span>Explain the function of the following Statement<span style=""> </span>:<span style=""> </span>//ddname DD<span style=""> </span>DISP=(NEW,CATLG,DELETE)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">28.<span style=""> </span>What is the default value of the third DISP subparameter ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">29.<span style=""> </span>What is Backward Referencing ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">30.<span style=""> </span>What is the purpose of Concatenating Data Sets ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">31.<span style=""> </span>What is the result of a READ operation on a Dummy Data set ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">32.<span style=""> </span>What are the functions of the following ddnames :<span style=""> </span>SYSUDUMP , SYSABEND , SYSMDUMP</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">33.<span style=""> </span>What are GDGs<span style=""> </span>? </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <b style=""><span style="font-size: 12pt; font-family: "Times New Roman";">
<br /> </span></b>Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-67089894012673112472008-07-03T03:52:00.001-07:002008-12-23T21:45:21.641-08:00DATABASE 2( DB2 ) <meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:宋体; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:222521263; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l0:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l1 {mso-list-id:761683884; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l1:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l2 {mso-list-id:1003313968; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l2:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l3 {mso-list-id:1030255143; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l3:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l4 {mso-list-id:1103526544; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l4:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l5 {mso-list-id:1189292806; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l5:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l6 {mso-list-id:1414207772; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l6:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} @list l7 {mso-list-id:2135782234; mso-list-type:simple; mso-list-template-ids:1818532540;} @list l7:level1 {mso-level-start-at:0; mso-level-number-format:none; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:0in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal"><b style=""><span style="font-size: 16pt;">
<br /><o:p></o:p></span></b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><b style=""><span style="color: black;">The questions and answers that follow are intended for those with a working knowledge of DB2 as a “self-test”.<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q1)<span style=""> </span><span style="color: black;">What is DB2 (IBM Database 2)?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A1)<span style=""> </span><span style="color: black;">DB2 is a subsystem of the MVS operating system. It is a Database Management System (DBMS) for that operating system.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q2)<span style=""> </span><span style="color: black;">What is an access path?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A2)<span style=""> </span><span style="color: black;">The path that is used to get to data specified in SQL statements.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q3)<span style=""> </span><span style="color: black;">What is an alias?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A3)<span style=""> </span><span style="color: black;">It is an alternate name that can be used in SQL statements to refer to a table or view in the same or remote DB2 subsystem.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q4)<span style=""> </span><span style="color: black;">Explain what a plan is?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A4)<span style=""> </span><span style="color: black;">Plan is a DB2 object (produced during the bind process) that associates one or more database request modules with a plan name.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q5)<span style=""> </span><span style="color: black;">What is a DB2 bind?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A5)<span style=""> </span><span style="color: black;">Bind is a process<span style=""> </span>that builds “access paths” to DB2 tables. A bind uses the Database Request Modules(s) (DBRM(s)) from the DB2 pre-compile step as input and produces an application plan. It also checks the user’s authority and validates the SQL statements in the DBRM(s). <o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q6)<span style=""> </span><span style="color: black;">What information is used as input to the bind process?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A6)<span style=""> </span><span style="color: black;">The database request module produced during the pre-compile. The SYSIBM.SYSSTMT table of the DB2 catalog.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q7)<span style=""> </span><span style="color: black;">What is meant by the attachment facility?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A7)<span style=""> </span><span style="color: black;">The attachment facility is an interface between DB2 and TSO, IMS/VS, CICS, or batch address spaces. It allows application programs to access DB2.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q8)<span style=""> </span><span style="color: black;">What is meant by AUTO COMMIT?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A8)<span style=""> </span><span style="color: black;">AUTO COMMIT is a SPUFI option that commits the effects of SQL statements automatically if they are successfully executed.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style="">Q9)<span style=""> </span><span style="color: black;">What is a base table?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">A9)<span style=""> </span><span style="color: black;">A base table is a real table -<span style=""> </span>a table that physically exists in that there are physical stored records.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q10)<span style=""> </span><span style="color: black;">What is the function of buffer manager?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A10)<span style=""> </span><span style="color: black;">The buffer manager is the DB2 component responsible for physically transferring data between an external medium and (virtual) storage (performs the actual I/O operations). It minimizes the amount of physical I/O actually performed with sophisticated buffering techniques(i.e., read-ahead buffering and look-aside buffering).<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q11)<span style=""> </span><span style="color: black;">What is a buffer pool?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A11)<span style=""> </span><span style="color: black;">A buffer pool is main storage that is reserved to satisfy the buffering requirements for one or more tablespaces or indexes, and is made up of either 4K or 32K pages.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q12)<span style=""> </span><span style="color: black;">How many buffer pools are there in DB2?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A12)<span style=""> </span><span style="color: black;">There are four buffer pools: BP0, BP1, BP2, and BP32.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q13)<span style=""> </span><span style="color: black;">On the create tablespace, what does the CLOSE parameter do?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A13)<span style=""> </span><span style="color: black;">CLOSE physically closes the tablespace when no one is working on the object. DB2 (release 2.3) will logically close tablespaces.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q14)<span style=""> </span><span style="color: black;">What is a clustering index?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A14)<span style=""> </span><span style="color: black;">It is a type of index that (1) locates table rows and (2) determines how rows are grouped together in the tablespace.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q15)<span style=""> </span><span style="color: black;">What will the COMMIT accomplish?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A15)<span style=""> </span><span style="color: black;">COMMIT will allow data changes to be permanent. This then permits the data to be accessed by other units of work. When a COMMIT occurs, locks are freed so other applications can reference the just committed data.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q16)<span style=""> </span><span style="color: black;">What is meant by concurrency?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A16)<span style=""> </span><span style="color: black;">Concurrency is what allows more than one DB2 application process to access the same data at essentially the same time. Problems may occur, such as lost updates, access to uncommitted data, and un-repeatable reads.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q17)<span style=""> </span><span style="color: black;">What is cursor stability?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A17)<span style=""> </span><span style="color: black;">It is cursor stability that “tells” DB2 that database values read by this application are protected only while they are being used.<span style=""> </span>(Changed values are protected until this application reaches the commit point). As soon as a program moves from one row to another, other programs may read or the first row.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q18)<span style=""> </span><span style="color: black;">What is the function of the Data Manager?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A18)<span style=""> </span><span style="color: black;">The Data Manager is a DB2 component that manager the physical databases. It invokes other system components, as necessary, to perform detailed functions such as locking, logging, and physical I/O operations (such as search, retrieval, update, and index maintenance).<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q19)<span style=""> </span><span style="color: black;">What is a Database Request Module(DBRM)?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A19)<span style=""> </span><span style="color: black;">A DBRM is a DB2 component created by the DB2 pre-compiler containing the SQL source statements extracted from the application program. DBRMs are input to the bind process.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q20)<span style=""> </span><span style="color: black;">What is a data page?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A20)<span style=""> </span><span style="color: black;">A data page is a unit of retrievable data, either 4K or 32K (depending on how the table is defined), containing user or catalog information.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q21)<span style=""> </span><span style="color: black;">What are data types?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A21)<span style=""> </span><span style="color: black;">They are attributes of columns, literals, and host variables. The data types are SMALLINT, INTEGER, FLOAT, DECIMAL, CHAR, VARCHAR, DATE and TIME.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q22)<span style=""> </span><span style="color: black;">What is Declaration Generator(DCLGEN)?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A22)<span style=""> </span><span style="color: black;">DCLGEN is a facility that is used to generate SQL statements that describe a table or view. These table or view descriptions are then used to check the validity of other SQL statements at precompile time. The table or view declares are used by the DB2I utility DCLGEN to build a host language structure, which is used by the DB2 precompiler to verify that correct column names and data types have been specified in the SQL statement.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q23)<span style=""> </span><span style="color: black;">What does DSNDB07 database do?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A23)<span style=""> </span><span style="color: black;">DSNDB07 is where DB2 does its sorting. It includes DB2’s sort work area and external storage.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q24)<span style=""> </span><span style="color: black;">What will the FREE command do to<span style=""> </span>a<span style=""> </span>plan?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A24)<span style=""> </span><span style="color: black;">It will drop(delete) that existing plan.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q25)<span style=""> </span><span style="color: black;">What is a host variable?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A25)<span style=""> </span><span style="color: black;">This is a data item that is used in an SQL statement to receive a value or to supply a value. It must be preceded by a colon (:) to tell DB2 that the variable is not a column name.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q26)<span style=""> </span><span style="color: black;">What will the DB2 optimizer do?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A26)<span style=""> </span><span style="color: black;">The optimizer is a DB2 component that processes SQL statements and selects the access paths.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q27)<span style=""> </span><span style="color: black;">What is a page?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A27)<span style=""> </span><span style="color: black;">This is the unit of storage within a table space or indexspace that is accessed by DB2.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q28)<span style=""> </span><span style="color: black;">What is pagespace?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A28)<span style=""> </span><span style="color: black;">Pagespace refers to either to an unpartitioned table, to an index space, or to a single partition of a partitioned table of index space.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q29)<span style=""> </span><span style="color: black;">What is a predicate?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A29)<span style=""> </span><span style="color: black;">A predicate is an element of a search condition that expresses or implies a comparison operation.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q30)<span style=""> </span><span style="color: black;">What is a recovery log?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A30)<span style=""> </span><span style="color: black;">A recovery log is a collection of records that describes the sequence of events that occur in DB2. The information is needed for recovery in the event of a failure during execution.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q31)<span style=""> </span><span style="color: black;">What is a Resource Control Table(RCT)? Describe its characteristics.<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A31)<span style=""> </span><span style="color: black;">The RCT is a table that is defined to a DB2/CICS region. It contains control characteristics which are assembled via the DSNCRCT macros. The RCT matches the CICS transaction ID to its associated DB2 authorization ID<span style=""> </span>and plan ID(CICS attachment facility).<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q32)<span style=""> </span><span style="color: black;">Where are plans stored?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A32)<span style=""> </span><span style="color: black;">Each plan is defined uniquely in the SYSIBM.SYSPLANS table to correspond to the transaction (s) that are to execute that plan.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q33)<span style=""> </span><span style="color: black;">What is meant by repeatable read?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A33)<span style=""> </span><span style="color: black;">When an application program executes with repeatable read protection, rows referenced by the program can’t be changed by<span style=""> </span>other programs until the program reaches a commit point.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q34)<span style=""> </span><span style="color: black;">Describe what a storage group(STOGROUP) is?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A34)<span style=""> </span><span style="color: black;">A STOGROUP is a named collection of DASD volumes to be used by tablespaces and index spaces of databases. The volumes of STOGROUP must be of the same device type.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q35)<span style=""> </span><span style="color: black;">How would you move a tablespace (using STOGROUP) to a different DASD volume allocated to that tablespace?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A35)<span style=""> </span><span style="color: black;">If the tablespace used is only allocated to that STOGROUP:<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><span style=""> </span>- ALTER STOGROUP - add volume (new) delete volume(old)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;">-<span style=""> </span><span style="color: black;">REORG TABLESPACE or RECOVER TABLESPACE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="color: black;"><span style=""> </span>Create a new STOGROUP that points to the new volume. ALTER the tablespace and REORG or RECOVER the <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="color: black;"><span style=""> </span>tablespace.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q36)<span style=""> </span><span style="color: black;">What is the format (internal layout) of “TIMESTAMP”?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A36)<span style=""> </span><span style="color: black;">This is a seven part value that consists of a date (yymmdd) and time(hhmmss and microseconds).<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q37)<span style=""> </span><span style="color: black;">What is meant by a unit of recovery?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A37)<span style=""> </span><span style="color: black;">This is a sequence of operations within a unit of work(i.e., work done between commit points).<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q38)<span style=""> </span><span style="color: black;">Can DASD types assigned to storage groups be intermixed(i.e., 3350s and 3380s)?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A38)<span style=""> </span><span style="color: black;">No<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q39)<span style=""> </span><span style="color: black;">What are the three types of page locks that can be held?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A39)<span style=""> </span><span style="color: black;">Exclusive, update, and share.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q40)<span style=""> </span><span style="color: black;">Can DB2 be accessed by TSO users? If yes, which command is used to invoke DB2?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A40)<span style=""> </span><span style="color: black;">DB2 can be invoked by TSO users by using the DSN RUN command.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q41)<span style=""> </span><span style="color: black;">How are write I/Os from the buffer pool executed?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A41)<span style=""> </span><span style="color: black;">Asynchronously.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q42)<span style=""> </span><span style="color: black;">What is a DB2 catalog?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A42)<span style=""> </span><span style="color: black;">The DB2 catalog is a set of tables that contain information about all of the DB2 objects(tables, views, plans etc.).<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q43)<span style=""> </span><span style="color: black;">In which column of which DB2 catalog would you find the length of the rows for all tables?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A43)<span style=""> </span><span style="color: black;">In the RECLENGTH column of SYSIBM.SYSTABLES<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q44)<span style=""> </span><span style="color: black;">What information is held in SYSIBM.SYSCOPY?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A44)<span style=""> </span><span style="color: black;">The SYSIBM.SYSCOPY table contains information about image copies made of the tablespaces.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q45)<span style=""> </span><span style="color: black;">What information is contained in a SYSCOPY entry?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A45)<span style=""> </span><span style="color: black;">Included is the name of the database, the table space name, and the image copy type(full or incremental etc.,) as well as the date and time each copy was made.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q46)<span style=""> </span><span style="color: black;">What information can you find in SYSIBM.SYSLINKS table?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A46)<span style=""> </span><span style="color: black;">The SYSIBM.SYSLINKS table contains information about the links between tables created by referential constraints.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q47)<span style=""> </span><span style="color: black;">Where would you find information about the type of database authority held by the user?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A47)<span style=""> </span><span style="color: black;">SYSIBM.SYSDBAUTH.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q48)<span style=""> </span><span style="color: black;">Where could you look if you had a question about whether a column has been defined as an index?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A48)<span style=""> </span><span style="color: black;">This information can be found in SYSIBM.SYSINDEXES.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q49)<span style=""> </span><span style="color: black;">Once you create a view, where would information about the view be stored?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A49)<span style=""> </span><span style="color: black;">When a view is created, system information about the view is stored in SYSIBM.SYSVIEWS.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q50)<span style=""> </span>What is the SQL Communications Area and what are some of its key fields? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A50)<span style=""> </span>It is a data structure that must be included in any host-language program using SQL.<span style=""> </span>It is used to pass feedback about the sql operations to the program.<span style=""> </span>Fields are return codes, error messages, handling codes and warnings. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q51)<span style=""> </span>What is DCLGEN? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A51)<span style=""> </span>DCLGEN stands for declarations generator;<span style=""> </span>it is a facility to generate DB2 sql data structures in COBOL or PL/I programs. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q52)<span style=""> </span>How do you leave the cursor open after issuing a COMMIT?<span style=""> </span>(for DB2 2.3 or above only)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A52)<span style=""> </span>Use WITH HOLD option in DECLARE CURSOR statement.<span style=""> </span>But, it has not effect in psuedo-conversational CICS programs.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q53)<span style=""> </span>Give the COBOL definition of a VARCHAR field.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A53)<span style=""> </span>A VARCHAR column REMARKS would be defined as follows:</p> <p class="MsoNormal" style="margin-left: 27pt;">...</p> <p class="MsoNormal" style="margin-left: 27pt;">10 REMARKS.</p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>49 REMARKS-LEN<span style=""> </span>PIC S9(4) USAGE COMP.</p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>49 REMARKS-TEXT<span style=""> </span>PIC X(1920).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q54)<span style=""> </span>What is the physical storage length of each of the following DB2 data types: DATE, TIME, TIMESTAMP?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A54)<span style=""> </span>DATE: <span style=""> </span>4bytes</p> <p class="MsoNormal" style="margin-left: 27pt;">TIME: <span style=""> </span>3bytes</p> <p class="MsoNormal" style="margin-left: 27pt;">TIMESTAMP: <span style=""> </span>10bytes</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q55)<span style=""> </span>What is the COBOL picture clause of the following DB2 data types:<span style=""> </span>DATE, TIME, TIMESTAMP?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A55)<span style=""> </span>DATE: <span style=""> </span>PIC X(10)</p> <p class="MsoNormal" style="margin-left: 27pt;">TIME : <span style=""> </span>PIC X(08)</p> <p class="MsoNormal" style="margin-left: 27pt;">TIMESTAMP: <span style=""> </span>PIC X(26)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q56)<span style=""> </span>What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A56)<span style=""> </span>PIC S9(9)V99 COMP-3.</p> <p class="MsoNormal" style="margin-left: 27pt;">Note: In DECIMAL(11,2), 11 indicates the size of the data type and 2 indicates the precision.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q57)<span style=""> </span>What is DCLGEN ? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A57)<span style=""> </span>DeCLarations GENerator: used to create the host language copy books for the table definitions. Also creates the DECLARE table.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q58)<span style=""> </span>What are the contents of a DCLGEN? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A58)<span style=""> </span>EXEC SQL DECLARE TABLE statement which gives the layout of the table/view in terms of DB2 datatypes.</p> <p class="MsoNormal" style="text-indent: 27pt;">A host language copy book that gives the host variable definitions for the column names.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q59)<span style=""> </span>Is it mandatory to use DCLGEN? If not, why would you use it at all? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A59)<span style=""> </span>It is not mandatory to use DCLGEN. Using DCLGEN, helps detect wrongly spelt column names etc. during the pre-compile stage itself (because of the DECLARE TABLE ).<span style=""> </span>DCLGEN being a tool, would generate accurate host variable definitions for the table reducing chances of error.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q60)<span style=""> </span>Is DECLARE TABLE in DCLGEN necessary? Why it used?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A60)<span style=""> </span>It not necessary to have DECLARE TABLE statement in DCLGEN.<span style=""> </span>This is used by the pre-compiler to validate the table-name, view-name, column name etc., during pre-compile.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q61)<span style=""> </span>Will precompile of an DB2-COBOL program bomb, if DB2 is down?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A61)<span style=""> </span>No.<span style=""> </span>Because the precompiler does not refer to the DB2 catalogue tables.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q62)<span style=""> </span>How is a typical DB2 batch program executed ? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A62)<span style=""> </span>There are two methods of executing a DB2-batch program </p> <p class="MsoNormal" style="margin-left: 27pt;">1. Use DSN utility to run a DB2 batch program from native TSO.<span style=""> </span>An example is shown:</p> <p class="MsoNormal" style="margin-left: 27pt;">DSN SYSTEM(DSP3)</p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>RUN PROGRAM(EDD470BD) PLAN(EDD470BD) LIB('EDGS01T.OBJ.LOADLIB')</p> <p class="MsoNormal" style="margin-left: 27pt;">END</p> <p class="MsoNormal" style="margin-left: 27pt;">2. Use IKJEFT01 utility program to run the above DSN command in a JCL. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q63)<span style=""> </span>Assuming that a site's standard is that pgm name = plan name, what is the easiest way to find out which <o:p></o:p></b></p> <p class="MsoNormal" style="text-indent: 0.4in;"><b style="">programs are affected by change in a table's structure?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A63)<span style=""> </span>Query the catalogue tables SYSPLANDEP and SYSPACKDEP.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q64)<span style=""> </span>Name some fields from SQLCA.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A64)<span style=""> </span>SQLCODE, SQLERRM, SQLERRD</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q65)<span style=""> </span>How can you quickly find out the number of rows updated after an update statement?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A65)<span style=""> </span>Check the value stored in SQLERRD(3).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q66)<span style=""> </span>What is EXPLAIN? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A66)<span style=""> </span>EXPLAIN is used to display the access path as determined by the optimizer for a SQL statement.<span style=""> </span>It can be used in SPUFI (for single SQL statement) or in BIND step (for embedded SQL).<span style=""> </span>The results of EXPLAIN is stored in U.PLAN_TABLE where U is the authorization id of the user</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q67)<span style=""> </span>What do you need to do before you do EXPLAIN?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A67)<span style=""> </span>Make sure that the PLAN_TABLE is created under the AUTHID.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q68)<span style=""> </span>Where is the output of EXPLAIN stored? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A68)<span style=""> </span>In USERID.PLAN_TABLE<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q69)<span style=""> </span>EXPLAIN has output with MATCHCOLS = 0.<span style=""> </span>What does it mean? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A69)<span style=""> </span>A nonmatching index scan if ACCESSTYPE = I.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q70)<span style=""> </span>How do you do the EXPLAIN of a dynamic SQL statement?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A70)<span style=""> </span>There are two methods to achieve this:</p> <p class="MsoNormal" style="margin-left: 27pt;">1. Use SPUFI or QMF to EXPLAIN the dynamic SQL statement</p> <p class="MsoNormal" style="margin-left: 27pt;">2. Include EXPLAIN command in the embedded dynamic SQL statements</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q71)<span style=""> </span>How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause)<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A71)<span style=""> </span>Use a question mark in place of a host variable (or an unknown value). For instance, </p> <p class="MsoNormal" style="margin-left: 27pt;">SELECT EMP_NAME FROM EMP WHERE EMP_SALARY > ?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q72)<span style=""> </span>What are the isolation levels possible ? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A72)<span style=""> </span>CS:<span style=""> </span>Cursor Stability</p> <p class="MsoNormal" style="margin-left: 27pt;">RR:<span style=""> </span>Repeatable Read</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q73)<span style=""> </span>What is the difference between CS and RR isolation levels?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A73)<span style=""> </span>CS:<span style=""> </span>Releases the lock on a page after use</p> <p class="MsoNormal" style="text-indent: 0.4in;">RR:<span style=""> </span>Retains all locks acquired till end of transaction</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q74)<span style=""> </span>When do you specify the isolation level? How?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A74)<span style=""> </span>During the BIND process(ISOLATION LEVEL is a parameter for the bind process).<span style=""> </span>ISOLATION ( CS/RR )...</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q75)<span style=""> </span>I use CS and update a page.<span style=""> </span>Will the lock be released after I am done with that page?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A75)<span style=""> </span>No.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q76)<span style=""> </span>What are the various locking levels available?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A76)<span style=""> </span>PAGE, TABLE, TABLESPACE</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q77)<span style=""> </span>How does DB2 determine what lock-size to use?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A77)<span style=""> </span>There are three methods to determine the lock-size.<span style=""> </span>They are:</p> <p class="MsoNormal" style="margin-left: 0.5in;">1. Based on the lock-size given while creating the tablespace</p> <p class="MsoNormal" style="margin-left: 0.5in;">2. Programmer can direct the DB2 what lock-size to use</p> <p class="MsoNormal" style="margin-left: 0.5in;">3. If lock-size ANY is specified, DB2 usually choses a lock-size of PAGE</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q78)<span style=""> </span>What are the disadvantages of PAGE level lock?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A78)<span style=""> </span>High resource utilization if large updates are to be done</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q79)<span style=""> </span>What is lock escalation?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A79)<span style=""> </span>Promoting a PAGE lock-size to table or tablespace lock-size when a transaction has aquired more locks than specified in NUMLKTS.<span style=""> </span>Locks should be taken on objects in single tablespace for escalation to occur.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q80)<span style=""> </span>What are the various locks available?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A80)<span style=""> </span>SHARE, EXCLUSIVE, UPDATE</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q81)<span style=""> </span>Can I use LOCK TABLE on a view?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A81)<span style=""> </span>No.<span style=""> </span>To lock a view, take lock on the underlying tables.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q82)<span style=""> </span>What is ALTER ? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A82)<span style=""> </span>SQL command used to change the definition of DB2 objects.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q83)<span style=""> </span>What is a DBRM, PLAN ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A83)<span style=""> </span>DBRM: Data Base Request Module, has the SQL statements extracted from the host language program by<span style=""> </span>the pre-compiler. PLAN: A result of the BIND process.<span style=""> </span>It has the executable code for the SQL statements in the DBRM.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q84)<span style=""> </span>What is ACQUIRE/RELEASE in BIND?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A84)<span style=""> </span>Determine the point at which DB2 acquires or releases locks against table and tablespaces, including intent locks.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q85)<span style=""> </span>What else is there in the PLAN apart from the access path? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A85)<span style=""> </span>PLAN has the executable code for the SQL statements in the host program</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q86)<span style=""> </span>What happens to the PLAN if index used by it is dropped?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A86)<span style=""> </span>Plan is marked as invalid. The next time the plan is accessed, it is rebound.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q87)<span style=""> </span>What are PACKAGES ? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A87)<span style=""> </span>They contain executable code for SQL statements for one DBRM.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q88)<span style=""> </span>What are the advantages of using a PACKAGE?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A88)<span style=""> </span>The advantages of using PACKAGE are:</p> <p class="MsoNormal" style="margin-left: 0.5in;">1. Avoid having to bind a large number of DBRM members into a plan</p> <p class="MsoNormal" style="margin-left: 0.5in;">2. Avoid cost of a large bind</p> <p class="MsoNormal" style="margin-left: 0.5in;">3. Avoid the entire transaction being unavailable during bind and automatic rebind of a plan</p> <p class="MsoNormal" style="margin-left: 0.5in;">4. Minimize fallback complexities if changes result in an error.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q89)<span style=""> </span>What is a collection?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A89)<span style=""> </span>A user defined name that is the anchor for packages.<span style=""> </span>It has not physical existence.<span style=""> </span>Main usage is to group packages.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q90)<span style=""> </span>In SPUFI suppose you want to select maximum of 1000 rows, but the select returns only 200 rows. What are the 2 SQLCODEs that are returned? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A90)<span style=""> </span>+100 (for successful completion of the query), 0 (for successful COMMIT<span style=""> </span>if AUTOCOMMIT is set to Yes).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q91)<span style=""> </span>How would you print the output of an SQL statement from SPUFI? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A91)<span style=""> </span>Print the output dataset.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q92)<span style=""> </span>Lot of updates have been done on a table due to which indexes have gone haywire.<span style=""> </span>What do you do?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A92)<span style=""> </span>Looks like index page split has occurred.<span style=""> </span>DO a REORG of the indexes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q93)<span style=""> </span>What is dynamic SQL? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A93)<span style=""> </span>Dynamic SQL is a SQL statement created at program execution time.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q94)<span style=""> </span>When is the access path determined for dynamic SQL? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A94)<span style=""> </span>At run time, when the PREPARE statement is issued.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q95)<span style=""> </span>Suppose I have a program which uses a dynamic SQL and it has been performing well till now.<span style=""> </span>Off late, I find that the performance has deteriorated.<span style=""> </span>What happened? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A95)<span style=""> </span>There may be one of the following reasons:</p> <p class="MsoNormal" style="margin-left: 27pt;">Probably RUN STATS is not done and the program is using a wrong index due to incorrect stats.</p> <p class="MsoNormal" style="margin-left: 27pt;">Probably RUNSTATS is done and optimizer has chosen a wrong access path based on the latest statistics.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q96)<span style=""> </span>How does DB2 store NULL physically?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A96)<span style=""> </span>As an extra-byte prefix to the column value. Physically, the null prefix is Hex '00' if the value is present and Hex 'FF' if it is not.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q97)<span style=""> </span>How do you retrieve the data from a nullable column? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A97)<span style=""> </span>Use null indicators. Syntax ... INTO :HOSTVAR:NULLIND</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q98)<span style=""> </span>What is the picture clause of the null indicator variable? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A98)<span style=""> </span>S9(4) COMP.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q99)<span style=""> </span>What does it mean if the null indicator has -1, 0, -2? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A99)<span style=""> </span>-1<span style=""> </span>: the field is null;<span style=""> </span>0 <span style=""> </span>: the field is not null; -2<span style=""> </span>: the field value is truncated</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q100)<span style=""> </span>How do you insert a record with a nullable column?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A100)<span style=""> </span>To insert a NULL, move -1 to the null indicator, To insert a valid value, move 0 to the null indicator</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q101)<span style=""> </span>What is RUNSTATS? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A101)<span style=""> </span>A DB2 utility used to collect statistics about the data values in tables which can be used by the optimizer to decide the access path. It also collects statistics used for space management.<span style=""> </span>These statistics are stored in DB2 catalog tables.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q102)<span style=""> </span>When will you chose to run RUNSTATS?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A102)<span style=""> </span>After a load, or after mass updates, inserts, deletes, or after REORG.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q103)<span style=""> </span>Give some example of statistics collected during RUNSTATS?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A103)<span style=""> </span>Number of rows in the table, Percent of rows in clustering sequence, Number of distinct values of indexed column, Number<span style=""> </span>of rows moved to a nearby/fairway page due to row length increase</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q104)<span style=""> </span>What is REORG?<span style=""> </span>When is it used?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A104)<span style=""> </span>REORG reorganizes data on physical storage to reclutser rows, positioning overflowed rows in their proper sequence, to reclaim space, to restore free space.<span style=""> </span>It is used after heavy updates, inserts and delete activity and after segments of a segmented tablespace have become fragmented.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q105)<span style=""> </span>What is IMAGECOPY ? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A105)<span style=""> </span>It is full backup of a DB2 table which can be used in recovery.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q106)<span style=""> </span>When do you use the IMAGECOPY? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A106)<span style=""> </span>To take routine backup of tables, After a LOAD with LOG NO and After REORG with LOG NO</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q107)<span style=""> </span>What is COPY PENDING status?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A107)<span style=""> </span>A state in which, an image copy on a table needs to be taken,<span style=""> </span>In this status, the table is available only for queries.<span style=""> </span>You cannot update this table.<span style=""> </span>To remove the COPY PENDING status, you take an image copy or use REPAIR utility.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q108)<span style=""> </span>What is CHECK PENDING ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A108)<span style=""> </span>When a table is LOADed with ENFORCE NO option, then the table is left in CHECK PENDING status.<span style=""> </span>It means that the LOAD utility did not perform constraint checking.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q109)<span style=""> </span>What is QUIESCE?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A109)<span style=""> </span>A QUIESCE flushes all DB2 buffers on to the disk. This gives a correct snapshot of the database and should be used before and after any IMAGECOPY to maintain consistency.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q110)<span style=""> </span>What is a clustering index ? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A110)<span style=""> </span>Causes the data rows to be stored in the order specified in the index. A mandatory index defined on a partitioned table space.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q111)<span style=""> </span>How many clustering indexes can be defined for a table?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A111)<span style=""> </span>Only one.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q112)<span style=""> </span>What is the difference between primary key & unique index ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A112)<span style=""> </span>Primary Key: a relational database constraint.<span style=""> </span>Primary key consists of one or more columns that uniquely identify a row in the table.<span style=""> </span>For a normalized relation, there is one designated primary key. </p> <p class="MsoNormal" style="margin-left: 0.5in;">Unique index: a physical object that stores only unique values.<span style=""> </span>There can be one or more unique indexes on a table.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q113)<span style=""> </span>What is sqlcode -922 ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A113)<span style=""> </span>Authorization failure</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q114)<span style=""> </span>What is sqlcode -811?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A114)<span style=""> </span>SELECT statement has resulted in retrieval of more than one row.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q115)<span style=""> </span>What does the sqlcode of -818 pertain to? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A115)<span style=""> </span>This is generated when the consistency tokens in the DBRM and the load module are different.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q116)<span style=""> </span>Are views updatable ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A116)<span style=""> </span>Not all of them.<span style=""> </span>Some views are updatable e.g. single table view with all the fields or mandatory fields. Examples of non-updatable views are views which are joins, views that contain aggregate functions (such as MIN), and views that have GROUP BY clause.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q117)<span style=""> </span>If I have a view which is a join of two or more tables, can this view be updatable? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A117)<span style=""> </span>No.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q118)<span style=""> </span>What are the 4 environments which can access DB2 ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A118)<span style=""> </span>TSO, CICS, IMS and BATCH</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q119)<span style=""> </span>What is an inner join, and an outer join ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A119)<span style=""> </span>Inner Join: combine information from two or more tables by comparing all values that meet the search criteria in the designated column or columns of one table with all the values in corresponding columns of the other table or tables.<span style=""> </span>This kind of join which involve a match in both columns are called inner joins.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in;">Outer join : Is one in which you want both matching and non matching rows to be returned. DB2 has no specific operator for outer joins, it can be simulated by combining a join and a correlated sub query with a UNION.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q120)<span style=""> </span>What is FREEPAGE and PCTFREE in TABLESPACE creation?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A120)<span style=""> </span>PCTFREE: percentage of each page to be left free </p> <p class="MsoNormal" style="text-indent: 0.5in;">FREEPAGE: Number of pages to be loaded with data between each free page</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q121)<span style=""> </span>What are simple, segmented and<span style=""> </span>partitioned table spaces ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A121)<span style=""> </span>Simple Tablespace: <span style=""> </span>Can contain one or more tables.<span style=""> </span>Rows from multiple tables can be interleaved on a page </p> <p class="MsoNormal" style=""><span style=""> </span>under the DBA’s control and maintenance </p> <p class="MsoNormal" style="margin-left: 0.5in;">Segmented Tablespace: <span style=""> </span>Can contain one or more tables. Tablespace is divided into segments of 4 to 64 pages in </p> <p class="MsoNormal" style="margin-left: 1.5in; text-indent: 0.5in;">increments of 4 pages.<span style=""> </span>Each segment is dedicated to single table.<span style=""> </span>A table can occupy </p> <p class="MsoNormal" style="margin-left: 1.5in; text-indent: 0.5in;">multiple segments </p> <p class="MsoNormal" style="margin-left: 0.5in;">Partitioned Tablespace: <span style=""> </span>Can contain one table. Tablespace is divided into parts and each part is put in a separate </p> <p class="MsoNormal" style="margin-left: 1.5in; text-indent: 0.5in;">VSAM dataset.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q122)<span style=""> </span>What is filter factor?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A122)<span style=""> </span>One divided by the number of distinct values of a column.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q123)<span style=""> </span>What is index cardinality? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A123)<span style=""> </span>The number of distinct values a column or columns contain.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q124)<span style=""> </span>What is a synonym ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A124)<span style=""> </span>Synonym is an alternate name for a table or view used mainly to hide the leading qualifier of a table or view.. A synonym is accessible only by the creator.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q125)<span style=""> </span>What is the difference between SYNONYM and ALIAS?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A125)<span style=""> </span>SYNONYM<span style=""> </span>: is dropped when the table or tablespace is dropped. Synonym is available only to the creator. </p> <p class="MsoNormal" style="margin-left: 0.5in;">ALIAS<span style=""> </span>: is retained even if table or tablespace is dropped.<span style=""> </span>ALIAS can be created even if the table does </p> <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><span style=""> </span>not exist. It is used mainly in distributed environment to hide the location information from </p> <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><span style=""> </span>programs. Alias is a global object & is available to all.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q126)<span style=""> </span>What do you mean by NOT NULL WITH DEFAULT?<span style=""> </span>When will you use it?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A126)<span style=""> </span>This column cannot have nulls and while insertion, if no value is supplied then it will have zeroes, spaces or date/time depending on whether it is numeric, character or date/time.Use it when you do not want to have nulls but at the same time cannot give values all the time you insert this row.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q127)<span style=""> </span>What do you mean by NOT NULL?<span style=""> </span>When will you use it?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A127)<span style=""> </span>The column cannot have nulls.<span style=""> </span>Use it for key fields.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q128)<span style=""> </span>When would you prefer to use VARCHAR?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A128)<span style=""> </span>When a column which contains long text, e.g. remarks, notes, may have in most cases less than 50% of the maximum length.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q129)<span style=""> </span>What are the disadvantages of using VARCHAR?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A129)<span style=""> </span>Can lead to high space utilization if most of the values are close to maximum.</p> <p class="MsoNormal" style="margin-left: 0.5in;">Positioning of VARCHAR column has to be done carefully as it has performance implications.</p> <p class="MsoNormal" style="margin-left: 0.5in;">Relocation of rows to different pages can lead to more I/Os on retrieval.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q130)<span style=""> </span>How do I create a table MANAGER (EMP-NO, MANAGER) where MANAGER is a foreign key which references to EMP-NO in the same table?<span style=""> </span>Give the exact DDL.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A130)<span style=""> </span>First CREATE MANAGER table with EMP-NO as the primary key.<span style=""> </span>Then ALTER it to define the foreign key.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q131)<span style=""> </span>When is the authorization check on DB2 objects done - at BIND time or run time?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A131)<span style=""> </span>At run time.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q132)<span style=""> </span>What is auditing?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A132)<span style=""> </span>Recording SQL statements that access a table.<span style=""> </span>Specified at table creation time or through alter.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q133)<span style=""> </span>max number of columns in a db2 table<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A133)<span style=""> </span>224</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q134)<span style=""> </span>I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A134)<span style=""> </span>The query SELECT * FROM SYSIBM.SYSTABLES WHERE CREATOR = 'owner id' This displays the table names with that If you want only the number of tables give the following query. SELECT COUNT(*) FROM SYSIBM.SYSTABLES WHERE CREATOR = 'owner id' Make sure that you are in correct subsystem. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q135)<span style=""> </span>I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A135)<span style=""> </span>The query SELECT * FROM SYSTABLES WHERE OWNER= should work.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q136)<span style=""> </span>I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A136)<span style=""> </span>Db2 records information for its operation in a catalog which is actually a group of tables. So we can use the SYSTABLES to get answer to ur query. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q137)<span style=""> </span>What is JOIN and different types of JOIN.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A137)<span style=""> </span>The ability to join rows and combine data from two or more tables is one of the most powerful features of relational system. Three type of joins:1. Equi-join 2.Non-equijoin 3.self-join</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q138)<span style=""> </span>can I alter a table (e.g. adding a column) when other user is selecting some columns or updating some columns from the same table?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A138)<span style=""> </span>yes possible. until the updation or selection is committed db2 table will not be restructured. new column definition will be there but it will not be included until all the tasks on the table are committed. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q139)<span style=""> </span>How many sub queries can you combine together ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A139)<span style=""> </span>Total 16 queries and sub queries are 15 </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q140)<span style=""> </span>What are the different methods of accessing db2 from tso? How is the connection established between TSO & DB2? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A140)<span style=""> </span>There are three ways in establishing tso/db2 connection 1. SPUFI 2. QMF 3. CATALOG VISIBILITY B. A thread between TSO & DB2 is established while attempting to make connection between tso & db2. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q141)<span style=""> </span>How many buffer pools are available in db2?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A141)<span style=""> </span>Ten 32k size buffer pools and fifty 4k size buffer pools (bp0 to bp49)default buffer pools are bp0,bp1,bp2 & bp32</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q142)<span style=""> </span>B37 abend during SPUFI<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A142)<span style=""> </span>The b37 abend in the SPUFI is because of space requirements , the query has resulted in so many rows that the SPUFI. out file is not large enough to handle it, increase the space allocation of SPUFI out file.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q143)<span style=""> </span>How many Buffer pools are there in DB2 and what are they?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A143)<span style=""> </span>There are 4 Buffer pools. They are BP0,BP1,BP2 and BP32.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q144)<span style=""> </span>What is the command used by TSO users to invoke DB2?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A144)<span style=""> </span>DSN RUN</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q145)<span style=""> </span>What is the error code -803 ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A145)<span style=""> </span>unique index violation</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q146)<span style=""> </span>How do you filter out the rows retrieved from a Db2 table ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A146)<span style=""> </span>one way is to use The SQL WHERE clause.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q147)<span style=""> </span>what is a collection?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A147)<span style=""> </span>collection is something that every programmer should assign/Specify for every package. this about 1-18 characters long.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q148)<span style=""> </span>What is Skeleton cursor table (SKCT)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A148)<span style=""> </span>The Executable form of a Plan. This is stored in sysibm.sct02 table.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q149)<span style=""> </span>what's the equivalent Cobol Data type for Decimal(x,y) in DB2? what does the current SQLID register contain?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A149)<span style=""> </span>Pic s9(x-y)V9(Y) Comp-3; the current SQLID contains the current authorization ID.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q150)<span style=""> </span>Can we declare DB2 HOST variable in COBOL COPY book? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A150)<span style=""> </span>NO. If we declare DB2 host variable in COBOL COPY book, at the time of Pre-compilation we get the host variable not defined, because pre-compiler will not expand COBOL COPY book. So we declare it either in DCLGEN with EXEC SQL INCLUDE DCLGEN name END-EXEC or we directly hardcode it in the working storage section.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q151)<span style=""> </span>What should be specified along with a cursor in order to continue updating process after commit?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A151)<span style=""> </span>With Hold option.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q152)<span style=""> </span>what is the name of the default db2 catalog database?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A152)<span style=""> </span>DSNDB06</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q153)<span style=""> </span>When Can you be sure that a query will return only one row?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A153)<span style=""> </span>When you use the primary key and only the primary key in the where clause.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q154)<span style=""> </span>what is the difference between join and union?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A154)<span style=""> </span>join is used to retrieve data from different tables using a single sql statement. union is used to combine the results of two or more sql queries.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q155)<span style=""> </span>What is a correlated sub query?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A155)<span style=""> </span>In a sub query, if the outer query refers back to the outcome of inner query it is called correlated sub query. That's why the outer query is evaluated first unlike an ordinary sub query</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q156)<span style=""> </span>What are the functions of Bind?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A156)<span style=""> </span>BIND mainly performs two things syntax checking and authorization checking.It binds together all packages into an application plan hence the name BIND.Apart from this bind has optimiser as a subcomponent.Its function is to determine the optimum access strategy.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q157)<span style=""> </span>Max. No of rows per page<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A157)<span style=""> </span>127</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q158)<span style=""> </span>The only place of VSAM KSDS in DB2 is?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A158)<span style=""> </span>BSDS is a VSAM KSDS.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q159)<span style=""> </span>Can All Users Have The Privilege To Use The SQL Statement Select * (DML)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A159)<span style=""> </span>No the user should be granted privilege to use it.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q160)<span style=""> </span>What is the size of a data page?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A160)<span style=""> </span>4K to 8K</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q161)<span style=""> </span>what's the best lock size that you could use when you create a tablespace?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A161)<span style=""> </span>The answer is Locksize = ANY. Unless you are Sure what's the Purpose of tablespace ie., Read-only or R/W. If you use lock size =any, Db2 would automatically determine what type of locks it should use.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q162)<span style=""> </span>what's the error code for Unique Index Violation?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A162)<span style=""> </span>-803</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q163)<span style=""> </span>Can you define an Index if the table size less than 10 PAGES?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A163)<span style=""> </span>NO</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q164)<span style=""> </span>What's the Maximum Length of SQLCA and what's the content of SQLCABC?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A164)<span style=""> </span>The Max length is 136. and the SQLCABC has the Value of SQLCA.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q165)<span style=""> </span>What's the maximum number of volumes that can be added to a STOGROUP?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A165)<span style=""> </span>The answer is 133.Usually it will be difficult monitor more than 3 or 4 volumes to a Stogroup.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q166)<span style=""> </span>What's the maximum number of characters that a tablename can have?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A166)<span style=""> </span>The answer is 18 characters.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q167)<span style=""> </span>What is the meaning of -805 SQL return code?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A167)<span style=""> </span>Program name not in plan. Bind the plan and include the DBRM for the program named as part of the plan.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q168)<span style=""> </span>when does the SQL statement gets executed when you use cursor in the application programming ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A168)<span style=""> </span>SQL statement gets executed when we open cursor</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q169)<span style=""> </span>What does CURRENTDATA option in bind indicate<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A169)<span style=""> </span>CURRENTDATA option ensures block fetch while selecting rows from a table. In DB2V4 the default has been changed to NO. Therefore it is necessary to change all the bind cards with CURRENTDATA(YES) which is default in DB2V3 & earlier to CURRENTDATA(NO).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q170)<span style=""> </span>What is the difference between TYPE 1 index & TYPE 2 index<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A170)<span style=""> </span>TYPE 1 & TYPE 2 are specified when an index is created on the table. TYPE 2 index is the option which comes with DB2V4. With TYPE 2 index data can be retrieved faster as only the data pages are locked and not the index pages. Hence TYPE 2 index is recommended. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q171)<span style=""> </span>What are the levels of isolation available with DB2V4 <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A171)<span style=""> </span>CS RR UR( added new for DB2V4 which stands for uncommitted read which allows to retrieve records from the space which has exclusive locks also but data integrity will be affected if this option is used )The best available option for data integrity & data concurrency is CS.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q172)<span style=""> </span>How do u achieve record level locking in DB2 versions when record level locking is not allowed?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A172)<span style=""> </span>By having the length of the record greater than that of a page!</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q173)<span style=""> </span>In a DB2-CICS program which is acts as co-ordinator and which is participant?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A173)<span style=""> </span>DB2 - participant CICS- coordinator</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q174)<span style=""> </span>What does DML stand for and what are some examples of it?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A174)<span style=""> </span>Data Manipulation Language. Some examples are SELECT, INSERT, DELETE, REPLACE.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q175)<span style=""> </span>How to define the data items to receive the fetch items for the SQL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A175)<span style=""> </span>Using the DSECT, followed by lines of - 'data items DS datatype'.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q176)<span style=""> </span>How will you delete duplicate records from a table? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A176)<span style=""> </span>Delete From Table1Where Id In (Select Id From Table1 As Temp Group By Id Having Count(*) >1)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q177)<span style=""> </span>What is the difference between Where and Having Clause<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A177)<span style=""> </span>WHERE is for Rows and HAVING is for Groups</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q178)<span style=""> </span>How to see the structure of db2 table??<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A178)<span style=""> </span>Using QMF.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q179)<span style=""> </span>How do you declare a host variable (in COBOL) for an attribute named emp-name of type VARCHAR(25) ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A179)<span style=""> </span>01 EMP-GRP. 49 E-LEN PIC S9(4) COMP. 49 E-NAME PIC X(25).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q180)<span style=""> </span>What is the maximum number of tables that can be stored on a Partitioned Table Space ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A180)<span style=""> </span>ONE</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q181)<span style=""> </span>Name the different types of Table spaces.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A181)<span style=""> </span>Simple Table Space, Segmented Table Space and Partitioned Table Space</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q182)<span style=""> </span>what are the max. & min. no. of partitions allowed in a partition tablespace?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A182)<span style=""> </span>minimum is 4. maximum is 64.</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q183)<span style=""> </span>what is the maximum number of tables that can be joined ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A183)<span style=""> </span>fifteen</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q184)<span style=""> </span>What technique is used to retrieve data from more than one table in a single SQL statement? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A184)<span style=""> </span>The Join statement combines data from more that two tables</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q185)<span style=""> </span>Explain the use of the WHERE clause.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A185)<span style=""> </span>It directs DB2 to extract data from rows where the value of the column is the same as the current value of the host variable.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q186)<span style=""> </span>What is a DB2 bind? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A186)<span style=""> </span>DB2 bind is a process that builds an access path to DB2 tables. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q187)<span style=""> </span>What is a DB2 access path? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A187)<span style=""> </span>An access path is the method used to access data specified in DB2 SQL statements. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q188)<span style=""> </span>What is a DB2 plan? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A188)<span style=""> </span>An application plan or package is generated by the bind to define an access path. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q189)<span style=""> </span>What is normalization and what are the five normal forms? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A189)<span style=""> </span>Normalization is a design procedure for representing data in tabular format.<span style=""> </span>The five normal forms are progressive rules to represent the data with minimal redundancy. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q190)<span style=""> </span>What are foreign keys? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A190)<span style=""> </span>These are attributes of one table that have matching values in a primary key in another table, allowing for relationships between tables. </p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q191)<span style=""> </span>Describe the elements of the SELECT query syntax? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A191)<span style=""> </span>SELECT element FROM table WHERE conditional statement. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q192)<span style=""> </span>Explain the use of the WHERE clause? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A192)<span style=""> </span>WHERE is used with a relational statement to isolate the object element or row. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q193)<span style=""> </span>What techniques are used to retrieve data from more than one table in a single SQL statement? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A193)<span style=""> </span>Joins, unions and nested selects are used to retrieve data. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q194)<span style=""> </span>What do the initials DDL and DML stand for and what is their meaning? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A194)<span style=""> </span>DDL is data definition language and DML is data manipulation language.<span style=""> </span>DDL statements are CREATE, ALTER, TRUNCATE.<span style=""> </span>DML statements are SELECT, INSERT, DELETE and UPDATE. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q195)<span style=""> </span>What is a view? Why use it? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A195)<span style=""> </span>A view is a virtual table made up of data from base tables and other views, but not stored separately. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q196)<span style=""> </span>Explain an outer join? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A196)<span style=""> </span>An outer join includes rows from tables when there are no matching values in the tables. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q197)<span style=""> </span>What is a subselect?<span style=""> </span>Is it different from a nested select? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A197)<span style=""> </span>A subselect is a select which works in conjunction with another select. A nested select is a kind of subselect where the inner select passes to the where criteria for the outer select. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q198)<span style=""> </span>What is the difference between group by and order by? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A198)<span style=""> </span>Group by controls the presentation of the rows, order by controls the presentation of the columns<span style=""> </span>for the results of the SELECT statement. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q199)<span style=""> </span>Explain the EXPLAIN statement? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A199)<span style=""> </span>The explain statement provides information about the optimizer's choice of access path of the sql. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q200)<span style=""> </span>What is tablespace? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A200)<span style=""> </span>Tables are stored in tablespaces (hence the name)!<span style=""> </span>There are three types of tablespaces: simple, segmented and partitioned. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q201)<span style=""> </span>What is a cursor and what is its function? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A201)<span style=""> </span>An embedded SQL statement may return a number of rows while the programming language can only access one row at a time.<span style=""> </span>The programming device called a cursor controls the position of the row. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q202)<span style=""> </span>What is referential integrity? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A202)<span style=""> </span>Referential integrity refers to the consistency that must be maintained between primary and foreign keys, i.e. every foreign key value must have a corresponding primary key value. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q203)<span style=""> </span>Usually, which is more important for DB2 system performance - CPU processing or I/O access? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A203)<span style=""> </span>I/O operations are usually most critical for DB2 performance (or any other database for that matter). </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q204)<span style=""> </span>Is there any advantage to denormalizing DB2 tables? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A204)<span style=""> </span>Denormalizing DB2 tables reduces the need for processing intensive relational joins and reduces the number of foreign keys. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q205)<span style=""> </span>What is the database descriptor?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A205)<span style=""> </span>The database descriptor, DBD is the DB2 component that limits access to the database whenever objects are created, altered or dropped. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q206)<span style=""> </span>What is lock contention? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A206)<span style=""> </span>To maintain the integrity of DB2 objects the DBD permits access to only on object at a time. Lock contention happens if several objects are required by contending application processes simultaneously. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q207)<span style=""> </span>What is SPUFI?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A207)<span style=""> </span>SPUFI stands for SQL processing using file input.<span style=""> </span>It is the DB2 interactive menu-driven tool used by developers to create database objects. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q208)<span style=""> </span>What is the significance of DB2 free space and what parameters control it? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A208)<span style=""> </span>The two parameters<span style=""> </span>used in the CREATE statement are the PCTFREE which specifies the percentage of free space for each page and FREEPAGE which indicates the number of pages to be loaded with data between each free page.<span style=""> </span>Free space allows room for the insertion of new rows. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q209)<span style=""> </span>What is a NULL value?<span style=""> </span>What are the pros and cons of using NULLS? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A209)<span style=""> </span>A NULL value takes up one byte of storage and indicates that a value is not present as opposed to a space or zero value.<span style=""> </span>It's the DB2 equivalent of TBD on an organizational chart and often correctly portrays a business situation.<span style=""> </span>Unfortunately, it requires extra coding for an application program to handle this situation. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q210)<span style=""> </span>What is a synonym?<span style=""> </span>How is it used? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A210)<span style=""> </span>A synonym is used to reference a table or view by another name. The other name can then be written in the application code pointing to test tables in the development stage and to production entities when the code is migrated.<span style=""> </span>The synonym is linked to the AUTHID that created it. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q211)<span style=""> </span>What is an alias and how does it differ from a synonym? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A211)<span style=""> </span>An alias is an alternative to a synonym, designed for a distributed environment to avoid having to use the location qualifier of a table or view.<span style=""> </span>The alias is not dropped when the table is dropped. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q212)<span style=""> </span>What is a LIKE table and how is it created? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A212)<span style=""> </span>A LIKE table is created by using the LIKE parameter in a CREATE table statement.<span style=""> </span>LIKE tables are typically created for a test environment from the production environment. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q213)<span style=""> </span>If the base table underlying a view is restructured, eg. attributes are added, does the application code accessing the view need to be redone? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A213)<span style=""> </span>No.<span style=""> </span>The table and its view are created anew, but the programs accessing the view do not need to be changed if the view and attributes accessed remain the same.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q214)<span style=""> </span>Under what circumstances will DB2 allow an SQL statement to update more than one primary key value at a time? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A214)<span style=""> </span>Never.<span style=""> </span>Such processing could produce duplicate values violating entity integrity. Primary keys must be updated one at a time. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q215)<span style=""> </span>What is the cascade rule and how does it relate to deletions made with a subselect? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A215)<span style=""> </span>The cascade rule will not allow deletions based on a subselect that references the same table from which the deletions are being made. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q216)<span style=""> </span>What is the self-referencing constraint? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A216)<span style=""> </span>The self-referencing constraint limits in a single table the changes to a primary key that the related foreign key defines.<span style=""> </span>The foreign key in a self referencing table must specify the DELETE CASCADE rule. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q217)<span style=""> </span>What are delete-connected tables? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A217)<span style=""> </span>Tables related with a foreign key are called delete-connected because a deletion in the primary key table can affect the contents of the foreign key table. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q218)<span style=""> </span>When can an insert of a new primary key value threaten referential integrity? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A218)<span style=""> </span>Never. New primary key values are not a problem.<span style=""> </span>However, the values of foreign key inserts must have corresponding primary key values in their related tables. And updates of primary key values may require changes in foreign key values to maintain referential integrity. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q219)<span style=""> </span>In terms of DB2 indexing, what is the root page? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A219)<span style=""> </span>The simplest DB2 index is the B-tree and the B-tree's top page is called the root page. The root page entries represent the upper range limits of the index and are referenced first in a search. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q220)<span style=""> </span>How does DB2 use multiple table indexes? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A220)<span style=""> </span>DB2 use the multiple indexes to satisfy multiple predicates in a SELECT statement that are joined by an AND or OR. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q221)<span style=""> </span>What are some characteristics of columns that benefit from indexes? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A221)<span style=""> </span>Primary key and foreign key columns;<span style=""> </span>columns that have unique values; columns that have aggregates computed frequently and columns used to test the existence of a value. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q222)<span style=""> </span>What is a composite index and how does it differ from a multiple index? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A222)<span style=""> </span>A multiple index is not one index but two indexes for two different columns of a table.<span style=""> </span>A composite index is one index made up of combined values from two columns in a table.<span style=""> </span>If two columns in a table will often be accessed together a composite index will be efficient. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q223)<span style=""> </span>What is meant by index cardinality? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A223)<span style=""> </span>The number of distinct values for a column is called index cardinality.<span style=""> </span>DB2's RUNSTATS utility analyzes column value redundancy to determine whether to use a tablespace or index scan to search for data. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q224)<span style=""> </span>What is a clustered index? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A224)<span style=""> </span>For a clustered index DB2 maintains rows in the same sequence as the columns in the index for as long as there is free space. DB2 can then process that table in that order efficiently. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q225)<span style=""> </span>What keyword does an SQL SELECT statement use for a string search? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A225)<span style=""> </span>The LIKE keyword allows for string searches.<span style=""> </span>The % sign is used as a wildcard. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q226)<span style=""> </span>What are some SQL aggregates and other built-in functions? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A226)<span style=""> </span>The common aggregate, built-in functions are AVG, SUM, MIN, MAX, COUNT and DISTINCT. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q227)<span style=""> </span>How is the SUBSTR keyword used in sql? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A227)<span style=""> </span>SUBSTR is used for string manipulation with column name, first position and string length used as arguments.<span style=""> </span>E.g. SUBSTR (NAME, 1 3) refers to the first three characters in the column NAME. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q228)<span style=""> </span>What are the three DB2 date and time data types and their associated functions? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A228)<span style=""> </span>The three data types are DATE, TIME and TIMESTAMP.<span style=""> </span>CHAR can be used to specify the format of each type. The DAYS function calculates the number of days between two dates. (It's Y2K compliant).<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q229)<span style=""> </span>Explain transactions, commits and rollbacks in DB2. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A229)<span style=""> </span>In DB2 a transaction typically requires a series of updates, insertions and deletions that represent a logical unit of work. A transaction puts an implicit lock on the DB2 data. Programmers can use the COMMIT WORK statement to terminate the transaction creating smaller units for recovery.<span style=""> </span>If the transaction fails DB2 uses the log to roll back values to the start of the transaction or to the preceding commit point. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q230)<span style=""> </span>What is deadlock? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A230)<span style=""> </span>Deadlock occurs when transactions executing at the same time lock each other out of data that they need to complete their logical units of work. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q231)<span style=""> </span>What are the four lockable units for DB2? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A231)<span style=""> </span>DB2 imposes locks of four differing sizes:<span style=""> </span>pages, tables, tablespace and for indexes subpage. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q232)<span style=""> </span>What are the three lock types? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A232)<span style=""> </span>The three types are shared, update and exclusive.<span style=""> </span>Shared locks allow two or more programs to read simultaneously but not change the locked space.<span style=""> </span>An exclusive lock bars all other users from accessing the space.<span style=""> </span>An update lock is less restrictive; it allows other transactions to read or acquire shared locks on the space. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q233)<span style=""> </span>What is isolation level? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A233)<span style=""> </span>SQL statements may return any number of rows, but most host languages deal with one row at a time by declaring a cursor that presents each row at a unique isolation level. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q234)<span style=""> </span>What is an intent lock? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A234)<span style=""> </span>An intent lock is at the table level for a segmented tablespace or at the tablespace level for a non-segmented tablespace.<span style=""> </span>They indicate at the table or tablespace level the kinds of locks at lower levels. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q235)<span style=""> </span>What is the difference between static and dynamic SQL? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A235)<span style=""> </span>Static SQL is hard-coded in a program when the programmer knows the statements to be executed.<span style=""> </span>For dynamic sql the program must dynamically allocate memory to receive the query results. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q236)<span style=""> </span>What is cursor stability? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A236)<span style=""> </span>Cursor stability means that DB2 takes a lock on the page the cursor is accessing and releases the lock when the cursor moves to another page. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q237)<span style=""> </span>What is the significance of the CURSOR WITH HOLD clause in a cursor declaration? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A237)<span style=""> </span>The clause avoids closing the cursor and repositioning it to the last row processed when the cursor is reopened. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q238)<span style=""> </span>What is the SQL Communications Area and what are some of its key fields? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A238)<span style=""> </span>It is a data structure that must be included in any host-language program using SQL.<span style=""> </span>It is used to pass feedback about the SQL operations to the program.<span style=""> </span>Fields are return codes, error messages, handling codes and warnings. </p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q239)<span style=""> </span>What is the purpose of the WHENEVER statement? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A239)<span style=""> </span>The WHENEVER statement is coded once in the host program to control program actions depending on the SQL-CODE returned by each sql statement within the program. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q240)<span style=""> </span>What is the FREE command? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A240)<span style=""> </span>The FREE command can be used to delete plans and/or packages no longer needed. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q241)<span style=""> </span>DB2 can implement a join in three ways using a merge join, a nested join or a hybrid join. Explain the differences? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A241)<span style=""> </span>A merge join requires that the tables being joined be in a sequence; the rows are retrieved with a high cluster ratio index or are sorted by DB2.<span style=""> </span>A nested join does not require a sequence and works best on joining a small number of rows. DB2 reads the outer table values and each time scans the inner table for matches. The hybrid join is a nested join that requires the outer table be in sequence. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q242)<span style=""> </span>Compare a subselect to a join? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A242)<span style=""> </span>Any subselect can be rewritten as a join, but not vice versa.<span style=""> </span>Joins are usually more efficient as join rows can be returned immediately, subselects require a temporary work area for inner selects results while processing the outer select. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q243)<span style=""> </span>What is the difference between IN subselects and EXISTS subselect? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A243)<span style=""> </span>If there is an index on the attributes tested an IN is more efficient since DB2 uses the index for the IN.<span style=""> </span>(IN for index is the mnemonic). </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q244)<span style=""> </span>What is a Cartesian product? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A244)<span style=""> </span>A Cartesian product results from a faulty query.<span style=""> </span>It is a row in the results for every combination in the join tables. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q245)<span style=""> </span>DB2 What is the difference between a package and a plan? How does one bind 2 versions of a CICS transaction with the same module name in two different CICS regions that share the same DB2 subsystem?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A245)<span style=""> </span>Package and plan are usually used synonymously, as in this site. Both contain optimized code for SQL statements - a package for a single program, module or subroutine contained in the database request module (DBRM) library. A plan may contain multiple packages and pointers to packages. The one CICS module would then exist in a package that could be referenced in two different plans. </p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q246)<span style=""> </span>What is an asychronous write? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A246)<span style=""> </span>It is a write to disk that may occur before or long after a commit.<span style=""> </span>The write is controlled by the buffer manager. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q247)<span style=""> </span>What is a lock? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A247)<span style=""> </span>A lock is the mechanism that controls access to data pages and tablespaces. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q248)<span style=""> </span>What is meant by isolation level? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A248)<span style=""> </span>This is a key concept for any relational database.<span style=""> </span>Isolation level is the manner in which locks are applied and released during a transaction.<span style=""> </span>For DB@ a 'repeatable read' holds all locks untile the transaction completes or a syncpoint is issued.<span style=""> </span>For transactions using 'cursor stability' the page lock releases are issued as the cursor 'moves', i.e. as the transaction releases addressability to the records.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q249)<span style=""> </span>What are leaf pages? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A249)<span style=""> </span>They are the opposite of root pages.<span style=""> </span>Leaf pages are the lowest level index pages - the pages that contain index entries and information to the corresponding table rows. </p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q250)<span style=""> </span>What is a precompiler? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A250)<span style=""> </span>It is a DB2 facility for static SQL statements - it replaces these statements with calls to the DB2 language interface module. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q251)<span style=""> </span>What is a root page? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A251)<span style=""> </span>The opposite of a leaf page; it is the highest level index page.<span style=""> </span>An index can contain only the one root page; all other index pages are associated to the root. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q252)<span style=""> </span>What is a thread? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A252)<span style=""> </span>A thread is the connection between DB2 and some other subsystem, such as CICS or IMS/DC. </p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q253)<span style=""> </span>Which transaction use a command thread ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A253)<span style=""> </span>Only the DSNC transaction uses a command thread.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q254)<span style=""> </span>What is the purpose of the DSNC transaction ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">A254)<span style=""> </span></b>The DSNC transaction is used for controlling the CICS Call Attach Facility(CAF) and for Displaying<span style=""> </span>CAF statistics.<b style=""><o:p></o:p></b></p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;">DB2 Utilities<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q255)<span style=""> </span>What does the CHECK Utility do ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A255)<span style=""> </span>The<span style=""> </span>CHECK Utility checks the referential integrity of table relations and checks the integrity of the indexes<span style=""> </span>by<span style=""> </span>matching index column values to table column values.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q256)<span style=""> </span>what types of copies can be made with the COPY Utility ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">A256)<span style=""> </span></b>The copy Utility can make a full image copy or an incremental image copy . <b style=""><o:p></o:p></b></p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q257)<span style=""> </span>Why might full image copies be faster to implement than an incremental image copy?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A257)<span style=""> </span>Because an incremental image copy has to search for changed data and cannot make use of sequential pre fetch. Conversely, a full image copy has no checking to do as it takes advantage of sequential pre fetch.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q258)<span style=""> </span>How could one combine a set of incremental image copies into a single copy?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A258)<span style=""> </span>By using the MERGECOPY Utility.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q259)<span style=""> </span>What is the purpose of the QUIESE Utility?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A259)<span style=""> </span>The QUIESE Utility prevents the start of any new table space activity while it gives active threads a chance to finish their tasks. Once all thread are inactive, it records information to establish<span style=""> </span>a point of consistency for future recovery. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q260)<span style=""> </span>What does the REORG Utility do?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A260)<span style=""> </span>The REORG Utility will sort the index space and table space to conform with the primary index or clustering index specified in the DDL. It will also reclaim the space from dropped simple table spaces.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q261)<span style=""> </span>What can the SET option of the Repair Utility accomplish?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A261)<span style=""> </span>The set option of the Repair utility can reset a copy pending, check pending, and recover pending flags.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q262)<span style=""> </span>What can the Locate option of the Repair Utility accomplish?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A262)<span style=""> </span>The Locate option of the Repair Utility can delete a row from a table space, repair broken table space pages, and replace data as specific locations in a table space or index.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q263)<span style=""> </span>What does the RUNSTATS Utility do?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A263)<span style=""> </span>The RUNSTATS Utility collects statistical information for DB2 table spaces, partitions, indexes, tables and columns and stores this data in the DB2 Catalog.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q264)<span style=""> </span>Why use RUNSTAT Utility?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A264)<span style=""> </span>Because the DB2 Optimizer need accurate data in order to formulate the most efficient access path given the state of the environment and because the information will help the DBA to monitor the condition of the object in the DB2 subsystem.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q265)<span style=""> </span>What statistic will tell the DBA how must space can be reclaimed from dropped table spaces on the next reorg run?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A265)<span style=""> </span>The DBA can see this in the PERCDROP column of the SYSIBM.SYSTABLEPART catalog table.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q266)<span style=""> </span>What DB2 Catalog column tell you when an index needs table reorganized ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A266)<span style=""> </span>The FAROFFPOS column of the SYSIBM.SYSINDEXPART table.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q267)<span style=""> </span>What is the STOSPACE Utility used for?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A267)<span style=""> </span>The STOSPACE Utility updates the DB2 catalog with the DASD utilization of the table space and index space data sets.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q268)<span style=""> </span>What is a SELECT statement?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A268)<span style=""> </span>A select statement is an SQL statement<span style=""> </span>that retrieves data from a table or view.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q269)<span style=""> </span>What is the syntax of SELECT statement when embedded in a COBOL program?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A269)<span style=""> </span>Exec SQL
<br /><span style=""> </span>SELECT<span style=""> </span>col_name1,col_name2,col_name3</p> <p class="MsoNormal"><span style=""> </span>INTO<span style=""> </span><span style=""> </span>hos:_var1,hos_var2,hos_var3</p> <p class="MsoNormal"><span style=""> </span><span style=""> </span>FROM<span style=""> </span>owner.tablename</p> <p class="MsoNormal"><span style=""> </span>WHERE<span style=""> </span>condition</p> <p class="MsoNormal"><span style=""> </span>END_EXEC.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q270)<span style=""> </span>What are column-name qualifiers<span style=""> </span>used?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A270)<span style=""> </span>Column-name qualifier are used as table designator to avoid ambiguity when the column names referenced exist in more than one table used in the SQL statement. Column-name qualifiers are used in correlated references.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q271)<span style=""> </span>What is correlation names?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A271)<span style=""> </span>IT is a special type of column designator that connects specific column in the various levels of a multilevel SQL query.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q272)<span style=""> </span>How do you define a correlated name?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A272)<span style=""> </span>A correlated name<span style=""> </span>can be defined in the FROM clause of a query and in the first clause of an UPDATE or DELETE statement.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q273)<span style=""> </span>What is subquery ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A273)<span style=""> </span>A subquery is a query that is written as part of another query’s WHERE clause. For example :</p> <p class="MsoNormal" style="margin-left: 40.5pt;"><span style=""> </span>SELECT<span style=""> </span>col_name1,col_name2</p> <p class="MsoNormal" style="margin-left: 40.5pt;"><span style=""> </span>FROM<span style=""> </span>table_A</p> <p class="MsoNormal" style="margin-left: 40.5pt;"><span style=""> </span>WHERE<span style=""> </span>col_name3<span style=""> </span><<span style=""> </span>(<span style=""> </span>SELECT Avg(col_name)</p> <p class="MsoNormal" style="margin-left: 40.5pt;"><span style=""> </span><span style=""> </span><span style=""> </span><span style=""> </span><span style=""> </span>FROM table_A</p> <p class="MsoNormal" style="margin-left: 40.5pt;"><span style=""> </span><span style=""> </span>WHERE<span style=""> </span>col_name4 = ‘constant’<span style=""> </span>)<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q274)<span style=""> </span>What is correlated subquery?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A274)<span style=""> </span>A correlated subquery is one that has a correlation name as a table or view designator in the FROM clause of the outer query and the same correlation name as a qualifier of a search condition in the WHERE clause of the subquery. For example:</p> <p class="MsoNormal" style="margin-left: 0.25in;"><o:p> </o:p></p> <p class="MsoNormal"><span style=""> </span>SELECT<span style=""> </span>col_name1,col_name2</p> <p class="MsoNormal"><span style=""> </span>FROM <span style=""> </span><span style=""> </span>table_A<span style=""> </span>x1</p> <p class="MsoNormal"><span style=""> </span>WHERE<span style=""> </span>col_name3<span style=""> </span><<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span>(<span style=""> </span>SELECT<span style=""> </span>Avg(column_name3</p> <p class="MsoNormal"><span style=""> </span><span style=""> </span>FROM<span style=""> </span>table_A</p> <p class="MsoNormal"><span style=""> </span>WHERE<span style=""> </span>col_name4<span style=""> </span>=<span style=""> </span>x1.col_name4<span style=""> </span>)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q275)<span style=""> </span>How does the processing of a correlated subquery differ from a non correlated subquery?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A275)<span style=""> </span>The subquery in a correlated subquery is reevaluated for every row of the table or view named in the outer query, while the subquery of a non correlated<span style=""> </span>subquery is evaluated only once.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q276)<span style=""> </span>What is a result table?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A276)<span style=""> </span>A result table is the product of a query against one or more tables or views ( i.e. it is the place that holds the results of a query).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q277)<span style=""> </span>What is a cursor?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A277)<span style=""> </span>A cursor<span style=""> </span>is a named control structure used to make a set of rows available to a program.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q278)<span style=""> </span>What is the syntax required for the creation of a cursor?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A278)<span style=""> </span>EXEC SQL</p> <p class="MsoNormal"><span style=""> </span>DECLARE cur_name<span style=""> </span>CURSOR for</p> <p class="MsoNormal"><span style=""> </span>SELECT<span style=""> </span>col1,col2</p> <p class="MsoNormal"><span style=""> </span>FROM<span style=""> </span>table1</p> <p class="MsoNormal"><span style=""> </span>WHERE<span style=""> </span>col1 = search_condition</p> <p class="MsoNormal"><span style=""> </span><span style=""> </span>END-EXEC.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q279)<span style=""> </span>When is the results table for the query in a DECLARE CURSOR statement created?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A279)<span style=""> </span>The results table for a query specified in a DECLARE CURSOR statement of a cursor is created during the execution of the OPEN CURSOR statement.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q280)<span style=""> </span>What is read-only cursor?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A280)<span style=""> </span>A read-only cursor is one in which the result table was created by a query containing one of the following :</p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: 0.75pt;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]-->a DISTINCT<span style=""> </span>keyword</p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: 0.75pt;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]-->a<span style=""> </span>UNION<span style=""> </span>operator</p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: 0.75pt;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]-->a<span style=""> </span>column or scalar function</p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: 0.75pt;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]-->a<span style=""> </span>GROUP BY clause</p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: 0.75pt;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]-->a<span style=""> </span>ORDER BY clause</p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: 0.75pt;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]-->a<span style=""> </span>HAVING clause</p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: 0.75pt;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]-->a<span style=""> </span>read-only view in the FROM clause</p> <p class="MsoNormal" style="margin-left: 45pt; text-indent: 0.75pt;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·</span></span><!--[endif]-->a<span style=""> </span>FROM<span style=""> </span>clause<span style=""> </span>identifying more than one table or view</p> <p class="MsoNormal" style="margin-left: 17.25pt;"><span style=""> </span><b style=""><o:p></o:p></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;">DB2 Catalog<o:p></o:p></span></b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q281)<span style=""> </span>Which DB2 catalog tables are used to produce a list of table column by table for all tables in a database?<span style=""> </span><span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A281)<span style=""> </span>The catalog tables to use are the SYSIBM.SYSTABLES and the SYSIBM.SYSCOLUMNS.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q282)<span style=""> </span>Which catalog tables contain authorization information?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A282)<span style=""> </span>The SYSIBM table that contain authorization information are SYSCOLAUTH, SYSDBAUTH, SYSPLANAUTH, SYSTABAUTH and SYSUSERAUTH.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q283)<span style=""> </span>Which catalog table stores referential constraints?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A283)<span style=""> </span>The SYSIBM.SYSRELS table.</p> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;">DB2 Directory<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q284)<span style=""> </span>What Utility is used to migrate DB2 from one release to the next?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A284)<span style=""> </span>The DUMPCAT Utility.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q285)<span style=""> </span>How would one remove old reorg information from the DB2 catalog?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A285)<span style=""> </span>Run the MODIFY RECOVERY Utility.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q286)<span style=""> </span>What happens to a tablespace<span style=""> </span>when its recovery infromation has been removed and a full recovery is no longer possible?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A286)<span style=""> </span>The tablespace is put into copy pending<span style=""> </span>status.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q287)<span style=""> </span>Where is the access path logic created by the DB2 Optimizer stored?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A287)<span style=""> </span>The access path logic is stored as skeleton cursor tables in the SCT02 Directory table.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q288)<span style=""> </span>When is the skeleton cursor table created?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A288)<span style=""> </span>During the execution of the BIND PLAN command.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q289)<span style=""> </span>How does one remove entries from the SCT02 table?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A289)<span style=""> </span>Run the FREE PLAN command.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q290)<span style=""> </span>When one binds a PACKAGE ( of a plan ) what package information is stored and where it is stored?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A290)<span style=""> </span>The access path information for the PACKAGE is stored as skeleton package tables in the SPT01 table.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q291)<span style=""> </span>Where besides the DB2 catalog is database object information stored by DB2?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A291)<span style=""> </span>DB2 also stores information about DB2 objects as database descriptors (DBDs) in the DBD Directory table.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q292)<span style=""> </span>Can you access the DB2 Directory<span style=""> </span>table using SQL?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A292)<span style=""> </span>No. These tables are exclusively accessed by internal DB2 processes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;">DB2 Commands</span></b><b style=""><span style="font-size: 16pt;"><o:p></o:p></span></b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q293)<span style=""> </span>Which DB2 command is used to retrieve environmental information?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A293)<span style=""> </span>The DISPLAY command can return the following environmental<span style=""> </span>data: DATABASE info, RLIMIT info, THREAD info, TRACE info, and UTILITY info.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q294)<span style=""> </span>Which command is issued to establish the Boot Strap Data Set after an I/O failure?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A294)<span style=""> </span>The DBA would issue a RECOVER BSDS command.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q295)<span style=""> </span>How is the status of a utility reset after it has been stopped by DB2 ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A295)<span style=""> </span>By issuing the START RLIMIT command.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q296)<span style=""> </span>How can one determine the status of a tablespace?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A296)<span style=""> </span>By using the DISPLAY DATABASE command. </p> <p class="MsoNormal"><b style=""><span style="color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: black;">The following is the checklist<span style=""> </span>to complete a DB2 batch or on-line program....<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 12pt; color: black;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><i style=""><u><span style="font-size: 12pt; color: black;">Batch DB2 COBOL program....<o:p></o:p></span></u></i></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><span style="color: black;">1. If the program is main program it should have both DBB and DPK components.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="color: black;">2. If the program is linked (called) program it should have only DPK component. But the package generated should be binded in Calling program DBB component.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="color: black;">For example the <b style="">DBB</b> component looks like ....<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 8pt; font-family: "Courier New"; color: black;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 8pt; font-family: "Courier New"; color: black;"><span style=""> </span></span><span style="font-family: "Courier New"; color: black;">BIND PLAN(????????)<span style=""> </span>-<span style=""> </span>**********>>><span style=""> </span>ENTER PLAN NAME<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>PKLIST(SEALAND.????????, -<span style=""> </span>**********>>><span style=""> </span>ENTER MEMBER NAME<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>SEALAND.????????, -<span style=""> </span>**********>>><span style=""> </span>(MULTIPLE MEMBERS<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>SEALAND.????????) -<span style=""> </span>**********>>><span style=""> </span>FOR EACH PLAN)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span><span style=""> </span>QUALIFIER(TEST)<span style=""> </span>-<span style=""> </span>**********>>><span style=""> </span>MUST ALWAYS BE TEST<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>OWNER(????)<span style=""> </span>-<span style=""> </span>**********>>><span style=""> </span>ENTER YOUR TSO ID<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>ACTION(REPLACE)<span style=""> </span>-<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>RETAIN<span style=""> </span>-<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>VALIDATE(BIND)<span style=""> </span>-<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>ISOLATION(CS)<span style=""> </span>-<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>FLAG(I)<span style=""> </span>-<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span><span style=""> </span>ACQUIRE(USE)<span style=""> </span>-<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>RELEASE(COMMIT)<span style=""> </span>-<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>EXPLAIN(YES)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>*********************************************************************<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>*<span style=""> </span>THIS IS A SAMPLE DBB CARD FOR DB2 PACKAGING<span style=""> </span>*<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>*<span style=""> </span><span style=""> </span>*<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>*<span style=""> </span>IF MULTIPLE MEMBERS ARE ENTERED IN PKLIST,<span style=""> </span>*<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>*<span style=""> </span>THERE MUST BE A DPK CARD FOR EACH ONE.<span style=""> </span>*<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>*********************************************************************<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; color: black;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; color: black;">The following is the format of the <b style="">DPK</b> card....<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 8pt; font-family: "Courier New"; color: black;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 8pt; font-family: "Courier New"; color: black;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 8pt; font-family: "Courier New"; color: black;"><span style=""> </span></span><span style="font-family: "Courier New"; color: black;">BIND PACKAGE(SEALAND) -<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>MEMBER(????????)<span style=""> </span>-<span style=""> </span>***********>>><span style=""> </span>ENTER MEMBER NAME<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>VALIDATE(BIND)<span style=""> </span>-<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>OWNER(????)<span style=""> </span>-<span style=""> </span>***********>>><span style=""> </span>ENTER YOUR TSO ID<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>EXPLAIN(NO)<span style=""> </span>-<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>QUALIFIER(TEST)<span style=""> </span>***********>>><span style=""> </span>MUST ALWAYS BE TEST<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>***********************************************************************<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>*<span style=""> </span>*<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>*<span style=""> </span>THIS IS A SAMPLE DPK CARD FOR DB2 PACKAGING<span style=""> </span>*<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>*<span style=""> </span>*<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>*<span style=""> </span>*<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: "Courier New"; color: black;"><span style=""> </span>***********************************************************************<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;">3. As we are all aware that RCT is a concept of CICS. So batch DB2 program will not have any RCT entry.<o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;">4. To run this DB2 program the following the is the model JCL...<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//TESTXXX<span style=""> </span>JOB<span style=""> </span>(AAAA),'ACCOUNTS PAYABLE',CLASS=A,<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//<span style=""> </span>USER=XXXX,MSGCLASS=H,REGION=4096K<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">/*JOBPARM SYSAFF=B158<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//JOBLIB<span style=""> </span>DD DSN=TEST.JOBLIB,DISP=SHR<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">/*<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//STEP010<span style=""> </span>EXEC PGM=IKJEFT01,DYNAMNBR=20<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//STEPLIB<span style=""> </span>DD DSN=DB2T.DSNEXIT,DISP=SHR<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//<span style=""> </span>DD DSN=DB2T.DSNLOAD,DISP=SHR<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//<span style=""> </span>DD DSN=TEST.JOBLIB,DISP=SHR<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//INPUT1<span style=""> </span>DD DSN=XYZ.ABC.DBF,DISP=SHR<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//OUTPUT1<span style=""> </span>DD DSN=XYZ.BCD.LEY,<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//<span style=""> </span>DISP=(NEW,CATLG,DELETE),<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//<span style=""> </span>DCB=(RECFM=FB,LRECL=122,BLKSIZE=2440),UNIT=SYSDA,<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//<span style=""> </span>SPACE=(CYL,(10,2),RLSE)<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//SYSPRINT<span style=""> </span>DD SYSOUT=*<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//SYSTSPRT<span style=""> </span>DD SYSOUT=*<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//SYSOUT<span style=""> </span>DD SYSOUT=*<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//SYSERR<span style=""> </span>DD SYSOUT=*<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//SYSDUMP<span style=""> </span>DD SYSOUT=*<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//TESTDUMP<span style=""> </span>DD SYSOUT=*<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//SYSMSG<span style=""> </span>DD SYSOUT=*<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//SYSTSIN<span style=""> </span>DD *<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">DSN SYSTEM(DB2T)<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">RUN PROG(TESTPROG) PLAN(TESTPLAN)<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">END<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;">//*<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-family: "Courier New"; color: black;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><span style="color: black;">As shown in above JCL program IKJEFT01 is used to run DB2 program (TESTPROG in our example). <o:p></o:p></span></p> <p class="MsoNormal"><span style="color: black;">In the above JCL program name and plan names are specified in SYSTSIN dataset as in-stream data.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; color: black;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><u><span style="font-size: 12pt; color: black;">The following is the check list to complete CICS(on-line) DB2 program...<o:p></o:p></span></u></b></p> <p class="MsoNormal"><i style=""><u><span style="font-size: 12pt; color: black;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></i></p> <p class="MsoNormal"><span style="font-family: Arial; color: black;">1. If the program is main program it should have both DBB and DPK components.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: black;">2. If the program is LINKed, XCTLed program it should have only DPK component. But the package generated <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 13.5pt;"><span style="font-family: Arial; color: black;">should be binded in Calling program DBB component.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: black;">3. RCT entry has to be created if the program is main program(which consists of TRANSID). If the program is <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 9pt;"><span style="font-family: Arial; color: black;">LINKed or XCTLed it need not have a RCT entry. RCT entry basically used to attach CICS system to DB2 <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 9pt;"><span style="font-family: Arial; color: black;">system.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: black;">4. No JCL business here because it is on-line.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial; color: black;">5.<span style=""> </span>The DBB and DPK s shown for batch program are also applicable to this.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: black;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">1. <span style=""> </span>What does SQLCODE +100 means<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">2. <span style=""> </span>What does the SQLCODE +818 means<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">3. <span style=""> </span>What are the pars of a SELECT statement<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">4. <span style=""> </span>What is DB2 etc....,<o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <b style=""><span style="font-size: 16pt; font-family: "Times New Roman";">
<br /> </span></b>Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-69967183278770376072008-07-03T03:54:00.001-07:002008-12-23T21:45:21.641-08:00Virtual Storage Access Method (VSAM)<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:宋体; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoHeader, li.MsoHeader, div.MsoHeader {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1; mso-endnote-numbering-style:arabic; mso-endnote-numbering-start:0;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal"><b style=""><span style="font-size: 16pt;">
<br /><o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q1)<span style=""> </span>What are the types of VSAM datasets? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A1)<span style=""> </span>Entry sequenced datasets (ESDS),<span style=""> </span>key sequenced datasets (KSDS) and relative record dataset (RRDS).<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q2)<span style=""> </span>How are records stored in an ESDS, entry sequenced dataset? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A5)<span style=""> </span>They are stored without respect to the contents of the records and in the order in which they are included in the file. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q3)<span style=""> </span>What is a CI, control interval? <o:p></o:p></b></p> <p class="MsoNormal" style="">A3)<span style=""> </span>A control interval is the unit of information that<span style=""> </span>VSAM transfers between virtual and auxiliary storage. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q4)<span style=""> </span>What are the distinctive features of a ksds, key sequenced dataset? <o:p></o:p></b></p> <p class="MsoNormal" style="">A4)<span style=""> </span>The index and the distributed free space. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q5)<span style=""> </span>What is a CA, control area? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A5)<span style=""> </span>A group of control intervals makes up a control area. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q6)<span style=""> </span>What is a sequence set? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A6)<span style=""> </span>This is the part of the index that points to the CA and CI of the record being accessed. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q7)<span style=""> </span>What is the index set? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A7)<span style=""> </span>This is the other part of the index.<span style=""> </span>It has multiple levels with pointers that ultimately reach to the sequence set. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q8)<span style=""> </span>What is a cluster? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -0.4in;">A8)<span style=""> </span>A cluster is the combination of the index, sequence set and data portions of the dataset.<span style=""> </span>The operating system gives program access to the cluster, ie. to all parts of the dataset simultaneously. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q9)<span style=""> </span>What is the catalog? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q9)<span style=""> </span>The catalog contains the names of all datasets, VSAM and non-VSAM. It is used to access these datasets. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q10)<span style=""> </span>What is an alternate index? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q10)<span style=""> </span>An AIX is a file that allows access to a VSAM dataset by a key other than the primary one. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q11)<span style=""> </span>What is a path? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q11)<span style=""> </span>A path is a file that allows you to access a file by alternate index - the path provides an association between the AIX and the base cluster. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q12)<span style=""> </span>What is the upgrade set? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q12)<span style=""> </span>The upgrade set is the list of all AIXes that VSAM must maintain for a specific base cluster, so that when data in the base cluster is updated, the AIX files are also updated. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q13)<span style=""> </span>What is free space? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q13)<span style=""> </span>Free space is reserved within the data component of a KSDS to accommodate inserting new records. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q14)<span style=""> </span>What is a VSAM split? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q14)<span style=""> </span>If there isn't enough space in the control interval VSAM performs a control interval split by moving some records to the free control intervals.<span style=""> </span>If there isn't a free control interval VSAM performs a control area split by allocating a new control area and moving half of the control intervals to it. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q15)<span style=""> </span>What is the base cluster? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q15)<span style=""> </span>The base cluster consists of the data component and the index component for the primary index of a KSDS. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q16)<span style=""> </span>Do primary key values have to be unique?<span style=""> </span>Do alternate key values have to be unique? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q16)<span style=""> </span>Primary key values must be unique; alternate key values need not be. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q17)<span style=""> </span>In the COBOL SELECT statement what is the ORGANIZATION for a KSDS? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q17)<span style=""> </span>The ORGANIZATION is INDEXED. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;"><b style="">Q18)<span style=""> </span>In the COBOL SELECT statement for a KSDS what are the three possibilities for</b> <b style="">ACCESS? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q18)<span style=""> </span>ACCESS can be SEQUENTIAL, RANDOM or DYNAMIC. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q19)<span style=""> </span>What is the COBOL RECORD KEY clause? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q19)<span style=""> </span>The RECORD KEY in the SELECT clause identifies the files primary key as it will be known to the program. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q20)<span style=""> </span>What is the purpose of the FILE STATUS clause in the SELECT statement? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q20)<span style=""> </span>The FILE STATUS field identifies the field that VSAM uses to provide information about each I/O operation for the file. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q21)<span style=""> </span>If you wish to use the REWRITE command haw must the VSAM file be opened? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q21)<span style=""> </span>It must be opened as I/O. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q22)<span style=""> </span>Explain the meaning and syntax for the START command. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q22)<span style=""> </span>The START command is used read other than the next VSAM record.<span style=""> </span>A value must be moved into the RECORD KEY.<span style=""> </span>The KEY clause is optional, but it can be used to specify a relational (equal, less than, etc.) operator. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q23)<span style=""> </span>What is the meaning of dynamic processing? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q23)<span style=""> </span>It's rarely used.<span style=""> </span>It means one program uses both sequential and random processing for a VSAM KSDS file. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q24)<span style=""> </span>Name some common VSAM error conditions and codes. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q24)<span style=""> </span>They are end of file (10), duplicate key (22), record not found (23), VSAM logic error (90), open problem (92) and space problem (93). </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q25)<span style=""> </span>What is the VSAM-code field? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q25)<span style=""> </span>It is a COBOL II enhancement to VSAM batch processing expanding the FILE STATUS field.<span style=""> </span>It is defined in WORKING-STORAGE as a six byte group item with three two byte elements, the normal return code, the function code and the feedback code. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q26)<span style=""> </span>What is a VSAM slot? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q26)<span style=""> </span>A relative record dataset (RRDS) consists of a specified number of areas called slots. Each slot is identified by a relative record number (RRN) which indicates its relative position in the file. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q27)<span style=""> </span>What is the utility program closely associated with VSAM? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q27)<span style=""> </span>IDCAMS, the access method services utility. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q28)<span style=""> </span>There are at least seven IDCAMS commands; name and explain each of them ?. <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -0.4in;">Q28)<span style=""> </span>ALTER modifies information for a catalog, alternate index, cluster or path.<span style=""> </span>BLDINDEX builds the alternate index, of course.<span style=""> </span>DEFINE is used for ALTERNATEINDEX, CLUSTER or PATH. DELETE removes the catalog entry for a catalog, cluster, alternate index or path. LISTCAT lists information about the dataset.<span style=""> </span>PRINT prints the dataset contents.<span style=""> </span>REPRO copies records from one file to another. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q29)<span style=""> </span>What are the three levels of definition for the VSAM DEFINE? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q29)<span style=""> </span>They are DEFINE CLUSTER, DATA and INDEX. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q30)<span style=""> </span>What is the significance of the SHAREOPTIONS parameter? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q30)<span style=""> </span>It specifies how the file may be shared between jobs and between batch and CICS environments. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q31)<span style=""> </span>What is the meaning of the DEFINE MODEL parameter? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q31)<span style=""> </span>It specifies whether Daniela Pestova or Yamila - oops! Wrong models!<span style=""> </span>The MODEL parameter allows you to model your cluster by modeling it after an existing cluster. </p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q32)<span style=""> </span>What is File Status in VSAM?<span style=""> </span><o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q32)<span style=""> </span>The FILE STATUS clause of the FILE-CONTROL paragraph<span style=""> </span>allows<span style=""> </span>for<span style=""> </span>each<span style=""> </span>file<span style=""> </span>to<span style=""> </span>be<span style=""> </span>associated with a file status key (i.e.,<span style=""> </span>the 2-character<span style=""> </span>data item specified in the FILE STATUS<span style=""> </span>clause).<span style=""> </span>If<span style=""> </span>the<span style=""> </span>FILE<span style=""> </span>STATUS clause is specified for a given file,<span style=""> </span>a value indicating the status of each I/O operation against that file is placed in the<span style=""> </span>associated<span style=""> </span>file<span style=""> </span>status key.<span style=""> </span>This value is stored in the file status key as soon as the I/O operation is completed (and before execution of any EXCEPTION/ERROR declarative<span style=""> </span>or<span style=""> </span>INVALIDKEY/AT<span style=""> </span>END phrase associated<span style=""> </span>with the I/O request). </p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><span style=""> </span>Note: This element may behave differently when the CMPR2 compiler option is used. The file status<span style=""> </span>key<span style=""> </span>is divided<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><span style=""> </span>into<span style=""> </span>two<span style=""> </span>status<span style=""> </span>keys:<span style=""> </span>the<span style=""> </span>first character<span style=""> </span>is known as file status key 1; the second character is file status key 2.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q33)<span style=""> </span>What's a LDS (Linear Data Set) and what's it used for?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q33)<span style=""> </span>LDS is a VSAM dataset in name only. It has unstructured 4k (4096 bytes) fixed size CI’s which do not contain control fields and therefore from VSAM's standpoint they do not contain any logical records. There is no free space, and no access from Cobol. Can be accessed by DB2 and IMS fast path datasets. LDS is essentially a table of data maintained on disk. The 'table entries' must be created via a user program and can only be<span style=""> </span>logically accessed via a user program. When passed, the entire LDS must be mapped into storage, and then data is accessed via base and displacement type processing.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q34)<span style=""> </span>What is IDCAMS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q34)<span style=""> </span>IDCAMS is the Access Method Services program. You run the IDCAMS program and supply AMS commands thru SYSIN. (examples of AMS commands are DELETE, DEFINE, REPRO etc..).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q35)<span style=""> </span>Can AMS commands be run from the TSO prompt ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q35)<span style=""> </span>Yes</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q36)<span style=""> </span>Syntax of<span style=""> </span>AMS modal commands ? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q36)<span style=""> </span>Note: these can be used only under IDCAMS and not from the TSO prompt.</p> <p class="MsoNormal" style="margin-left: 27pt;">IF LASTCC(or MAXCC)<span style=""> </span>>(or <,= etc..) value - </p> <p class="MsoNormal" style="margin-left: 27pt;">THEN - </p> <p class="MsoNormal" style="margin-left: 27pt;">DO - </p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>command set (such as DELETE, DEFINE etc..) </p> <p class="MsoNormal" style="margin-left: 27pt;">ELSE - </p> <p class="MsoNormal" style="margin-left: 27pt;">DO - </p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>command set </p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;">LASTCC<span style=""> </span>- Condition code from the last function (such as delete) executed</p> <p class="MsoNormal" style="margin-left: 27pt;">MAXCC - Max condition code that was returned by any of the prev functions</p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;">SET is also a valid AMS command. SET LASTCC (or MAXCC) = value</p> <p class="MsoNormal" style="margin-left: 27pt;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;">The maximum condition code is 16. A cond code of 4 indicates a warning. A cond code of 8 is usually encountered on a DELETE of a dataset that is not present.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q37)<span style=""> </span>Under IDCAMS , multiple functions can be executed, each of which returns a cond code. What will be the condition code returned to the operating system ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q37)<span style=""> </span>The maximum condition code generated is returned as the condition code of the IDCAMS step. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q38)<span style=""> </span>What is Control Interval, Control Area?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q38)<span style=""> </span><b style="">Control Interval</b> is analogous to a physical block for QSAM files. It is the unit of I/O.<span style=""> </span>Must be between 512 bytes to 32 k. Usually either 2K or 4K. A larger control interval increases performance for sequential processing while the reverse is true for random access. Under CICS when a record is locked, the entire CI gets locked.</p> <p class="MsoNormal" style="margin-left: 27pt;"><b style="">Control Area</b> is a group of control intervals. CA is used during allocation. CA size is calculated based on the </p> <p class="MsoNormal" style="margin-left: 27pt;">allocation type (cyl, tracks or records) and can be max of 1 cylinder</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q39)<span style=""> </span>What is FREESPACE ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q39)<span style=""> </span>Coded in the DEFINE as FREESPACE(ci ca) where ci is the percentage of each control interval to be left free for insertions, ca is the percentage of control intervals in each control area to be left empty.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q40)<span style=""> </span>How do you decide on optimum values for CI, FREESPACE etc...?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q40)<span style=""> </span>CI size should be based on record length, type of processing. Usually CI is 4K. If record length is larger(>1K), chose 6K or 8K. FREESPACE should be large if more number of insertions are envisaged. Usual values are (20 20) when heavy updates are expected. CI size can be calculated.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q41)<span style=""> </span>Would you specify FREESPACE for an ESDS?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q41)<span style=""> </span>No. Because you cannot insert records in an ESDS, also when you rewrite a record, it must be of the same length. Thus putting any value for freespace does not make any sense.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q42)<span style=""> </span>What is SHAREOPTS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q42)<span style=""> </span>SHAREOPTS is a parameter in the DEFINE and specifies how an object can be shared among users. It is coded as SHAREOPTS(a b), where a is the cross region share option ie how two or more jobs on a single system can share the file, while b is the cross system share option ie how two or more jobs on different MVS’s can share the file. Usual value is (2 3).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q43)<span style=""> </span>What is the meaning of each of the values in SHAREOPTS(2 3)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;">Q43)<span style=""> </span>Value of 2 for cross region means that the file can be processed simultaneously by multiple users provided only one of them is an updater. Value of 3 for cross system means that any number of jobs can process the file for input or output (VSAM does nothing to ensure integrity).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q44)<span style=""> </span>How do you define a KSDS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q44)<span style=""> </span>DEFINE CLUSTER(cluster name) with the INDEXED parameter. Also specify the ds name for the DATA component & the ds INDEX component. Other important parms are RECORDSIZE, KEYS, SHAREOPTIONS.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q45)<span style=""> </span>How do you define an ALTINDX ? How do you use ALTINDXs in batch, CICS pgm’s ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q45)<span style=""> </span>DEFINE ALTERNATEINDEX. Important paramters are RELATE where you specify the base cluster name, KEYS, RECORDSIZE,SHAREOPTIONS,UNIQUEKEY(or NONUNIQUEKEY), DATA(ds name for the data component), INDEX(ds name for the index component). Then DEFINE PATH. Important paramters are NAME (ds name for the path), PATHENTRY (ds name of the alternate index name), UPDATE(or NOUPDATE) which specifies whether an alt index is updated when a update to the base cluster takes place. Then BLDINDEX. Parameters are INDATASET(ds name of base cluster), OUTDATASET(ds name of AIX).</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q46)<span style=""> </span>Using Alternate Indexes in Batch pgms:<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q46)<span style=""> </span>In the JCL, you must have DD stmts for the cluster and for the path(s). In the COBOL Program, SELECT .. ASSIGN TO ddname for base cluster RECORD KEY IS... ALTERNATE RECORD KEY IS..</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q47)<span style=""> </span>Using Alternate Indexes in CICS pgms:<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q47)<span style=""> </span>FCT entries must be created for both base cluster & the path. To read using the alternate index, use the dd name of the path in CICS file control commands.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q48)<span style=""> </span>What happens when you open an empty VSAM file in a COBOL program for input?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q48)<span style=""> </span>A VSAM file that has never contained a record is treated as unavailable. Attempting to open for input will fail. An empty file can be opened for output only. When you open for output, COBOL will write a dummy record to the file & then delete it out.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q49)<span style=""> </span>How do you initialize a VSAM file before any operation? a VSAM with alternate index?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q49)<span style=""> </span>Can write a dummy program that just opens the file for output and then closes it. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q50)<span style=""> </span>What does a file status of 02 on a VSAM indicate?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q50)<span style=""> </span>Duplicate alternate key . Happens on both input and output operation</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q51)<span style=""> </span>How do you calculate record size of an alternate cluster?<span style=""> </span>Give your values for both unique and nonunique.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;">Q51)<span style=""> </span>Unique Case:<span style=""> </span>5 + ( alt-key-length + primary-key )</p> <p class="MsoNormal" style="text-indent: 27pt;">Non unique Case: 5 + ( alt-key-length + n * primary-key ) where n = number of duplicate records for the alternate key</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q52)<span style=""> </span>What is the difference between sequential files and ESDS files?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q52)<span style=""> </span>Sequential (QSAM) files can be created on tape while ESDS files cannot.<span style=""> </span>Also, you can have ALTINDEX for an ESDS while no such facility exists for QSAM files.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q53)<span style=""> </span>How do you load a VSAM data set with records ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q53)<span style=""> </span>Using the REPRO command. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q54)<span style=""> </span>How do you define a GDG ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q54)<span style=""> </span>Use the DEFINE GENERATIONDATAGROUP command. In the same IDCAMS step, another dataset must be defined whose DCB parameters are used when new generations of the GDG are created. This dataset is known as the model dataset. The ds name of this model dataset must be the same as that of the GDG, so use a disp of keep rather than catlg and also specify space=(trk,0)</p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q55)<span style=""> </span>Do all versions of the GDG have to be of the same record length ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;">Q55)<span style=""> </span>No,<span style=""> </span>the DCB of the model dataset can be overridden when you allocate new versions.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q56)<span style=""> </span>How are different versions of GDG named ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q56)<span style=""> </span>base-file-name.GnnnnnV00 where nnnn= generation number (upto 255).<span style=""> </span>nnnn will be 0000 for the 1st generation.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q57)<span style=""> </span>Suppose 3 generations of a GDG exist. How would you reference the 1st generation in the JCL? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q57)<span style=""> </span>Use GDG name(-2).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q58)<span style=""> </span>Suppose a generation of GDG gets created in a particular step of a proc. How would you refer the current<span style=""> </span>generation in a subsequent step? What would be the disposition of<span style=""> </span>this generation now? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q58)<span style=""> </span>Relative generation numbers are updated only at the end of the job, not at the end of a step. To allocate a new generation, we would be using (+1) with a DISP of<span style=""> </span>(NEW,CATLG,DELETE). To refer to this in a subsequent step in the same job, we would again use (+1) but with a DISP of SHR or OLD.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q59)<span style=""> </span>What more info you should give in the DD statement while defining the next generation of a GDG? - GS<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q59)<span style=""> </span>Give (+1) as the generation number, give (new,catlg) for disp, give space parameter, can give the DCB<span style=""> </span>parameter if you want to override the dcb of the model dataset.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q60)<span style=""> </span>Assuming that the DEFINE JCL is not available, how do you get info about a VSAM file's organisation?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q60)<span style=""> </span>Use the LISTCAT command.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q61)<span style=""> </span>During processing of a VSAM file, some system error occurs and it is subsequently unusable . What do you do ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q61)<span style=""> </span>Run VERIFY. </p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q62)<span style=""> </span>How do you fix the problem associated with VSAM out of space condition? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q62)<span style=""> </span>Define new VSAM dataset allocated with more space.</p> <p class="MsoNormal" style="margin-left: 27pt;">Use IDCAMS to REPRO the old VSAM file to new VSAM dataset. </p> <p class="MsoNormal" style="margin-left: 27pt;">Use IDCAMS to ALTER / rename the old VSAM dataset or se IDCAMS to DELETE the old VSAM dataset. </p> <p class="MsoNormal" style="margin-left: 27pt;">Use IDCAMS to ALTER / rename the new VSAM dataset to the name of the original VSAM dataset. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q63)<span style=""> </span>What is the meaning of VSAM RETURN-CODE 28? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q63)<span style=""> </span>Out of space condition is raised. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q64)<span style=""> </span>On which datasets You can have ALT INDEX?.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q64)<span style=""> </span>only on KSDS and ESDS - not RRDS</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q65)<span style=""> </span>How many Alternate Indexes you can have on a dataset? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q65)<span style=""> </span>255 - but you must be a nut to have so many ALT Indexes on a dataset!</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q66)<span style=""> </span>Is it slower if you access a record through ALT INDEX as compared to Primary INDEX?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q66)<span style=""> </span>Yes. Why? Because the alternate key would first locate the primary key, which in turn locates the actual record. Needs twice the number of I/Os.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q67)<span style=""> </span>What is RECOVERY and SPEED parameters in DEFINE CLUSTER command?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;">Q67)<span style=""> </span>RECOVERY (default) and SPEED are mutually exclusive. Recovery preformats the control areas during the initial dataset load, if the job fails, you can restart but you must have a recovery routine already written to restart the job. SPEED does not preformat the CAs. It is recommended that you specify SPEED to speed up your initial data load. </p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q68)<span style=""> </span>Describe SHAREOPTIONS parameter (SHR) in Define Cluster command.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">Q68)<span style=""> </span>It defines the cross-region and cross-system sharing capabilities of the dataset. Syntax is SHR(Crvalue, CSvalue) value 1 means multiple read OR single write (read integrity) 2 means multiple read AND single write<span style=""> </span>(Write integrity) 3 means Multiple read AND multiple write 4 is same as 3, which refreshes the buffer with every random access. default is SHR(1 3).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q69)<span style=""> </span>What does the KEYRANGES parameter in Define Cluster commend do?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A69)<span style=""> </span>It divides a large dataset into several volumes according to the Key ranges specified. e.g., KEYRANGES ((0000001 2999999) (3000000 5999999)). if the activity on the key ranges are evenly distributed, concurrent access is possible, which is a performance improvement.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q70)<span style=""> </span>What are the optional parameters to the input dataset While loading the empty cluster with the data records? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A70)<span style=""> </span>1)FROMADDRESS(address) 2)TOADDRESS(address) where 'address' specifies the RBA value of the key of the input record. 3)FROMNUMBER(rrn) 4)TONUMBER(rrn) where 'rrn' specifies the relative record number of the RRDS record 5)FROMKEY(key) 6)TOKEY(key) where 'key' specifies the key of the input record 7)SKIP(number) 8)COUNT(number) where 'number' specifies the number of records to skip or copy Ex: REPRO INFILE(DD1) OUTFILE(DD2) SKIP(9000) COUNT(700) - Skips the first 9000 records and begins copying at 9001 and copies 700 records from DD1 to DD2. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;"><b style="">Q71)<span style=""> </span>What is IDCAMS? and what is the purpose of it?.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A71)<span style=""> </span>IDCAMS is an access method services utility used for creating, deleting, altering VSAM files and copying sequential file to a VSAM file, etc.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;"><b style="">Q72)<span style=""> </span>How to delete a member using JCL.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A72)<span style=""> </span>Using IDCAMS a member can be deleted. DELETE 'XXX.YYY(member) </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;"><b style="">Q73)<span style=""> </span>What is the Difference between LDS & ESDS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A73)<span style=""> </span>These two datasets are VSAM datasets. ESDS maintains control information. But LDS does not maintains the control information.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;"><b style="">Q74)<span style=""> </span>Is a delete operation possible in an ESDS?B. Is rewrite operation possible in ESDS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A74)<span style=""> </span>No delete operation is not possible in VSAM ESDS.B. Yes rewrite operation is possible in an ESDS.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;"><b style="">Q75)<span style=""> </span>What is an alternate index and path ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A75)<span style=""> </span>An alternate index is an another way of accessing key sequenced data record stored in a base cluster and path is the linkage which connect alternate index to its base cluster.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;"><b style="">Q76)<span style=""> </span>How many buffers are allotted to VSAM KSDS and ESDS?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A76)<span style=""> </span>2 data buffers by default for ESDS. For KSDS it allots 2 data buffers and 1 index buffers. each buffer is about 4k.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;"><b style="">Q77)<span style=""> </span>what's the biggest disadvantage of using a VSAM dataset?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A77)<span style=""> </span>FREE SPACE(FPSC)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;"><b style="">Q78)<span style=""> </span>what's the device independent method to indicate where a Record is Stored?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A78)<span style=""> </span>By USING RBA(Relative Byte Address).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q79)<span style=""> </span>How many times secondary space allocated?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A79)<span style=""> </span>122 TIMES</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q80)<span style=""> </span>what is the RRN for the first record in RRDS?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A80)<span style=""> </span>The answer is : 1</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;"><b style="">Q81)<span style=""> </span>what is a Base Cluster?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A81)<span style=""> </span>The Index and data components of a KSDS</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.4in; text-indent: -0.4in;"><b style="">Q82)<span style=""> </span>If FSPC(100 100) is specified does it mean that both the control interval and control area will be left empty because 100 % of both CI and ca are specified to be empty?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A82)<span style=""> </span>No, they would not be left empty. one record will be written in each CI and 1 CI will be written for each ca.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="text-align: center;" align="center"><b style=""><u><span style="font-size: 12pt;">SECTION 1<o:p></o:p></span></u></b></p> <p class="MsoNormal" style="text-align: center;" align="center"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style="">Fill in the blanks:<o:p></o:p></b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">1.<span style=""> </span>A <b style=""><u>logical record</u></b> is a unit of information used to store data in a VSAM data set.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">2.<span style=""> </span>A <b style=""><u>CI</u></b> is a unit of information that VSAM transfers between virtual storage and disk storage.<u><o:p></o:p></u></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">3.<span style=""> </span>The minimum size of a CI is <b style=""><u>512 bytes</u></b><u>.<o:p></o:p></u></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">4.<span style=""> </span>512 bytes is the <b style=""><u>minimum</u></b> size of a CI.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">5.<span style=""> </span>The maximum size of a CI is <b style=""><u>32K</u></b><u>.<o:p></o:p></u></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">6.<span style=""> </span>A CI consists of <b style=""><u>Logical Records</u></b>, <b style=""><u>Free Space</u></b> and <b style=""><u>Control Information</u></b>.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">7.<span style=""> </span>A Control Interval Definition Field (CIDF) is of <b style=""><u>4 Bytes </u></b><span style=""> </span>long.<u><o:p></o:p></u></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">8.<span style=""> </span>A Record Definition Field (RDF) is of <b style=""><u>3 Bytes</u></b> long.<u><o:p></o:p></u></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">9.<span style=""> </span>In a CI if two or more adjacent records have the same length, only <b style=""><u>two RDf’s</u></b> are used.<u><o:p></o:p></u></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">10.<span style=""> </span>The minimum size of a CA is <b style=""><u>1 track</u></b><u>.<o:p></o:p></u></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">11.<span style=""> </span>1 track is the <b style=""><u>minimum</u></b> size of a CA.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">12.<span style=""> </span>The maximum size of a CA is <b style=""><u>1 cylinder</u></b><u>.<o:p></o:p></u></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">13.<span style=""> </span>1 cylinder is the <b style=""><u>maximum</u></b> size of a CA.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">14.<span style=""> </span>LDS is VSAM data set with a CI size of <b style=""><u>4096Bytes</u></b>.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>15.<span style=""> </span>LDS</u></b> has no imbedded control information in its CI.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">16.<span style=""> </span>LDS has only a <b style=""><u>data component</u></b>.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>17.<span style=""> </span>LDS</u></b> cannot have an alternate index.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>18.<span style=""> </span>RRDS</u></b> consists of a number of preformatted fixed-length slots.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">19.<span style=""> </span>RRDS has only a <b style=""><u>data component</u></b>.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">20.<span style=""> </span>For an RRDS the <b style=""><u>relative record number</u></b> is used as a search argument.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>21.<span style=""> </span>RRDS</u></b> supports only fixed length records.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">22.<span style=""> </span>ESDS has only a <b style=""><u>data component</u></b>.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">23.<span style=""> </span>Spanned records must be accessed in <b style=""><u>MOVE</u></b> mode.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>24.<span style=""> </span>Alternate Index</u></b> is a special type of KSDS.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">25.<span style=""> </span>The Master Catalog (MCAT) is identified at <b style=""><u>IPL</u></b>.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">26.<span style=""> </span>The <b style=""><u>Master Catalog (MCAT)</u></b> contains pointers to system data sets and user catalogs.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>27.<span style=""> </span>VTOC (Volume Table Of Contents)</u></b> describes the type and location of data sets on the volume.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">28.<span style=""> </span>VTOC (Volume Table Of Contents) is a <b style=""><u>data set</u></b> created at volume initialization.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>29.<span style=""> </span>JOBCAT</u></b> identifies a default catalog for an entire job.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>30.<span style=""> </span>STEPCAT</u></b> identifies a default catalog for a single job step.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">31.<span style=""> </span>The two types of AMS commands are <b style=""><u>functional commands</u></b> and <b style=""><u>modal commands</u></b>.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>32.<span style=""> </span>INDEXED</u></b> is the default cluster type.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>33.<span style=""> </span>4089</u></b> is the default maximum record length.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">34.<span style=""> </span>One cluster can have a maximum of <b style=""><u>123</u></b> extents for all volumes together.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>35.<span style=""> </span>Record Size</u></b> cannot be coded for LDS.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>36.<span style=""> </span>INDEX</u></b> information appears on a LISTCAT listing for KSDS.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">37.<span style=""> </span>A <b style=""><u>Data Class</u></b> is a description of data set characteristics under control of SMS.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>38.<span style=""> </span>JCL parameters</u></b> override the specifications from a Data Class.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">39.<span style=""> </span>The names and contents of the Data Classes can be displayed through <b style=""><u>ISMF</u></b>.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>40.<span style=""> </span>REPRO</u></b> provides an easy to use copy utility.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>41.<span style=""> </span>REPRO</u></b> copies or merges an alternate index as a KSDS.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>42.<span style=""> </span>REPRO</u></b> converts a sequential or indexed-sequential data set into a VSAM data set.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">43.<span style=""> </span>The PRINT command prints <b style=""><u>VSAM data sets</u></b>, <b style=""><u>non-VSAM data sets</u></b> and <b style=""><u>catalogs</u></b>.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">44.<span style=""> </span>The default print format for output is <b style=""><u>DUMP</u></b>.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">45.<span style=""> </span>If a KSDS cluster with name BMDUSER.KSDS1 is created, the default data component name would be <b style=""><u>BMDUSER.KSDS1.DATA</u></b> . </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>46.<span style=""> </span>ALTER</u></b> modifies the cataloged attributes of a VSAM data set. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">47.<span style=""> </span>ALTER can be used to change an ESDS into an <b style=""><u>LDS</u></b>. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">48.<span style=""> </span>An <b style=""><u>LDS</u></b> cannot be changed to any other VSAM data set format. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">49.<span style=""> </span>IMBED and REPLICATE options are applicable to <b style=""><u>KSDS</u></b> cluster. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">50.<span style=""> </span>Parameters specified in the <b style=""><u>JCL</u></b> override the appropriate parameters specified in the Data Class. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">51.<span style=""> </span>VSAM clusters can be accessed in <b style=""><u>Sequential</u></b>, <b style=""><u>Direct</u></b> and <b style=""><u>Skip sequential</u></b> . </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">52.<span style=""> </span>VSAM data can be processed by <b style=""><u>Logical Record</u></b> or by <b style=""><u>Control Interval</u></b> access. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">53.<span style=""> </span>After software-end-of-file is written, the file is in <b style=""><u>Recovery</u></b> mode. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">54.<span style=""> </span>VERIFY cannot be used for an <b style=""><u>Empty Dataset</u></b> or an <b style=""><u>LDS</u></b> . </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">55.<span style=""> </span>Password verification is done during <b style=""><u>OPEN</u></b> processing. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>56.<span style=""> </span>Strings</u></b> allow concurrent positioning within a data set. ()</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">57.<span style=""> </span>The minimum buffer space for<span style=""> </span>a cluster is <b style=""><u>STRNO</u></b> index buffers and <b style=""><u>STRNO+1</u></b> data buffers. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">58.<span style=""> </span>The default buffer space for<span style=""> </span>a cluster is <b style=""><u>STRNO</u></b> index buffers and <b style=""><u>STRNO+1</u></b> data buffers.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">59.<span style=""> </span>Sequential processing is overlapped when at least <b style=""><u>STRNO+3</u></b> data buffers are allocated.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">60.<span style=""> </span>For <b style=""><u>Sequential</u></b> processing, larger data CI sizes are desirable.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">61.<span style=""> </span>For <b style=""><u>Random</u></b> or <b style=""><u>Direct</u></b> processing, smaller data CIs are desirable.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>62.<span style=""> </span>Free Space</u></b> is used to reduce the number of CI and CA splits.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">63.<span style=""> </span>ICI access cannot be used to <b style=""><u>Load</u></b> or <b style=""><u>Extend</u></b> a data set.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">64.<span style=""> </span>Space allocations made in RECORDs are converted to <b style=""><u>TRKS</u></b> by VSAM. ()</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">65.<span style=""> </span>Key compression applies to the <b style=""><u>Index</u></b> component.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">66.<span style=""> </span>An alternate index cannot be defined for an <b style=""><u>RRDS</u></b> or <b style=""><u>LDS</u></b> . </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">67.<span style=""> </span>Each AIX data record contains <b style=""><u>System Header Information</u></b>, the <b style=""><u>Alternate Key</u></b>, and <b style=""><u>Pointer</u></b> to the data set.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">68.<span style=""> </span>A Path <b style=""><u>Path</u></b> provides a way to gain access to the base data through its AIX.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b style=""><u>69.<span style=""> </span>Base Cluster</u></b> must not be empty for BLDINDEX.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">70.<span style=""> </span>Length of the alternate keys must not exceed <b style=""><u>255</u></b> . </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">71.<span style=""> </span>Records larger than <b style=""><u>32760</u></b> cause REPRO to terminate. </p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">72.<span style=""> </span>When exporting a data set, we specify <b style=""><u>TEMPORARY</u></b> to preserve the original data set.</p> <p class="MsoNormal" style="text-align: center;" align="center"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: center;" align="center"><b style=""><u><span style="font-size: 12pt;">SECTION 2<o:p></o:p></span></u></b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><b style="">State whether True or False:</b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">1.<span style=""> </span>All VSAM data sets reside on DASD devices. <span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">2.<span style=""> </span>Whenever a record is retrieved from DASD, the entire CA containing it is read into VSAM buffer.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">3.<span style=""> </span>A LDS has no control information embedded in its CIs.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">4.<span style=""> </span>In an RRDS, the position of a data record can be changed.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">5.<span style=""> </span>Records from an ESDS can either be accessed sequentially or by RBA.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">6.<span style=""> </span>Deletions and updating of records is possible in ESDS.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">7.<span style=""> </span>Spanned records can only be used in ESDS or KSDS.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">8.<span style=""> </span>Spanned records are records larger than CA size.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">9.<span style=""> </span>A CI that contains the record segment of a spanned record contains no other data.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">10.<span style=""> </span>Spanned records must be accessed in LOCATE mode.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">11.<span style=""> </span>A KSDS has both data and index components.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">12.<span style=""> </span>A newly inserted record is always added at the end of a KSDS.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">13.<span style=""> </span>A new index entry is inserted in the sequence set record corresponding to a CI split.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">14.<span style=""> </span>IMBED places the sequence set CI for a data control area within the control area.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">15.<span style=""> </span>VSAM control intervals containing data records have at least one RDF and one CIDF.(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">16.<span style=""> </span>Control area sizes vary by device type.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">17.<span style=""> </span>Control interval sizes vary by device type.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">18.<span style=""> </span>For a KSDS, the larger the data CA size, the smaller the number of index CIs.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">19.<span style=""> </span>We cannot access variable-length blocked records in VSAM.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">20.<span style=""> </span>MCAT contains pointers to system data sets and user catalogs.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">21.<span style=""> </span>While creating VSAM data sets, provision of component names is a must.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">22.<span style=""> </span>JOBCAT identifies a default catalog for a single job step.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">23.<span style=""> </span>There is a one-to-one correspondence between BCSs and VVDSs.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">24.<span style=""> </span>The need for JOBCAT/STEPCAT statements has been replaced by the ALIAS.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">25.<span style=""> </span>Aliases are limited to the first segment of the component name.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">26.<span style=""> </span>The cluster name is required when defining VSAM cluster using DEFINE CLUSTER command.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">27.<span style=""> </span>Any parameters in coded for the cluster in DEFINE CLUSTER will also apply to the data and index components. (T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">28.<span style=""> </span>If the space allocation is coded at cluster level in DEFINE CLUSTER, the space is divided between data and index. (T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">29.<span style=""> </span>If the specified CISZ is not valid in DEFINE CLUSTER, VSAM increases the number to the next valid CISZ. (T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">30.<span style=""> </span>All the parameters for LISTCAT command are required.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">31.<span style=""> </span>A data component name will be generated by AMS if it is not explicitly coded.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">32.<span style=""> </span>DEFINE CLUSTER for a KSDS will generate cluster, data and index information even if only cluster information is specified. <span style=""> </span><span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">33.<span style=""> </span>The candidate volume is not used when data set is initially loaded.<span style=""> </span> <span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">34.<span style=""> </span>Suppose TEST.DATASET is a KSDS. The following statement will print cluster information only:</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">35.<span style=""> </span>LISTCAT ENTRIES (TEST.DATASET) ALL<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">36.<span style=""> </span>REPRO copies or merges an alternate index as an ESDS.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">37.<span style=""> </span>A PRINT command prints only VSAM data sets.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">38.<span style=""> </span>A KSDS can be printed only in key order.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">39.<span style=""> </span>A RRDS is printed in relative record number sequence.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">40.<span style=""> </span>The default print format is CHARACTER.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">41.<span style=""> </span>Generic keys can be specified in PRINT FROMKEY and TOKEY.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">42.<span style=""> </span>REPRO will stop processing records when a total of four physical I/O errors occur while writing to the </p> <p class="MsoNormal" style="text-indent: 0.25in;">output data set. <span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">43.<span style=""> </span>REPRO REUSE against a non-empty target data set defined with NOREUSE will reset the target data set.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">44.<span style=""> </span>In altering a KSDS, BUFND and BUFNI can be specified instead of BUFFERSPACE.(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">45.<span style=""> </span>ALTER REMOVEVOLUMES will not remove the volume if the data set currently has data on the volume.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">46.<span style=""> </span>ALTER can be used to change ESDS to LDS.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">47.<span style=""> </span>ALTER NULLIFY can be used to nullify all passwords, except the master.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">48.<span style=""> </span>ALTER modifies the cataloged attributes of a VSAM data set.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">49.<span style=""> </span>Generic names can be used to rename a group of objects or to alter an attribute of a group of objects. (T)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">50.<span style=""> </span>Data Class specifications override the appropriate JCL parameters.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">51.<span style=""> </span>Not all attributes can be specified through JCL.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">52.<span style=""> </span>VSAM data can be read by logical record or by control interval access.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">53.<span style=""> </span>OPEN causes VSAM to verify that the processing options match the cluster type.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">54.<span style=""> </span>COBOL does not support skip-sequential processing.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">55.<span style=""> </span>COBOL supports RBA addressing and backward processing.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">56.<span style=""> </span>VS COBOL II supports skip-processing.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">57.<span style=""> </span>Non-spanned records may be accessed in either MOVE or LOCATE mode.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">58.<span style=""> </span>The ISAM interface program allows VSAM programs to access ISAM data sets.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">59.<span style=""> </span>Cross system sharing is either between multiple systems or multiple virtual machines.(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">60.<span style=""> </span>Software end-of-file is a CI containing all zeroes excluding CIDF.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">61.<span style=""> </span>VERIFY can be used for empty data sets.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">62.<span style=""> </span>Catalog password protection is required for data set password checking.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">63.<span style=""> </span>To ensure read integrity the application program must code ENQ/DEQ.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">64.<span style=""> </span>For a data set with SHAREOPTIONS(4 3), CA splits are not allowed.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">65.<span style=""> </span>The default for DELETE CLUSTER is NOERASE.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">66.<span style=""> </span>If a cluster has VSAM password protection, the cluster MUST have a master password.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">67.<span style=""> </span>The high-level index set record is maintained in the buffer if more than one index buffer (per string ) is provided. (T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">68.<span style=""> </span>VSAM allocates index buffers for all cluster types, even if the buffers are never used.(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">69.<span style=""> </span>BUFND and BUFNI are preferable to BUFFERSPACE.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">70.<span style=""> </span>STRNO is used for sharing data sets across regions.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">71.<span style=""> </span>Data buffers and control blocks are allocated below 16M by default.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">72.<span style=""> </span>Large control intervals decrease virtual storage requirement for buffers.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">73.<span style=""> </span>Buffer space specified at ACB overrides the defined value, if the ACB value is more.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">74.<span style=""> </span>The default for DEFINE CLUSTER is ERASE.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">75.<span style=""> </span>A large percentage of unused CI free space causes additional I/Os when accessing the data set sequentially.<span style=""> </span>(T) Sequential processing does not use CI free space beyond the free space threshold.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">76.<span style=""> </span>The larger the free space, the more are the levels of index.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">77.<span style=""> </span>Improved CI (ICI) access is available for logical record processing as well as CNV processing. (F)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">78.<span style=""> </span>Processing a large data set with multiple extents in DIR mode performs approximately as well as processing a large single extent data set in DIR mode.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">79.<span style=""> </span>IMBED replicates the sequence set CI associated with a data CA on the first track of data CA.<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">80.<span style=""> </span>REPLICATE imbeds the index set within the data component.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">81.<span style=""> </span>In a multiple volume data set the first allocation of space on a volume is always a primary allocation. (T)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">82.<span style=""> </span>Index key compression can be suppressed with the NOCOMPRESS parameter.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">83.<span style=""> </span>For sequential processing larger data CIs are desirable.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">84.<span style=""> </span>Key compression applies to the keys of both index and data components.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">85.<span style=""> </span>Multiple alternate indexes may be defined over a base cluster.<span style=""> </span><span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">86.<span style=""> </span>Alternate indexes are spanned record data sets.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">87.<span style=""> </span>The size of an alternate index is about the same size of its base cluster.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">88.<span style=""> </span>AIX records may be longer than specified in the DEFINE AIX maximum record size.(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">89.<span style=""> </span>A path is required so that an application program can specify base cluster keys and retrieve alternate index records. (T)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">90.<span style=""> </span>Base cluster must be empty for BLDINDEX.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">91.<span style=""> </span>Upgrade is done only for non-empty alternate indexes.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">92.<span style=""> </span>After reorganizing a KSDS, the physical sequence of data is same as the logical sequence of data.<span style=""> </span>(T)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">93.<span style=""> </span>Index component is however not reconstructed, after the reorganization of a KSDS.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">94.<span style=""> </span>EXPORT extracts catalog information and creates a copy of the data records.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">95.<span style=""> </span>Records larger than 32760 cause EXPORT in CIMODE to terminate with an error.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">96.<span style=""> </span>CIMODE is the default for EXPORT of an LDS.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">97.<span style=""> </span>The base cluster must be imported before the alternate indexes.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">98.<span style=""> </span>The base cluster must be exported before the alternate indexes<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">99.<span style=""> </span>DFDSS can be used to reorganize a KSDS.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">100.<span style=""> </span>If the HIGH-USED-RBA of the IMPORT OUTDATASET parameter is zero, then VSAM deletes and redefines the OUTDATASET before the IMPORT operation.<span style=""> </span>(F)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">101.<span style=""> </span>ISMF can be used to create a DFHSM batch job stream.<span style=""> </span>(T)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">102.<span style=""> </span>Data Set List line operator commands may effect more than one data set.<span style=""> </span>(T)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="text-align: center;" align="center"><b style=""><u><span style="font-size: 12pt;">SECTION 3<o:p></o:p></span></u></b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><b style="">Choose the correct answer:<o:p></o:p></b></p> <p class="MsoNormal"><b style=""><o:p> </o:p></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">1)<span style=""> </span>Which VSAM clusters support only fixed length records?<span style=""> </span>(b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>LDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>RRDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>ESDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>KSDS</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">2)<span style=""> </span>FREESPACE can be specified for which type of cluster?<span style=""> </span>(d)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>LDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>RRDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>ESDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>KSDS</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">3)<span style=""> </span>In which cluster type are records added at the end of the data set?<span style=""> </span>(c)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>LDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>RRDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>ESDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>KSDS</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">4)<span style=""> </span>The types of processing supported by RRDS are<span style=""> </span>(e)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>sequential</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>skip-sequential</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>direct</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>a and b</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>a, b and c</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">5)<span style=""> </span>The types of processing supported by ESDS are<span style=""> </span>(d)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>sequential</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>skip-sequential</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>direct</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>a and b</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>a and c</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">6)<span style=""> </span>Spanned records can be found in <span style=""> </span>(d)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>ESDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>KSDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>RRDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>a or b</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>a or c</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">7)<span style=""> </span>Spanned records can be accessed in <span style=""> </span>(a)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>MOVE</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>LOCATE</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>a and b</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">8)<span style=""> </span>Alternate Index is a special type of <span style=""> </span>(a)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>KSDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>ESDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>RRDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">9)<span style=""> </span>Specifying CISZ(4096) at the cluster level for a KSDS results in <span style=""> </span>(c)<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>VSAM ignoring the specification</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>Data and index CISZ 4k each</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>Data CISZ 4k; index CISZ selected by VSAM</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>Index CISZ 4K; data CISZ selected by VSAM</p> <p class="MsoNormal" style="margin-left: 0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">10)<span style=""> </span>When defining a KSDS, which of the following parameters is not required?<span style=""> </span>(b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>Space allocation (either CYL, REC or TRK)</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>VOLUMES</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>KEYS</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>NAME</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">11)<span style=""> </span>Default RECORD SIZE for a NONSPANNED data set is<span style=""> </span>(d)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>(80 80)</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>(4086 32600)</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>(100 32600)</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>(4089 4089)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">12)<span style=""> </span>If the key of a KSDS record begins in the second field (first field is 25 bytes long), the offset in the </p> <p class="MsoNormal" style="text-indent: 0.25in;">KEYS parameter is<span style=""> </span>(a)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>24</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>25</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>26</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">13)<span style=""> </span>Data organization in KSDS is <span style=""> </span>(a)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>INDEXED</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>NUMBERED</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>LINEAR</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>NONINDEXED</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">14)<span style=""> </span>The default cluster type is<span style=""> </span>(d)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>ESDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>RRDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>LDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>KSDS</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">15)<span style=""> </span>VOLUMES parameter can be specified at<span style=""> </span>(c)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>cluster level</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>data level and index level</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>All the above</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">16)<span style=""> </span>The RECORDSIZE parameter cannot be coded for<span style=""> </span>(c)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>ESDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>RRDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>LDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>KSDS</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">17)<span style=""> </span>The default PRINT format is<span style=""> </span>(b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>Character</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>Dump</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>Hexadecimal</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">18)<span style=""> </span>Which of the following REPRO selection parameters can be specified for an LDS?<span style=""> </span>(e)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>FROMKEY</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>FROMADDRESS</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>FROMNUMBER</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>SKIP</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">19)<span style=""> </span>The REPLACE parameter causes<span style=""> </span>(c)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>KSDS records to be replaced by an input record with the same key</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>ESDS records to be replaced by an input record with the same RBA</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>RRDS records to be replaced by an input record with the same RRN</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>a and c</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>All the above</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">20)<span style=""> </span>Which of the following is not a modal command?<span style=""> </span>(e)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>IF</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>THEN</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>ELSE</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>DO</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>GOTO</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">21)<span style=""> </span>Using REPRO to reorganize a KSDS, which of the following is true?<span style=""> </span>(e)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>Input must be ascending key sequence.</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>No duplicate keys are allowed.</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>Non-unique keys are allowed.</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>a and c</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>a and b</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">22)<span style=""> </span>Which of the following entry names are valid for ALTER FREESPACE?<span style=""> </span>(b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>Cluster name</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>Data component name</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>Index component name</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>b and c</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>a, b and c</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">23)<span style=""> </span>Which of the following is a correct generic name specification for TEST.USER.DATA.A? (a)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>TEST.USER.*</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>TEST.*.*.A</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>*.USER.DATA.A</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>TEST.USER.*.A</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">24)<span style=""> </span>To alter a cluster to an LDS, the cluster must<span style=""> </span>(e)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>be an ESDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>be NONSPANNED</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>have a CISZ of 4K</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>not have an alternate index associated with it</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>all the above</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">25)<span style=""> </span>For which access mode below must the application program interpret RDFs?<span style=""> </span>(b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>KEY</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>ADR</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>ADR(for a KSDS)</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>CNV</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">26)<span style=""> </span>At OPEN, VSAM determines processing options in the following order<span style=""> </span>(d)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>JCL, program, catalog</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>program, JCL, catalog</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>JCL, catalog, program</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>catalog, program, JCL</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">27)<span style=""> </span>VSAM request macros (e.g., GET, PUT) point to which other macros?<span style=""> </span>(c)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>OPEN</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>ACB</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>RPL</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>CLOSE</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>b and c</p> <p class="MsoNormal" style="margin-left: 0.25in;">f) <span style=""> </span>None</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">28)<span style=""> </span>If a program uses direct processing exclusively, DIR is specified in which macros?<span style=""> </span>(c)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>OPEN</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>ACB</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>RPL</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>CLOSE</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>b and c</p> <p class="MsoNormal" style="margin-left: 0.25in;">f) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">29)<span style=""> </span>VSAM processing options could be specified in <span style=""> </span><span style=""> </span>(e)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>Catalog</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>Program control blocks</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>JCL</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>None</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>All the above</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">30)<span style=""> </span>Which of the following is not a COBOL verb?<span style=""> </span>(d)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>START</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>READ</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>DELETE</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>UPDATE</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>REWRITE</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">31)<span style=""> </span>Which of the following is/are not supported by COBOL?<span style=""> </span>(d)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>Skip-sequential processing</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>RBA addressing</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>Replacing existing record</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>a and b</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>a, b and c</p> <p class="MsoNormal" style="margin-left: 0.25in;">f) <span style=""> </span>a and c</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">32)<span style=""> </span>Which is a valid SHAREOPTIONS specification?<span style=""> </span>(b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>SHR(2 2)</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>SHR(2 3)</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>SHR(4 1)</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>SHR(1 2)</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">33)<span style=""> </span>For a data set defined with SPEED, which of the following is true?<span style=""> </span>(a)</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -4.5pt;">a) <span style=""> </span>SPEED is effective for the initial load only.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -4.5pt;">b) <span style=""> </span>SPEED is effective for all additions to the data set after initial load.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -4.5pt;">c) <span style=""> </span>If the load program ABENDS, VERIFY can determine the HIGH-USED-RBA of the data set.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -4.5pt;">d) <span style=""> </span>If the load program ABENDS, only those records remaining in buffers need to be added to the data set.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -4.5pt;">e) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">34)<span style=""> </span>VERIFY cannot be used for<span style=""> </span>(c)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>Empty data set</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>LDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>a and b</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">35)<span style=""> </span>For a data set defined with NOERASE, which of the following is not true?<span style=""> </span>(a)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>Desirable for sensitive data</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>Removes catalog entries</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>All the above</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">36)<span style=""> </span>Buffer space cannot be specified in which of the following?<span style=""> </span>(d)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>DD statement<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>Assembler program</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>AMS DEFINE</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>COBOL program</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">37)<span style=""> </span>How many data buffers are required for sequential processing to overlap I/O processing?<span style=""> </span>(c)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>2</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>3</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>4</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>5</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">38)<span style=""> </span>When defining a KSDS, the best place to specify CISZ is generally<span style=""> </span>(b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>At the cluster level</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>At the data level only</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>At the index level only</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>At both data and index levels</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">39)<span style=""> </span>For direct processing the recommended number of data buffers is<span style=""> </span>(b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>STRNO</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>STRNO+1</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>STRNO+2</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>STRNO+3</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>None </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">40)<span style=""> </span>For 3380 DASD, TRK(50 5) results in which CA size for a KSDS defined with NOIMBED? (b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>1 TRK<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>5 TRKS</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>15 TRKS</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>50 TRKS</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">41)<span style=""> </span>Suppose you are defining a multi-volume data set with VOL(A B) and five key ranges specified. Which of the following correctly indicates where each key range will be located?<span style=""> </span>(c)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>First key range on VOL A; second on B; third on A; etc.</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>First key range on VOL B; second on A; third on B; etc.</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>First key range on VOL A; remaining key ranges on B.</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>All key ranges on VOL A; B is used for overflow only.</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>All key ranges on VOL B; A is used for overflow only.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">42)<span style=""> </span>An alternate index can be defined for which cluster type?<span style=""> </span>(b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>KSDS and RRDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>KSDS and ESDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>KSDS and LDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>KSDS only</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>KSDS, ESDS and RRDS</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">43)<span style=""> </span>If an application program accesses a base cluster in alternate key sequence, then DD statements are needed for which data sets?<span style=""> </span><span style=""> </span>(f)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>Base cluster</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>Alternate index</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>Path</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>a and b</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>a and c</p> <p class="MsoNormal" style="margin-left: 0.25in;">f) <span style=""> </span>a, b and c</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">44)<span style=""> </span>An alternate index itself is which cluster type?<span style=""> </span>(d)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>LDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>RRDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>ESDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>KSDS</p> <p class="MsoNormal" style="margin-left: 0.25in;">e) <span style=""> </span>None</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">45)<span style=""> </span>Which of the following backs up data in CI mode?<span style=""> </span>(b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>REPRO only</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>EXPORT only</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>Both REPRO and EXPORT</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>Neither REPRO nor EXPORT</p> <p class="MsoNormal" style="margin-left: 0.25in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">46)<span style=""> </span>Which of the following writes catalog information into the backup data set?<span style=""> </span>(b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>REPRO only</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>EXPORT only</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>Both REPRO and EXPORT</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>Neither REPRO nor EXPORT</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">47)<span style=""> </span>Which of the following requires a DELETE/DEFINE before the command can be used to restore an </p> <p class="MsoNormal" style="text-indent: 0.25in;">existing data set?<span style=""> </span>(a)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>REPRO only</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>IMPORT only</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>Both REPRO and IMPORT</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>Neither REPRO nor IMPORT</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">48)<span style=""> </span>With HBACKDS the use of apostrophes to enclose the dsname is<span style=""> </span>(b)</p> <p class="MsoNormal" style="margin-left: 0.25in;">a) <span style=""> </span>Required</p> <p class="MsoNormal" style="margin-left: 0.25in;">b) <span style=""> </span>Used to exclude the TSO id as the high level qualifier</p> <p class="MsoNormal" style="margin-left: 0.25in;">c) <span style=""> </span>Required only if one or more segments are specified generically</p> <p class="MsoNormal" style="margin-left: 0.25in;">d) <span style=""> </span>Not allowed if the data set is password protected</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="text-align: center;" align="center"><b style=""><u><span style="font-size: 12pt;">SECTION 4<o:p></o:p></span></u></b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><b style="">Answer the following briefly:</b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">1.<span style=""> </span>Differentiate between Control Interval and Control Area.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">2.<span style=""> </span>How many bytes of control information are there if all records are of the same length?Specify the number of bytes used by RDFs and CIDFs.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">3.<span style=""> </span>Differentiate between Direct and Sequential processing.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">4.<span style=""> </span>What types of data sets are supported by VSAM?<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">5.<span style=""> </span>What is a cluster?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">6.<span style=""> </span>Specify the default action of VSAM if the specified CISZ is not valid in defining the cluster.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">7.<span style=""> </span>How are records stored in each type of VSAM data set?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">8.<span style=""> </span>What is the function performed by VSAM ALTER?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">9.<span style=""> </span>What is the difference between a user catalog and a master catalog?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">10.<span style=""> </span>How do you specify the amount of CI to be used?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">11.<span style=""> </span>How do you specify the amount of CA available to a file?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">12.<span style=""> </span>Explain the need for free space.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">13.<span style=""> </span>What does it imply, if<span style=""> </span>FSPC(100 100) is specified in DEFINE CLUSTER command?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">14.<span style=""> </span>What is AMS? How are its services invoked?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">15.<span style=""> </span>Describe the various levels of password protection.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">16.<span style=""> </span>What is the format of SHAREOPTIONS and why is it used?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">17.<span style=""> </span>In what manner the VSAM data sets can be shared with SHAREOPTION(2 3)?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">18.<span style=""> </span>Mention some of the important types of information that can be obtained from LISTCAT.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">19.<span style=""> </span>How can you check the amount of free space available for a data set?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">20.<span style=""> </span>How can we obtain the status of a master catalog or a user catalog?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">21.<span style=""> </span>What is a VSAM model?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">22.<span style=""> </span>What is a reusable data set?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">23.<span style=""> </span>What is the function performed by VSAM REPRO?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">24.<span style=""> </span>What is the effect of REUSE with REPRO?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">25.<span style=""> </span>What is the effect of REPLACE with REPRO?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">26.<span style=""> </span>What is the function performed by<span style=""> </span>PRINT?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">27.<span style=""> </span>What is a data class?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">28.<span style=""> </span>Mention some of the JCL parameters used for VSAM.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">29.<span style=""> </span>How can you view the contents of a Data Class?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">30.<span style=""> </span>Differentiate between logical record access and control interval access.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">31.<span style=""> </span>Differentiate between MOVE mode and LOCATE mode.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">32.<span style=""> </span>What happens when a VSAM data set is requested for OPEN?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">33.<span style=""> </span>What is AMP and when would you use it?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">34.<span style=""> </span>What is IIP and when is it used?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">35.<span style=""> </span>Mention some of the COBOL procedure division verbs used for processing a VSAM data set.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">36.<span style=""> </span>What are the limitations of COBOL in processing a VSAM data set?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">37.<span style=""> </span>How can a VSAM data set be shared within a region?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">38.<span style=""> </span>What is the effect of<span style=""> </span>SPEED/RECOVERY with DEFINE CLUSTER?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">39.<span style=""> </span>What is the purpose of VERIFY command?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">40.<span style=""> </span>What is the effect of ERASE/NOERASE with DELETE CLUSTER?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">41.<span style=""> </span>What is an USVR? What are its functions?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">42.<span style=""> </span>What is the purpose of free space?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">43.<span style=""> </span>What function is performed by IMBED parameter?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">44.<span style=""> </span>What function is performed by REPLICATE parameter?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">45.<span style=""> </span>What is the purpose of buffer space?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">46.<span style=""> </span>Explain the terms front and rear key compressions.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">47.<span style=""> </span>Explain the need for an alternate index.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">48.<span style=""> </span>What is a PATH?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">49.<span style=""> </span>What functions does the UPGRADE option do?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">50.<span style=""> </span>What is the function of BLDINDEX?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">51.<span style=""> </span>What are the various utilities available for backing up of data and restoring it?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">52.<span style=""> </span>Why do we go for reorganizing a KSDS?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;">53.<span style=""> </span>What are the effects of reorganization of a KSDS?</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">54.<span style=""> </span>What is control interval ?<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">55.<span style=""> </span>What is KSDS, ESDS,RRDS ?<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">56.<span style=""> </span>What is VERIFY on VSAM file ?<span style=""> </span><o:p></o:p></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-86624458014227192942008-07-03T03:52:00.002-07:002008-12-23T21:45:21.641-08:00Information Management System(IMS)<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:宋体; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal"><b style=""><span style="font-size: 14pt;">
<br /></span></b><b style=""><span style="font-size: 16pt;"></span></b><b style=""><span style="font-size: 12pt;"><o:p></o:p></span></b></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q1)<span style=""> </span>What is the physical nature of a database called?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A1)<span style=""> </span>DBD</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q2)<span style=""> </span>Is it necessary that all the segments in a Dl/i database have key fields ? <o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -1in;">A2)<span style=""> </span>It is not necessary that all the segments in the database should have key field, expect for the database.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q3)<span style=""> </span>How man key fields and search fields can a segment have?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A3)<span style=""> </span>One key field and as many search fields in the segment can be declared.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q4)<span style=""> </span>Is it necessary that the key field in a Dl/I database be unique?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A4)<span style=""> </span>No, it is no necessary.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q5)<span style=""> </span>What is a key field in an IMS database?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A5)<span style=""> </span>A Field that DL/I uses to maintain the segments in the ascending order is called the key field</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q6)<span style=""> </span>What is a database record?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A6)<span style=""> </span>A single occurrence of the root along with all its dependents is called the database record.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q7)<span style=""> </span>What is a Hierarchy path?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A7)<span style=""> </span>A line that starts at the root and passes thru the inter mediate levels in the hierarchy and ends at the a segment at the bottom of the hierarchy is called the Hierarchy path. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q8)<span style=""> </span>What is a Root?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A8)<span style=""> </span>The segment at the top of the Hierarchy, which is not a child to a segment is called the Root.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q9)<span style=""> </span>What are Twins?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A9)<span style=""> </span>Occurrences of all the segment types under a single parent segment occurrence is called a Twin.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q10)<span style=""> </span>Define the terms Parent & Child.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A10)<span style=""> </span>Parent-Any segment that has one or more segments directly below it is a Parent. Child-Any segment that has segment directly above it is called the Child.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q11)<span style=""> </span>What is the limitation on the no. of levels in a DL/I database?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A11)<span style=""> </span>You can have 15 levels in a DL/I database</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q12)<span style=""> </span>How many sgment types can u have in a DL/I database?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A12)<span style=""> </span>A Dl/I database can have 255 segment types</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q13)<span style=""> </span>What is a Segment type?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A13)<span style=""> </span>Loosely speaking a segment type is a segment in a Dl/I hierarchy chart.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q14)<span style=""> </span>What is a segment?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A14)<span style=""> </span>A segment is the smallest unit of information that Dl/I uses when working with information in the database</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q15)<span style=""> </span>What is Hierarchy Chart?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A15)<span style=""> </span>A Hierarchy chart is a pictorial representation of the total of a DL/I database starting from the root, giving all the parent child relationships that exist within the database </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q16)<span style=""> </span>what are the control blocks in IMS ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A16)<span style=""> </span>There are two control block.1.dbd(database descriptor)2.psb<span style=""> </span>(program specification block)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q17)<span style=""> </span>which is the first statement in COBOL-IMS programs?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A17)<span style=""> </span>Entry statement is the first statement after procedure division i.e. ENTRY 'DLICBL' USING .....</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q18)<span style=""> </span>What is the return code you get after a successful IMS call?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A18)<span style=""> </span>Spaces.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q19)<span style=""> </span>Define DBD?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A19)<span style=""> </span>DBD : Database Descriptor. IMS Controls the Structure of DB and access to the DB via DBD. The DBD contains information like, Segment types, their location in hierarchy and Sequence keys. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q20)<span style=""> </span>How can we distinguish between an online and batch program in IMS environment?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A20)<span style=""> </span>By seeing the IO-PCB in the application program.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q21)<span style=""> </span>Which is the DL/I function used in CICS-IMS program?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A21)<span style=""> </span>PCB(PROGRAM COMMUNICATION BLOCK)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q22)<span style=""> </span>What is IMS?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A22)<span style=""> </span>INFORMATION MANAGEMENT SYSTEM</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q23)<span style=""> </span>How does one reorg an HDAM IMS database when changing RAPS (Root Anchor Points)?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A23)<span style=""> </span>Unload data using current DBD. 2. Delete/define the underlying VSAM dataset(s). 3. Re-load data using newly-defined DBD with new RAPs. 4. Re-build any secondary indexes.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q24)<span style=""> </span>What do you know about DBD gen?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A24)<span style=""> </span>used to generate DBDs. <span style=""> </span>The statements in DBDGEN process are PRINT NOGEN, DBD, DATASET, SEGM, FIELD, DBDGEN, FINISH, END</p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q25)<span style=""> </span>What are common DLI functions?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A25)<span style=""> </span>GU,GN,GNP,GHU,GHN,REPL,ISRT,DLET...</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q26)<span style=""> </span>What are common status codes that you come across?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A26)<span style=""> </span>GE,GB,GD,GK,GP,AI,AB,AC,AK,AJ,AM,AU,DJ,II,IX,QC,QD,H...</p> <p class="MsoNormal" style="margin-left: 13.5pt; text-indent: 13.5pt;">GE - segment not found</p> <p class="MsoNormal" style="margin-left: 13.5pt; text-indent: 13.5pt;">GB - end of database</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q27)<span style=""> </span>What are the command codes and their purposes?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A27)<span style=""> </span>Command codes extends the function of a SSA call. It simplifies programming and it improves performance.<span style=""> </span></p> <p class="MsoNormal" style="margin-left: 13.5pt; text-indent: 13.5pt;">*C - Concatenated key,<span style=""> </span>D-path call, F- first occurrence, L- last occurrence,</p> <p class="MsoNormal" style="margin-left: 13.5pt; text-indent: 13.5pt;">N- path call ignore , P-set parentage.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q28)<span style=""> </span>What are the parameters used in CBLTDLI call?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A28)<span style=""> </span>Function code, PCB mask, Segment I/O Area & SSA(s).</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q29)<span style=""> </span>What are qualified and unqualified SSA's.<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A29)<span style=""> </span>A Qualified SSA contains Key field as well as search field and parenthesis An unqualified SSA does not contain key field and parenthesis</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q30)<span style=""> </span>What do you know about MFS?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A30)<span style=""> </span>Message Format service , Used to format messages that will be transmitted to and from display screens.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q31)<span style=""> </span>What for procopt is used? List some of them?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A31)<span style=""> </span>Procopt parameter specifies PROCESSING OPTIONS that define the type of processing that can be performed on a segment. ex: K, G, L, LS, A ,AS, I, IS. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span><span style=""> </span>procopt=k---means , the segment is key sensitive</p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>procopt=g-<span style=""> </span>the segment is data sensitive (like read only)</p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>L- Load mode , means we can load data base from scratch</p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>A- Get, Insert, Delete, Replace- means it allows the program to issue all those calls</p> <p class="MsoNormal" style="margin-left: 27pt;"><span style=""> </span>I-insert mode.<span style=""> </span>That means only insert calls with insert mode can be issued</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q32)<span style=""> </span>What is multi positioning ?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A32)<span style=""> </span>Multi positioning is an option<span style=""> </span>where by IMS maintains a separate position on each hierarchical path. when more than one PCBs refer to the same DBD , it is called Multi positioning.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q33)<span style=""> </span>What is secondary indexing?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 27pt; text-indent: -27pt;">A33)<span style=""> </span>Secondary indexing is a feature which allows the program to sequentially retrieve segments or search for segments in a sequence other than key sequence.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><b style="">Q34)<span style=""> </span>How many PCB’s can be coded within a PSB?<o:p></o:p></b></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;">A34)<span style=""> </span>As many(more than one)</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style=""><b style="">Q35)<span style=""> </span>What is PSB,PCB & ACB?<o:p></o:p></b></p> <p class="MsoNormal" style="">A35)<span style=""> </span>PSB(Program specification block): Informs about how a specific program is to be access one or more IMS DB. It </p> <p class="MsoNormal" style=""><span style=""> </span><span style=""> </span>consists of PCB.</p> <p class="MsoNormal" style=""><span style=""> </span>PCB (Prg Communication Block): Information to which segment in DB can be accessed, what the program </p> <p class="MsoNormal" style=""><span style=""> </span><span style=""> </span>is allowed to do with those segment and how the DB is to be accessed.</p> <p class="MsoNormal" style="text-indent: 27pt;">ACB(Access Control Block):<span style=""> </span>are generated by IMS as an expansion of information contained in the PSB in order </p> <p class="MsoNormal" style="margin-left: 1.5in; text-indent: 0.5in;"><span style=""> </span>to speed up the access to the applicable DBD's.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">What is check pointing, sync point?</p> <p class="MsoNormal">How do you write<span style=""> </span>a PSB code ?<span style=""> </span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <b style=""><span style="font-size: 12pt; font-family: "Times New Roman";">
<br /> </span></b>Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-88914660906551344042008-07-03T04:11:00.000-07:002008-12-23T21:45:21.641-08:00100 COOL MAI NFRAME T I PSTIP # 001<br /><br />Lets start with a generic and simpler one.<br />Consider that you are editing a file/program and you want to know the changes you have done<br />since the last SAVE command.<br />How to find that?<br />Answer:<br />Give COMPARE SESSION on the command line<br />Further use of COMPARE commands...<br />- Can be used like 3.13 option<br />TIP # 002<br />ISPF<br />Usually the PDS or PS bears the ID of the creator or the ID of the person who modified it<br />recently.But is it possible to change these ID values without leaving trace of one’s own ID?<br />Answer:<br />Yes its possible! In the command area against the member name or PS name, by giving ‘G’.<br />Dialog box will pop up allowing you to change the ID values.<br />TIP # 003<br />ISPF<br />Suppose you are in a ISPF Screen and want to know in which TSO Region ( Development,<br />Production, or other TSO regions) you are now .<br />Answer:<br />Issue on the command line : SAREA<br />ISPF STATISTICS Pop-up window will show you the region( and other info too)<br />100 COOL MAI NFRAME T I PS<br />TIP # 004<br />ISPF<br />Any command entered in the COMMAND LINE disappears after the successful execution of its<br />intended function.<br />If you want to repeat the same command , you got to re-type it or use some PF key to retrieve the<br />last command entered.<br />But here is a cool method the make the command entered not to disappear and stay on the screen.<br />Precede commands with '& '<br />For Example:<br />COMMAND ===> &C '110-PARA' '220-PARA' SCROLL ===> CSR<br />****** ************************ TOP OF DATA **************<br />000001 IDENTIFICATION DIVISION.<br />000002 PROGRAM-ID. COBOLSAMY.<br />000003 DATE-WRITTEN. APRIL 2004.<br />After the execution of the command, the below command stays on the screen.<br />This way you can entering the same command or modifying the command a little and using it<br />multiple times.<br />TIP # 005<br />ISPF<br />While trying to open any member in a PDS, we sometimes come across<br />"member in use" message. In that situation, if you want to know who is using the member<br />currently, press F1 twice.<br />TIP # 006<br />ISPF<br />We usual search for members in a PDS by the first string of the members.<br />Consider this situation .<br />I have a PDS and I want to search it for member only by middle string of the members.<br />e.g. there are some members like BESTJCL1,RESTJCL2,PESTCBL1, BESTCBL2,<br />WESTCBL3,TESTASM1,BESTASM2...etc<br />I want to find members which have CBL in them.<br />How can I search and find these members?<br />100 COOL MAI NFRAME T I PS<br />Answer:<br />Use ISPF 4.12 option.<br />Specify the dataset to be searched and the pattern of the string.<br />Specify the LANG type as COB<br />And select the browse option.<br />TIP # 007<br />ISPF<br />How can I find the last 10 datasets that I have accessed ?<br />Answer:<br />1.GO TO ISPF 3.4 option.<br />2. On the top, there is a MENUBAR. Select REFLIST<br />3. Select Option 1 in it.<br />Using this option you can find out the last 30 datasets that you have accessed....<br />TIP # 008<br />ISPF<br />Alternate to SuperCE Option(3.13) is to use the macro COMPARE .<br />Use this when you there is less difference between the two files.<br />1.Open a DSN in EDIT or VIEW Mode<br />2. On the Command line , issue COMP 'YOUR.SECOND.COMPARISON.DSN'<br />3. If you want only the changes to be listed, issue COMP<br />'YOUR.SECOND.COMPARISON.DSN' EXC<br />100 COOL MAI NFRAME T I PS<br />TIP # 009<br />ISPF<br />While Browsing Internet, we have some cool option called address autocomplete…we enter<br />some letters in the address bar and the browser auto completes it with the closest guess.<br />Does MAINFRAME has the same feature??<br />Answer:<br />Yes! It has “Autocomplete” feature!!!<br />How to use it?<br />1.go to ISPF 3.4 ,<br />2. enter KEYS in the command line,KEYS window will popup<br />3. set any key to AUTOTYPE, save and exit<br />2. now type any Dataset partially and press the assigned PFkey!!<br />Note: It will not retrieve GDGs and VSAM files.<br />TIP # 010<br />ISPF<br />I want to find a member but I don’t know the PDS to which it belongs. I only know the high<br />level qualifier of the PDS.<br />Answer:<br />For example, lets consider high level Qualifier as MYID.MYAPPLN.* and member as MYMEM<br />1. Go to 3.4 and list all PDS with MYID.MYAPPLN.*<br />2. Now issue, MEMBER MYMEM on the command line<br />TIP # 011<br />ISPF<br />I want to know what are the last 25 COMMAND LINE commands that I have issued from ISPF<br />panel.<br />Answer:<br />To get that, I have to issue, RETP on the Command line.<br />100 COOL MAI NFRAME T I PS<br />TIP # 012<br />ISPF<br />I want to edit a member, which has CBL as middle string in the PDS MY.PDS.MEMBERS.<br />One shortcut way is to in the ISPF 3.4 listing of the PDS,<br />issue S *CBL* E in the command line. If we don’t use E at the end, it will open in browse mode.<br />TIP # 013<br />ISPF<br />Here is another tip on ISPF 3.4 Option<br />Usually to find the last edited member, we issue SORT CHA or SORT CHANGED on<br />the command line.<br />One can save few keystrokes by placing the cursor on any of the column<br />header in the ISPF 3.4, and press ENTER.<br />In our case, if we place the cursor on the CHANGED header, we will get the<br />members sorted on that column.<br />TIP # 014<br />ISPF<br />Here is a tip by which you can avoid ISPF 3.4 Option!!!<br />To Open a PS or PDS member, we usually use ISPF 3.4 to open in EDIT or BROWSE<br />MODE.<br />Here is one way where one can open PS or PDS member in EDIT/VIEW/BROWSE<br />mode from any command line.<br />Thus, we can avoid using 3.4 option.<br />Issue : EPDF ‘MYID.MYPS’ . The Dataset will be opened in EDIT MODE<br />If you want to open in VIEW mode:<br />Issue : EPDF ‘MYID.MYPS’ VIEW<br />Similarly, for opening in BROWSE mode, type BROWSE at the end.<br />100 COOL MAI NFRAME T I PS<br />TIP # 015<br />ISPF<br />Here is a situation. I have received a maintenance change<br />request on one of the program.<br />While I am making changes to the program, one of my friend pops<br />in and I leave with him for a cup of coffee without SAVING the<br />changes I made.<br />After few minutes , when I am back, I am not sure what changes I<br />made previously on the program?<br />How can I find the changes I have made (without getting out of<br />this screen)?<br />Well, here is one simple command line command to achieve this...<br />Issue : COMP * X<br />TIP # 016<br />ISPF<br />When I issue CUT , I know that the CUT content are placed in a<br />clipboard. And when I issue PASTE, the clipboard content are<br />pasted.<br />But is it possible for me to view/edit the clipboard ?<br />One can view the clipboard after any valid CUT command was issued.<br />To view the clipboard, issue : CUT DISPLAY.<br />Clipboard manager will pop up and gives us options to edit or browse the<br />content.<br />TIP # 017<br />ISPF<br />Here is another tip on ISPF CUT. I have a dataset with 10,000<br />lines.I want to cut the first 10 lines and last 10 lines and<br />paste into another dataset.When I cut the first 10 lines and<br />then again the last 10 lines ,only the last 10 lines are pasted<br />into the new dataset.<br />Is there anyway out (other than doing a 2 cut & paste)?<br />100 COOL MAI NFRAME T I PS<br />The answer for the above question is to:<br />1.first cut 10 lines, then issue CUT APPEND<br />2.then cut last 10 lines, then issue CUT APPEND<br />3.When you PASTE it, you got both.<br />TIP # 017<br />ISPF<br />Tired of typing the often-used datasets repeated?!!!<br />We have seen AUTOTYPE previously. Here is another one that saves lots of key-strokes.<br />Use NRETRIEV.<br />How to use it?<br />1 enter KEYS in the command line,KEYS window will popup<br />2 set any key to NRETRIEV and exit<br />3 now when you are in 3.4 or whichever screen you have set the KEYS option, press the<br />assigned PF keys.<br />4. Pressing them repeated will bring up one-by-one the last 30 accessed datasets from the reflist.<br />TIP # 018<br />ISPF<br />Here is one simple one.......<br />I want to search a string like 'abc' (including quote).<br />In my pgm there may be more abc strings.But i don't want to retrieve all of them.<br />i need the abc enclosed with quotes.<br />How to search is in 3.14 option?.<br />In the ISPF 3.14 , search with ‘’’abc’’’ string.(i.e. with 3 quotes at both sides of the string)<br />TIP # 019<br />ISPF<br />I have to compare one input file field with one output file field. The input file field in is column<br />1 to 10 and the output file field is in column 40 to 50.<br />How can I do it?<br />100 COOL MAI NFRAME T I PS<br />1. Use the standard 3.13 ISPF option. In the same screen itself, in the command line issue, E<br />2. then type,<br />CMPCOLN 40:50<br />CMPCOLO 1:10<br />3. press PF3 and exit<br />4. In the New dataset , type in the output dataset<br />5. In the Old dataset , type in the input dataset<br />TIP # 020<br />ISPF<br />Is an easy way to search member in Multiple PDS?<br />Go to 3.4 (where all the datasets will be displayed) .<br />In the Command line give<br />Command line==>M memname<br />This command will not work for the migrated PDS. So ensure all the PDS are in<br />Disk.<br />Now the message "MEMBER(S): memname found" will apppear in the right side of<br />the panel.<br />TIP # 021<br />ISPF<br />I have data which is of length 160. For some reasons, I want to wrap the data in each record to 80<br />characters and have the next 80 characters in the next line. So basically what I am looking for is ,<br />“Is there command similar to Wordwrap (as in Notepad or MS WORD) in mainframe?”<br />Yes, with ISPF, one can wrap the data as required.<br />To do that,<br />1.Open the dataset in ISPF EDIT mode.<br />2.In the first line, issue the line command: TF80 (as in this case I want to wrap to 80 chars per<br />line)<br />3.All the subsequent lines will wrap to 80 chars per line.<br />100 COOL MAI NFRAME T I PS<br />TIP # 022<br />ISPF<br />Here is another tip on ISPF 3.4 option<br />From the ISPF 3.4 option listing, I can directly Edit/Browse/view the member without listing all<br />the members and then select the particular member.<br />To do that,<br />In the Line command issue, E / (member)<br />use for Browse (B) and view (V)<br />Command - Enter "/" to select action Message Volume<br />-------------------------------------------------------------------------------<br />E /(MEMBER1)MYID.WORK.SRC NV1E56<br />***************************** End of Data Set list ****************************<br />JCL<br />TIP # 023<br />JCL<br />Hero's Method:<br />If you prefer a dataset to be not deleted accidentally, then<br />---------------------------------------------------------------------------------------------------------------------<br />USING IDCAMS USING JCL COMMENTS<br />---------------------------------------------------------------------------------------------------------------------<br />TO(04365) LABEL=RETPD=04365 Will protect till end of 2004<br />FOR(30) LABEL=RETPD=10 Will protect for 30 days<br />---------------------------------------------------------------------------------------------------------------------<br />Villain's Method:<br />If by chance of fate, you want to delete a dataset that is protected by the above method...<br />Use IDCAMS DELETE command with PURGE option.<br />e.g.,<br />//STEP1 EXEC PGM=EXEC<br />//SYSPRINT DD SYSOUT=*<br />//SYSIN DD *<br />DELETE TOP.SECRET.DATA -<br />PURGE<br />/*<br />100 COOL MAI NFRAME T I PS<br />TIP # 024<br />JCL<br />Is it possible to execute a program from any library using the referback?<br />The Answer is Yes!<br />//STEP1 EXEC PGM=IEFBR14<br />//PROGRAM DD DSN=SYSTEM.PGM.LOADLIB(COBOLPGM),DISP=SHR<br />//STEP2 EXEC PGM=*.STEP1.PROGRAM<br />TIP # 025<br />JCL<br />How does the system differentiates between JCL comment statements (i.e., //* statements) and<br />JES3 Statements (which also start with //* ) ?<br />If the 4th column contains JES3 keyword, the line is considered to be JES3 statement, else it is<br />considered as normal JCL statement.<br />TIP # 026<br />JCL<br />We know JES2 and JES3 , but is there any JES1?<br />OS/VS1 (the forefather of MVS) supported only one job entry subsystem namely JES1<br />TIP # 027<br />JCL<br />Consider this situation.<br />I have a JCL with 10 steps.<br />For reasons known only to me, I want to execute step 5 only.<br />How can I do it?<br />100 COOL MAI NFRAME T I PS<br />One way to do it is to use RESTART from STEP05, but it will try to execute the<br />subsequent steps too.<br />We have to insert null statement after step05 to prevent the execution of<br />subsequent steps.<br />But one decent way is there in which we don’t need to touch the job steps<br />code, but alter only the Jobcard.<br />And that is....<br />In the JOBCARD, code COND parameter. Then, when the Job is executed , only<br />the Step mentioned in the RESTART parameter will get executed.<br />e.g., RESTART=STEP05,COND=(0,LE)<br />TIP # 028<br />JCL<br />We know that JOBLIB statement must be placed after the JOB statement and before the first<br />EXEC statement in the job.<br />But, the STEPLIB statement can be placed anywhere in the particular step’s JCL (not necessarily<br />the first DD statement in the STEP).<br />TIP # 029<br />JCL<br />Here is a quick question. Can Catalog Procedure have PEND<br />statement?<br />Yes! Now it can have PEND Statement.<br />Do check it out….<br />TIP # 030<br />JCL<br />How much data can TAPE store??<br />A typical tape reel might contain 170 MB whereas tape cartridges can contain as much as<br />10GB.<br />(Source: System 390 JCL by Gary DeWard Brown)<br />100 COOL MAI NFRAME T I PS<br />TIP # 031<br />JCL<br />Do you know why null statement was introduced in JCL?<br />Back when punched cards were used, a null coded on distinctive colored cards was used to help<br />operators separate card decks. ( Hence , it helped to identify the end-of-job card, and the start of<br />next job for the operators)<br />(Source: System 390 JCL by Gary DeWard Brown)<br />TIP # 032<br />JCL<br />Do you know why JCL has ‘//’ in col 1& 2 in each Statement??<br />The Slashes date back from when PUNCHED CARDS were used to submit JCL code for<br />execution. If the cards were mistakenly put back to front in the reader, the slashes wouldn’t be<br />read first and so the card deck could be rejected. So ‘//’ ensures that the punched cards are placed<br />properly!!<br />(Source: System 390 JCL by Gary DeWard Brown)<br />TIP # 033<br />JCL<br />How can I specify dummy VSAM dataset in a JCL?<br />Code AMP=’AMORG’ . This parameter tells the OS to treat the file as VSAM file.<br />//NOVSAMIO DD DUMMY,AMP=’AMORG’<br />TIP # 034<br />JCL<br />I can specify the max limit of TIME parameter as<br />TIME=NOLIMIT or<br />TIME=MAXIMUM.<br />100 COOL MAI NFRAME T I PS<br />Now which specification gives maximum time for a JOB?<br />TIME=MAXIMUM will allow the job to run for 357912 minutes (248.55 days)<br />TIME=NOLIMIT will allow the job for unlimited amount of time<br />Another advantage of NOLIMIT option is that it can remain in wait status for more than the installation<br />time limit.<br />TIP # 035<br />JCL<br />I want to delete a member in a PDS, but someone is using it. How can I delete it?<br />One can use the following JCL<br />//DELMEMB EXEC PGM=IDCAMS<br />//SYSPRINT DD SYSOUT=*<br />//PDS DD DSN=libraryname,DISP=SHR<br />//SYSIN DD *<br />ALLOC DDN(INFILE) SHR REUSE DSN('libraryname ')<br />DELETE libraryname(membername) FILE(PDS)<br />TIP # 036<br />JCL<br />&SYSUID is a "system symbol" for which the system substitutes your TSO ID.<br />It is the only system symbol that can be used in a batch job, and can be useful when more than one<br />individual submits the same JCL.<br />100 COOL MAI NFRAME T I PS<br />TIP # 037<br />JCL<br />I am overriding 2 DD statements in a PROC from my JCL. The first DD statement is in step 10 and<br />second DD statement is in step 40.<br />Usually , I specify as<br />//PS010.INPUT DD DSN=MYID.DATASET<br />//PS040.SYSIN DD DSN= MYID.NEW.DATASET<br />What will happen if I specify step 40 first and step 10 next?<br />zOS JCL will process it! It will override irrespective of the order it is specified. Formerly out-of-order DD<br />overrides were ignored.<br />100 COOL MAI NFRAME T I PS<br />COBOL<br />TIP # 038<br />COBOL<br />If you are accessing ESDS VSAM file, then in COBOL do you know<br />that SELECT clause has something different about it!!<br />For ESDS,<br />SELECT FILE ASSIGN TO AS-DDNAME<br />Yes, the DDNAMEs should be prefixed with AS- .<br />If you are not doing that then an S213 ABEND might occur when<br />attempting to open data set.<br />TIP # 039<br />COBOL<br />When writing a COBOL program that is to be used as a CICS application program,do not use the<br />compiler option DYNAM.<br />TIP # 040<br />COBOL<br />MERGE statement can have OUTPUT PROCEDURE but not INPUT PROCEDURE !!<br />TIP # 041<br />COBOL<br />Do you know how COBOL Compiler finds a dataset as VSAM dataset?<br />When the ORGANIZATION clause is coded for a file, the COBOL compiler interprets it as a<br />VSAM dataset. Hence, the ORGANIZATION clause should not be coded with a non-VSAM<br />dataset.<br />100 COOL MAI NFRAME T I PS<br />TIP # 042<br />COBOL<br />Do you know using an odd number of digits for PACKED DECIMAL (COMP-3) is 5% to 20%<br />faster than using an even number of digits !!<br />TIP # 043<br />COBOL<br />Performance considerations for indexes vs subscripts:<br />using COMP to address a table is 30% slower than using indexes!<br />using COMP-3 to address a table is 300% slower than using indexes !!<br />using DISPLAY data items to address a table is 450% slower than using indexes !!!<br />(source: Cobol performance tuning manual)<br />TIP # 044<br />COBOL<br />Rule of the THUMB:<br />For a table with less than 50 entries ==> go for SEARCH ( Sequential Search)<br />greater than 50 entries ==> go for SEARCH ALL ( Binary Search)<br />TIP # 045<br />COBOL<br />In CO BO L, why we READ FILE but W RITE RECO RD?<br />You READ a FI LE becaus e you don’t know in advance:<br />1.whether ther e actually is a RECORD to read or not<br />2. For var iable or undefined length files , how long the nex t RECORD will be,<br />if ther e is one.<br />You Wr ite a RECORD becaus e you know in advance the answer s to both of<br />the above ques tions .<br />100 COOL MAI NFRAME T I PS<br />TIP # 046<br />COBOL<br />Using OPEN OUTPUT to load a VSAM file will significantly improve the performance of your<br />program. Using OPEN I-O or OPEN EXTEND will have a negative impact on your program's<br />performance.<br />TIP # 047<br />COBOL<br />Avoid repetitive uses of the INITIALIZE statement.<br />INITIALIZE once and move it to a second like sized 01 level, then move the second 01 level to<br />the first to initialize the fields.<br />TIP # 048<br />COBOL<br />Consider using an in-line PERFORM instead of a SEARCH when you have less than 20<br />elements in a table.<br />TIP # 049<br />COBOL<br />One can generate a complete listing of compiler diagnostic messages, with their explanations, by<br />compiling a program with the program-id of ERRMSG specified in the PROGRAM-ID<br />paragraph.<br />EX:<br />IDENTIFICATION DIVISION<br />PROGRAM-ID.ERRMSG.<br />ENVIRONMENT DIVISION.<br />DATA DIVISION.<br />PROCEDURE DIVISION.<br />STOP RUN.<br />100 COOL MAI NFRAME T I PS<br />TIP # 050<br />COBOL<br />For KSDS or RRDS , when DELETE statement is used, the file must be<br />opened in I-O Mode.<br />TIP # 051<br />COBOL<br />Performance Tuning<br />Taking constant expressions out of a loop speeds up a program with no ill effects.<br />Example<br />Move zero to total.<br />Perform varying I from 1 by 1 until I > 100<br />Compute total = total + item (i) * discount<br />End-perform<br />Remove multiply from loop<br />Move zero to total<br />Perform varying I from 1 by 1 until I > 100<br />Compute total = total + item (i)<br />End-perform<br />Compute total = total * discount<br />TIP # 052<br />COBOL<br />Sometimes my initialization doesn’t work when I use INTIALIZE verb? Is there anything that I should take<br />care of?<br />When we use INITIALIZE verb to initialize group verbs, group elements which are FILLERs will<br />not be initialized!<br />100 COOL MAI NFRAME T I PS<br />TIP # 053<br />COBOL<br />I am using internal sort in my COBOL Program. Is there anyway to test the return code of sort<br />operation?<br />The return-code or completion code is stored in a SORT-RETURN special register.<br />If SORT-RETURN = 0 (successful completion of SORT/MERGE)<br />If SORT-RETURN = 16 (Unsuccessful completion of SORT/MERGE)<br />TIP # 054<br />COBOL<br />In general, it is advantage to use COMP for numeric data and COMP-3 for decimal data.<br />TIP # 055<br />COBOL<br />Here is one better way of INITIALIZATION of a record or group item.<br />INTIALIZE WS-RECORD<br />REPLACING ALPHANUMERIC DATA BY SPACES<br />NUMERIC DATA BY ZEROES.<br />TIP # 056<br />COBOL<br />SEARCH ALL condition only test an equal condition.<br />100 COOL MAI NFRAME T I PS<br />TIP # 057<br />COBOL<br />In COBOL SELECT clause, I see sometimes see ASSIGN coded like this…<br />SELECT INFILE ASSIGN TO UT-S-INFILE<br />OR<br />SELECT INFILE ASSIGN TO DA-S-INFILE<br />What they mean actually…<br />First part in DDNAME: - Device Class<br />UT stands for Utility (Tape or Sequential Disk)<br />DA stands for Direct-Access (disk)<br />Second part in DDNAME: - Method of Organization<br />S – Sequential (Printer, terminal, disk or tape)<br />I, R, D – Disk files to be accessed randomly<br />TIP # 058<br />COBOL<br />When using INPUT /OUTPUT PROCEDURE with SORT<br />We RELEASE record-name (for INPUT PROCEDURE) and<br />We RETURN file-name (for OUTPUT PROCEDURE)<br />100 COOL MAI NFRAME T I PS<br />VSAM<br />TIP # 059<br />VSAM<br />Performance Tuning<br />One can speed up applications greatly by using memory to cut I/O when dealing with VSAM<br />datasets.<br />For this VSAM Buffers can be enlarged.<br />In the DD statement code AMP parameters = BUFNI(index), BUFND(data), BUFSP ( amount of<br />virtual storage)<br />Increase number of Data buffers (BUFND) for sequential access<br />Increase number of Index buffers (BUFNI) for random access<br />TIP # 060<br />VSAM<br />IDCAMS Utility can't be executed without 2 DD Statements .<br />They are SYSPRINT and SYSIN.<br />TIP # 061<br />VSAM<br />We know that FREESPACE(100,100) specification causes one record to be written for each<br />Control interval, and one Control Interval would be written for each control area. But do you<br />know why?<br />VSAM will always load the first record before taking FREESPACE option into consideration!!!<br />TIP # 062<br />VSAM<br />DEFINE PATH command creates an alias for the VSAM base cluster<br />DEFINE ALIAS command creates an alias for non-VSAM datasets<br />100 COOL MAI NFRAME T I PS<br />TIP # 063<br />VSAM<br />CICS, DB2, IMS can process records in existing VSAM datasets but can't create the dataset.<br />Even you can process VSAM data sets in COBOL programs only<br />after you create them with access method services.<br />TIP # 064<br />VSAM<br />How can I specify dummy VSAM dataset in a JCL?<br />Code AMP=’AMORG’ . This parameter tells the OS to treat the file as VSAM file.<br />//NOVSAMIO DD DUMMY,AMP=’AMORG’<br />TIP # 065<br />VSAM<br />I want to process a KSDS thru an alternate key. Now what are the 5 IDCAMS commands that must be<br />executed before the records in a KSDS can be processed thru an alternate key?<br />1. DEFINE CLUSTER<br />2. REPRO (the base cluster must be non-empty KSDS)<br />3. DEFINE ALTERNATEINDEX<br />4. DEFINE PATH<br />5. BLDINDEX<br />The first 3 IDCAMS commands should be executed in the above-mentioned order.<br />The last 2 IDCAMS can be done in any order.<br />100 COOL MAI NFRAME T I PS<br />TIP # 066<br />VSAM<br />I want to make my VSAM dataset read-only. How can I do it?<br />By using INHIBIT along with ALTER command<br />e.g.,<br />//STEP1 EXEC PGM=IDCAMS<br />//SYSPRINT DD SYSOUT=*<br />//SYSIN DD *<br />ALTER -<br />SECRET.KSDS.DATA -<br />INHIBIT<br />ALTER -<br />SECRET.KSDS.INDEX -<br />INHIBIT<br />/*<br />//<br />Notice that the ALTER command is used with DATA and INDEX and not with the cluster.<br />TIP # 067<br />VSAM<br />VSAM equivalent of temp dataset is to create VSAM file with REUSE option. A dataset created with<br />REUSE can be treated as a new dataset at any subsequent time.<br />100 COOL MAI NFRAME T I PS<br />TIP # 068<br />VSAM<br />How should be VSAM file defined in order that it can be accessed both in CICS and in BATCH<br />environment?<br />Define as SHAREOPTION (2,3)<br />TIP # 069<br />VSAM<br />While designing VSAM files, what’s the best way to choose Control Interval (CI) size for the data and the<br />index?<br />Well, it depends on whether the data will be accessed directly or sequentially.<br />For Direct access use small CI<br />For Sequential access use Lager CI<br />100 COOL MAI NFRAME T I PS<br />FILEAID<br />TIP # 070<br />FILEAID<br />The Easiest and Coolest way to locate bad data is thru File-Aid'sF IND command.<br />1.OPEN the file in FILE-AID (in either browse or edit mode)<br />2.XREF with COPYBOOK.<br />3.Use FMT mode<br />4.Then issue ,<br />F /field-name INVALID<br />or<br />F /field-number INVALID<br />The control will take you to the first invalid data record for the given field.<br />e.g.,<br />The FILE has 3 fields namely NAME,AGE,COUNTRY.<br />If you want to find the invalid data in the age field, then issue<br />F /2 INVALID<br />TIP # 071<br />FILEAID<br />We always face a s ituation such that when we have opened a File in FI LEAI<br />D Brows e mode but later wished it was EDI T Mode and vice ver sa. S o in<br />this s ituation, what we do is come out of the brows e mode and again open in<br />edit mode and vice ver sa. But ther e is a cool command available in FI LE-AI D<br />to help us in this type of s ituation.<br />I f u r in Brows e Mode and want to change it into EDI T Mode , in the Line<br />Command is sue<br />COMMAND = = > GO EDI T<br />I f u r in EDI T Mode and want to change it into BROWS E Mode , in the Line<br />Command is sue<br />COMMAND = = > GO BROWS E<br />100 COOL MAI NFRAME T I PS<br />TIP # 072<br />FILEAID<br />How to determine compile date of loadlib member ??<br />Use FILE-AID !!<br />1. Go to FILE-AID 3.1 option<br />2. In the Library Utility type in the loadlib dataset name<br />3. Type 'a' next to the member nam e<br />4. TDATE is compile date<br />TIP # 073<br />FILEAID<br />Whats the best way to count the number of records in a VSAM File?<br />1.Choose FILE-AID Option 3.8<br />2. At the prompt of ....ENTER NEXT FUNCTION OR END , enter TALLY<br />3. U will get the record count<br />4. Type END to exit.<br />TIP # 074<br />FILEAID<br />While working in MS Excel we have the option of “freeze Panes”. By this options we can freeze<br />some columns and have other columns scrolling. This feature is helpful in analysis when there<br />are lots of columns(fields) in a file.<br />In mainframe too, we have similar such facility thru File-Aid.<br />1.Open the file in File-Aid<br />2. use VFMT format<br />3. If you want to freeze columns(fields) 1,2,3, and 6 and have the rest as scrollable<br />issue command HOLD 1-3,6<br />100 COOL MAI NFRAME T I PS<br />TIP # 075<br />FILEAID<br />Can I issue FIND command to find values that are less than or greater than ‘certain value’ at<br />column 25??<br />We can’t accomplish this task thru ISPF , but File -Aid provides us the facility to issue FIND<br />command with relational operators like EQ,NE,LT,GT,LE and GE.<br />e.g.,<br />FIND LT ‘2004’ 25 ALL<br />So if one wants to use relational operator along with FIND command, open the same dataset in<br />FILE-AID.<br />TIP # 076<br />FILEAID<br />Consider this situation. I am doing a verification on an output file. The output file has 200 fields.<br />I need to verify only 25th and 175th fields only.<br />I am using FILE-AID’s VFMT mode and for each record I am scrolling between 25 th and 175th<br />field. Is there any efficient way to handle this situation?<br />Some people might use HOLD to freeze 25th and 175th field , but still other fields are displayed ,<br />which is an annoyance.<br />Here is one better way:<br />In the VFMT mode, issue DISPLAY 25 175 ONLY<br />Only 25th and 175th fields will be displayed.<br />TIP # 077<br />FILEAID<br />ABEND SOLVING<br />At midnight I receive production call.<br />One job abended due to classic S0C7. Thru analysis I located the particular field which is a<br />COMP-3 and junk data is sitting in that field for some records.These bad records are not<br />contiguous but occuring randomly in the input file.<br />Now to save my head I have to delete all the records with bad data in that particular field and reexecute<br />the job quickly. Assume that input file has some 10 million records. How can I eliminate<br />the bad records in an efficient and a fast method?<br />100 COOL MAI NFRAME T I PS<br />Here is the approach:<br />Using the following FILE-AID option in batch mode<br />$$DD01 DROP IF=(field-position, field-length, NEP)<br />NEP means Not Equal to PACK<br />One can generalize and customize the below JCL to deal with similar type of ABENDS.<br />For Example,<br />My input layout is:<br />01 TEST-RECORD.<br />05 NAME-FIELD PIC X(5).<br />05 AMOUNT-FIELD PIC 9(3) COMP-3.<br />My JCL to eliminate the bad records:<br />//STEP01 EXEC PGM=FILEAID<br />//*<br />//SYSUDUMP DD SYSOUT=*<br />//SYSPRINT DD SYSOUT=*<br />//SYSLIST DD SYSOUT=*<br />//SYSTOTAL DD SYSOUT=*<br />//DD01 DD DSN=MYID.CHECK.OUT,DISP=SHR<br />//DD01O DD DSN=MYID.CHECK.OUT,<br />// DISP=(NEW,CATLG,CATLG),<br />// DCB=(MYID.CHECK.OUT)<br />//SYSIN DD *<br />$$DD01 DROP IF=(6,2,NEP)<br />/*<br />This will drop the bad data records and retain only the good one.<br />TIP # 078<br />FILEAID<br />I want to do Fuzzy Comparison of files!!<br />My requirement is to compare 2 files of which for one certain field I can have + or - 1 value which should<br />be acceptable while comparing.<br />Thru FILE-AID COMPARE (OPTION 10), one can set percentage amount for numeric<br />fields that determines "close enough" matches. When the "Formatted Criteria" table<br />appears after the 2 files are specified, use the "T" line command. This brings up a<br />100 COOL MAI NFRAME T I PS<br />"Tolerance Value/Percentage Specification" panel where you can set a plus or minus<br />value for a numeric field.<br />SORT<br />TIP # 079<br />SORT<br />Do you know COBOL Internal SORT and MERGE is actually done by DFSORT ?!!<br />If you SORT or MERGE with COBOL, the compiler automatically generates a SORT or<br />MERGE control statement for you with the correct DFSORT descriptions for the COBOL fields<br />you specify.<br />TIP # 080<br />SORT<br />How can I replace all the low-values in a file to spaces??<br />Use ALTSEQ CODE .<br />Here's an example of how you could change all low values (X'00') to spaces (X'40'), in an FB<br />data set with an LRECL of 80:<br />ALTSEQ CODE=(0040)<br />OUTREC FIELDS=(1,80,TRAN=ALTSEQ)<br />(Source: IBM SORT website)<br />100 COOL MAI NFRAME T I PS<br />TIP # 081<br />SORT<br />SYNCSORT<br />My Production job is such that, on one of the steps it has to<br />copy a VSAM dataset to flat file, and then process that flat<br />file in the subsequent steps. Sometimes the input VSAM may be<br />empty. When its empty, my job abends. How can I prevent the job<br />from abending when the VSAM is empty ?<br />Pass the parameter, VSAMEMT=YES for the SORT utility.<br />i.e,<br />//STEP3 EXEC PGM=SORT,PARM=’VSAMEMT=YES’<br />//*<br />//SYSOUT DD SYSOUT=*<br />//SORTIN DD DSN=VSAM.DSN<br />// DISP=SHR<br />//SORTOUT DD DSN=FLATFILE.DSN<br />// DISP=SHR<br />//SYSIN DD *<br />SORT FIELDS=COPY<br />/*<br />SDSF<br />TIP # 082<br />SDSF<br />If you want to rearrange the columns in SDSF -<br />1.Go TO SDSF.<br />2.In command line type "arr ?".<br />3.This will bring the complete list of SDSF column names.<br />4.You can move the columns using "/" and "//".<br />One Column in the SDSF that we can bring to the front position is the MAX-RC (which usual is<br />the last column in SDSF ) which shows the completion code or the abend code of the job.<br />100 COOL MAI NFRAME T I PS<br />TIP # 083<br />SDSF<br />How to allow another user to browse my job?<br />Usually if we want other user to see our job, we supply them with jobname and jobid.<br />They use, OWNER urid and PRE urid* to browse your job.<br />One simple way to allow another user to browse is to change the DEST column in either the H /I<br />or ST panel of the particular job to the another user id(who wants to view it).<br />The Other user need not issue commands or change panels to view your job. It will be available<br />in his Hold/Output panel itself.<br />TIP # 084<br />SDSF<br />I have some 50 jobs in my SPOOL. I want to list only the jobs that are ABENDED.<br />For such a kind of listing, use the primary command FILTER on the command line as given in<br />the examples below<br />FIL MAX AB* - shows jobs that has ABENDS<br />Other Examples are:<br />FIL MAX ‘JCL ERROR’ - shows jobs that has JCL errors<br />FIL MAX NE ‘RC 0000’ - shows jobs with “exceptional conditions”<br />FIL MAX EQ ‘RC 0000’ - shows successfully completed jobs<br />If you want to switch off the filter, then issue FIL OFF<br />TIP # 085<br />SDSF<br />For selecting jobs in the SDSF queue , I either use "?" or "S".<br />When I use "?" , I get the break-up output groups for example like<br />JESMSGLG,JESJCL,JESYSMSG,SYSPRINT,SYSUT2 etc.<br />When I use "S" , the entire job is selected without this break-up.<br />Is there any command to navigate to view each output group when I use "S" to select the job?<br />After opening the job using "S", use "N" (next) or "P"(Previous) to navigate between different<br />output groups.<br />100 COOL MAI NFRAME T I PS<br />CICS<br />TIP # 086<br />CICS<br />Use CALLs instead of LINKs in CICS<br />EXEC CICS LINK<br />- establishes a new run unit<br />- sets up environment<br />- Does CICS table-search<br />- For all this activities, it executes 1400 machine code instructions<br />CALL<br />- It executes around 12 machine code instructions<br />Just replacing EXEC CICS LINK with CALL statement on a case study, it was found that<br />Internal Transaction Response time improved 23 - 78 %<br />Total CPU Time improved 15 - 23 %<br />Dynamic storage use improved 11 - 30 %<br />* CALL used in the study is STATIC CALL . COBOL refered here is VS COBOL II<br />TIP # 087<br />CICS<br />You can use a COBOL CALL statement to call only a VS COBOL II or an Assembler language<br />program in the same load module as the calling program.<br />For calls to programs written in languages other than VS COBOL II, including other versions of<br />COBOL, you need to use the commands EXEC CICS LINK or EXEC CICS XCTL.<br />100 COOL MAI NFRAME T I PS<br />TIP # 088<br />CICS<br />Do you know how CICS was called initially ??<br />PUCICS!!!<br />PUCICS stands for Public Utilities Customer Information Control System.<br />After couple of years, it took the name CICS.<br />TIP # 089<br />CICS<br />What is the difference between getting the system time with EIBTIME and ASKTIME<br />command?<br />ASKTIME = requests the current date and time<br />EIBTIME = field have the value at the task initiation time<br />TIP # 090<br />CICS<br />To access the system values like date, time, Userid etc and store in a variable, one can use<br />EXEC CICS ASSIGN<br />TIP # 091<br />CICS<br />While doing a mass delete using a generic key, how can you determine the number of records<br />deleted?<br />By using the NUMREC(data-area) option with the generic key. Upon completion of the delete<br />the data-area will contain the number of records that are deleted.<br />100 COOL MAI NFRAME T I PS<br />TIP # 092<br />CICS<br />When generating Mapset, specify TIOAPX=YES for COBOL programs. YES generates a 12-<br />byte FILLER item at the beginning of each symbolic map. It should always be specified for<br />COBOL programs.<br />DB2<br />TIP # 093<br />DB2<br />Use the OS/390 – MVS solution ‘Move current-date to ……’ to obtain a date or<br />to do a date calculation instead of DB2’s ‘SET CURRENT TIMESTAMP’.<br />TIP # 094<br />DB2<br />Avoid joins that involve more than two TABLES. Break it up into multiple SQL statements.<br />In a case study, a 5-table join used 4190 CPU hours in a month for a weekly process.<br />Breaking it up dropped the usage to 9 CPU hours per month!!<br />TIP # 095<br />DB2<br />If using CURSOR SQL for read only, use FOR FETCH ONLY in the SQL.<br />100 COOL MAI NFRAME T I PS<br />TIP # 096<br />DB2<br />How To Match Contoken Across Loadlib & Dbrmlib<br />Step 1.<br />Go to SYSIBM.SYSPACKAGE for that program - look at the latest bind -<br />you can<br />look at the time stamp column to find the latest. There will be a<br />column<br />called CONTOKEN. This will have a value.<br />Ex -<br />-+---------+---------+---------+---------+---------+---------+---------+----<br />COLLID NAME CONTOKEN OWNER CREATOR TIMESTAMP<br />-+---------+---------+---------+---------+---------+---------+---------+----<br />CBPR39WO PGMNAME .îÒ#.¹". DFDBS ABC<br />2004-04-21-06.42.00.<br />Step 2 .<br />Covert the CONTOKEN to zoned decimal format. From the above example it<br />is X'1756ed7b02da7f32'. You can use HEX on to find the ZD forma t.<br />Step 3.<br />Go to the DBRMLIB - Search for this String like - F x'1756ed7b02ad7f32'<br />. If it is the correct DBRM lib using which it is bound then you will find a<br />match.<br />Also you can get the DBRMLIB used for binding from the above Query o/p<br />also if you scroll towards the end. There is a Column for that also.<br />Now How to match it to load lib .<br />Step 4.<br />Go to your load lib in browse mode. Search for the First 8 bytes in the<br />above ZD format of the CONTOKEN<br />Like =-- F '1756ed7b'. If you find a match then it is your matchin g<br />load !!!<br />The twist here is - on the SYSIBM.SYSPACKAGE and The DBRMLIB the<br />contoken is stored in the Same format, But in the Loadlib the date & time part of<br />the CONTOKEN is swapped and stored. This is why you need to search for the<br />8 bytes separately. Otherwise you need to swap the 16 bytes of the<br />CONTOKEN and search.<br />100 COOL MAI NFRAME T I PS<br />TIP # 097<br />DB2<br />To get only the first n rows<br />select *<br />from table name<br />fetch first n rows only<br />with ur;<br />TIP # 098<br />DB2<br />Performance Tuning<br />Use JOIN instead of Sub-Queries<br />SELECT EMPNO, LASTNAME FROM EMP, DEPT<br />WHERE WORKDEPT =DEPTNO<br />AND DEPTNAME = ‘PLANNING’<br />SELECT EMPNO, LASTNAME FROM EMP<br />WHERE WORKDEPT IN<br />( SELECT DEPTNO FROM DEPT<br />WHERE DEPTNAME = ‘PLANNING’ )<br />TIP # 099<br />DB2<br />How to select the duplicate rows from a table?<br />SELECT columns<br />FROM table<br />GROUP BY columns<br />HAVING COUNT(*) > 1<br />100 COOL MAI NFRAME T I PS<br />TIP # 100<br />DB2<br />For SQL declaration of DECIMAL(n,m),<br />the COBOL equivalent generated is PIC S9(n-m)v9(m) COMP-3Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-1803341161049360472008-07-17T23:06:00.000-07:002008-12-23T21:45:21.640-08:00QUESTION BANK (MAINFRAME)<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:SimSun;} h1 {mso-style-next:Normal; margin:0in; margin-bottom:.0001pt; mso-pagination:none; page-break-after:avoid; mso-outline-level:1; text-autospace:none; font-size:14.0pt; font-family:"Courier New"; mso-font-kerning:0pt;} p.MsoHeader, li.MsoHeader, div.MsoHeader {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:SimSun;} p.MsoFooter, li.MsoFooter, div.MsoFooter {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:SimSun;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-page-numbers:1; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:-2; mso-list-type:simple; mso-list-template-ids:-1;} @list l0:level1 {mso-level-start-at:0; mso-level-text:*; mso-level-tab-stop:none; mso-level-number-position:left; margin-left:0in; text-indent:0in;} @list l0:level1 lfo1 {mso-level-number-format:bullet; mso-level-numbering:continue; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol; mso-bidi-font-family:Symbol;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 14pt; font-family: "Courier New";">COBOL</span></b><b><span style="font-family: "Courier New";"><o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">1.Name the divisions in a COBOL program. - GS</span></b><span style="font-family: "Courier New";"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATA DIVISION, PROCEDURE DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">2.What are the different data types available in COBOL?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Alpha-numeric (X), alphabetic (A) and numeric (9).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">3.What does the INITIALIZE verb do?<span style=""> </span>- GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Numeric, Numeric edited items set to ZERO.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">FILLER , OCCURS DEPENDING ON items left untouched.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">4.What is 77 level used for ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">5.What is 88 level used for ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">For condition names.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">6.What is level 66 used for ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">For RENAMES clause.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">7.What does the IS NUMERIC clause establish ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">IS NUMERIC can be used on alphanumeric items, signed numeric & packed decimal items and unsigned numeric & packed decimal<span style=""> </span>items. IS NUMERIC returns TRUE if the item only consists of 0-9. However, if the item being tested is a signed<span style=""> </span>item, then it may contain 0-9,<span style=""> </span>+ and - .<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">8.How do you define a table/array in COBOL?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">01<span style=""> </span>ARRAYS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">05<span style=""> </span>ARRAY1<span style=""> </span>PIC X(9) OCCURS 10 TIMES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">05<span style=""> </span>ARRAY2<span style=""> </span>PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">9.Can the OCCURS clause be at the 01 level?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">10.What is the difference between index and subscript? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array. An index can only be modified using PERFORM, SEARCH & SET.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Need to have index for a table in order to use SEARCH, SEARCH ALL.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">11.What is the difference between SEARCH and SEARCH ALL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">SEARCH - is a serial search.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">SEARCH ALL - is a binary search & the table must be sorted ( ASCENDING/DESCENDING KEY clause to be used & data loaded in this order) before using SEARCH ALL.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">12.What should be the sorting order for SEARCH ALL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">It can be either ASCENDING or DESCENDING.<span style=""> </span>ASCENDING is default.<span style=""> </span>If you want the search to be done on an array sorted in descending order, then while defining the array, you should give DESCENDING KEY clause. (You must load the table in the specified order).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">13.What is binary search?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Search on a sorted array.<span style=""> </span>Compare the item to be searched with the item at the center.<span style=""> </span>If it matches, fine else repeat the process with the left half or the right half depending on where the item lies.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">14.My program has an array defined to have 10 items.<span style=""> </span>Due to a bug, I find that even if the program access the 11th item in this array, the program does not abend.<span style=""> </span>What is wrong with it?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Must use compiler option SSRANGE if you want array bounds checking. Default is NOSSRANGE.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">15.How do you sort in a COBOL program?<span style=""> </span>Give sort file definition, sort statement syntax and meaning. - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Syntax:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">SORT file-1 ON ASCENDING/DESCENDING KEY key....<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">USING file-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">GIVING file-3.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">USING can be substituted by INPUT PROCEDURE IS para-1 THRU para-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">GIVING can be substituted by OUTPUT PROCEDURE IS para-1 THRU para-2.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">file-1 is the sort workfile and must be described using SD entry in FILE SECTION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">file-2 is the input file for the SORT and must be described using an FD entry in FILE SECTION and SELECT clause in FILE CONTROL. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">file-3 is the outfile from the SORT and must be described using an FD entry in FILE SECTION and SELECT clause in FILE CONTROL.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>file-1, file-2 & file-3 should not be opened explicitly.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">INPUT PROCEDURE is executed before the sort and records must be RELEASEd to<span style=""> </span>the sort work file from the input procedure.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">OUTPUT PROCEDURE is executed after all records have been sorted. Records from the sort work file must be RETURNed one at a time to the output procedure.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">16.How do you define a sort file in JCL that runs the COBOL program?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Use the SORTWK01, SORTWK02,..... dd names in the step. Number of sort datasets depends on the volume of data being sorted, but a minimum of 3 is required.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">17.What are the two ways of doing sorting in a COBOL program?<span style=""> </span>Give the formats. - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">See question 16.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">18.Give the format of USING and GIVING in SORT statement.<span style=""> </span>What are the restrictions with it? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">See question 16. Restrictions - Cannot massage records, canot select records to be sorted.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">19.What is the difference between performing a SECTION and a PARAGRAPH? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Performing a SECTION will cause all the paragraphs that are part of the section, to be performed. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Performing a PARAGRAPH will cause only that paragraph to be performed.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">20.What is the use of EVALUATE statement? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Evaluate is like a case statement and can be used to replace nested Ifs. The difference between EVALUATE and case is that no 'break' is required for EVALUATE i.e. control comes out of the EVALUATE as soon as one match is made.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">21.What are the different forms of EVALUATE statement?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">EVALUATE <span style=""> </span>VALUATE SQLCODE ALSO FILE-STATUS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">WHEN A=B AND C=D<span style=""> </span>WHEN 100 ALSO '00'<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">WHEN (D+X)/Y = 4<span style=""> </span>WHEN -305 ALSO '32'<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">WHEN OTHER<span style=""> </span>WHEN OTHER<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">END-EVALUATE<span style=""> </span><span style=""> </span>END-EVALUATE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">EVALUATE SQLCODE ALSO A=B<span style=""> </span>EVALUATE SQLCODE ALSO TRUE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">WHEN 100 ALSO TRUE<span style=""> </span>WHEN 100 ALSO A=B<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">WHEN -305 ALSO FALSE<span style=""> </span>WHEN -305 ALSO (A/C=4)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">END-EVALUATE<span style=""> </span>END-EVALUATE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">22.How do you come out of an EVALUATE statement? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">After the execution of one of the when clauses, the control is automatically passed on to the next sentence after the EVALUATE statement.<span style=""> </span>There is no need of any extra code.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">23.In an EVALUATE statement, can I give a complex condition on a when clause?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">24.What is a scope terminator?<span style=""> </span>Give examples.</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Scope terminator is used to mark the end of a verb e.g. EVALUATE, END-EVALUATE; IF, END-IF.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">25.How do you do in-line PERFORM? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">PERFORM ... <until> ... <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><sentences><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span>END PERFORM<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">26.When would you use in-line perform?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-family: "Courier New";">When the body of the perform will not be used in other paragraphs. If the body of the perform is a generic type of code (used from various other places in the program), it would be better to put the code in a separate para and use PERFORM paraname rather than in-line perform.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">27.What is the difference between CONTINUE & NEXT SENTENCE ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">CONTINUE is like a null statement (do nothing) , while NEXT SENTENCE transfers control to the next sentence (!!) (A sentence is terminated by a period)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">28.What does EXIT do ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">Does nothing ! If used, must be the only sentence within a paragraph.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">29.Can I redefine an X(100) field with a field of X(200)?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Yes. Redefines just causes both fields to start at the same location. For example:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">01 WS-TOP PIC X(1)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">01 WS-TOP-RED REDEFINES WS-TOP PIC X(2).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">If you MOVE '12' to WS-TOP-RED, <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DISPLAY WS-TOP will show 1 while <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DISPLAY WS-TOP-RED will show 12. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">30.Can I redefine an X(200) field with a field of X(100) ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">30.What do you do to resolve SOC-7 error? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Basically you need to correcting the offending data.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Many times the reason for SOC7 is an un-initialized numeric item. Examine that possibility first.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Many installations provide you a dump for run time abends ( it can be<span style=""> </span>generated also by calling some subroutines or OS services thru<span style=""> </span>assembly language).<span style=""> </span>These dumps provide the offset of the last<span style=""> </span>instruction at which the abend occurred.<span style=""> </span>Examine the compilation <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">output XREF listing to get the verb and the line number of the source<span style=""> </span>code at this offset.<span style=""> </span>Then you can look at the source code to find the<span style=""> </span>bug.<span style=""> </span>To get capture the runtime dumps,<span style=""> </span>you will have to define some<span style=""> </span>datasets (SYSABOUT etc ) in the JCL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">If none of these are helpful,<span style=""> </span>use judgement and DISPLAY to localize<span style=""> </span>the source of error.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Some installtion might have batch program debugging tools.<span style=""> </span>Use them.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">31.How is sign stored in Packed Decimal fields and Zoned Decimal fields?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">Packed Decimal fields:<span style=""> </span>Sign is stored as a hex value in the last nibble (4 bits ) of the storage.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">Zoned Decimal fields:<span style=""> </span>As a default, sign is over punched with the numeric value stored in the last bite.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">32.How is sign stored in a comp-3 field? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">It is stored in the last nibble. For example if your number is +100, it stores hex 0C in the last byte, hex 1C if your number is 101, hex 2C if your number is 102, hex 1D if the number is -101, hex 2D if the number is -102 etc...<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">33. How is sign stored in a COMP field ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">In the most significant bit. Bit is on if -ve, off if +ve.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">34.What is the difference between COMP & COMP-3<span style=""> </span>?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">COMP is a binary storage format while COMP-3 is packed decimal format.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">35.What is COMP-1? COMP-2?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">COMP-1<span style=""> </span>- Single precision floating point. Uses 4 bytes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">COMP-2 - Double precision floating point. Uses 8 bytes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">36.How do you define a variable of COMP-1?<span style=""> </span>COMP-2?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">No picture clause to be given. Example 01 WS-VAR USAGE COMP-1.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">37.How many bytes does a S9(7) COMP-3 field occupy ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Will take 4 bytes. Sign is stored as hex value in the last nibble.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">General formula is INT((n/2) + 1)), where n=7 in this example.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">38.How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Will occupy 8 bytes (one extra byte for sign).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">39.How many bytes will a S9(8) COMP field occupy ?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">4 bytes. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">40.What is the maximum value that can be stored in S9(8) COMP?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">99999999<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">41.What is COMP SYNC?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Causes the item to be aligned on natural boundaries. Can be SYNCHRONIZED LEFT or RIGHT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">For binary data items, the address resolution is faster if they are located at word boundaries in the memory.<span style=""> </span>For example, on main frame the memory word size is 4 bytes.<span style=""> </span>This means that each word will start from an address divisible by 4.<span style=""> </span>If my first variable is x(3) and next one is s9(4) comp, then if you do not specify the SYNC clause, S9(4) COMP will start from byte 3 ( assuming that it starts from 0 ).<span style=""> </span>If you specify SYNC, then the binary data item will start from address 4. You might see some wastage of memory, but the access to this computational field is faster.<span style=""> </span><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">42.What is the maximum size of a 01 level item in COBOL I?<span style=""> </span>in COBOL II?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">In COBOL II: 16777215<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">43.How do you reference the following file formats from COBOL programs:</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Fixed Block File<span style=""> </span>- Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK CONTAINS 0 .<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Fixed Unblocked - Use ORGANISATION IS SEQUENTIAL. Use RECORDING<span style=""> </span>MODE IS F, do not use BLOCK CONTAINS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Variable Block File - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, BLOCK CONTAINS 0. Do not code the 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Variable Unblocked - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, do not use BLOCK CONTAINS. Do not code 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">ESDS VSAM file - Use ORGANISATION IS SEQUENTIAL. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">KSDS VSAM file - Use ORGANISATION IS INDEXED, RECORD KEY IS, ALTERNATE RECORD KEY IS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">RRDS File - Use ORGANISATION IS RELATIVE, RELATIVE KEY IS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Printer File - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK CONTAINS 0. (Use RECFM=FBA in JCL DCB).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">44.What are different file OPEN modes available in COBOL?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Open for INPUT, OUTPUT, I-O, EXTEND.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">45.What is the mode in which you will OPEN a file for writing? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">OUTPUT, EXTEND<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">46.In the JCL, how do you define the files referred to in a subroutine?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Supply the DD cards just as you would for files referred to in the main program. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">47.Can you REWRITE a record in an ESDS file?<span style=""> </span>Can you DELETE a record from it?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Can rewrite(record length must be same), but not delete.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">48.What is file status 92? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Logic error. e.g., a file is opened for input and an attempt is made to write to it.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">49.What is file status 39 ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL pgm & the JCL (or the dataset label). You will get file status 39 on an OPEN.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">50.What is Static,Dynamic linking ?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">In static linking, the called subroutine is link-edited into the calling program , while in dynamic linking, the subroutine & the main program will exist as separate load modules. You choose static/dynamic linking by choosing either the DYNAM or NODYNAM link edit option. (Even if you choose NODYNAM, a CALL identifier (as opposed to a CALL literal), will translate to a DYNAMIC call).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">A statically called subroutine will not be in its initial state the next time it is called unless you explicitly use INITIAL or you do a CANCEL. A dynamically called routine will always be in its initial state.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">51.What is AMODE(24), AMODE(31), RMODE(24) and RMODE(ANY)?<span style=""> </span>( applicable to only MVS/ESA Enterprise Server).<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">These are compile/link edit options.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">AMODE<span style=""> </span>- Addressing mode. RMODE - Residency mode.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";">AMODE(24) - 24 bit addressing. AMODE(31) - 31 bit addressing. AMODE(ANY) - Either 24 bit or 31 bit addressing depending on RMODE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";">RMODE(24) - Resides in virtual storage below 16 Meg line. Use this for 31 bit programs that call 24 bit programs. (OS/VS Cobol pgms use 24 bit addresses only).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">RMODE(ANY) - Can reside above or below 16 Meg line.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">52.What compiler option would you use for dynamic linking?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">DYNAM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">53.What is SSRANGE, NOSSRANGE ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">These are compiler options w.r.t subscript out of range checking. NOSSRANGE is the default and if chosen, no run time error will be flagged if your index or subscript goes out of the permissible range.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">54.How do you set a return code to the JCL from a COBOL program?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Move a value to RETURN-CODE register. RETURN-CODE should not be declared in your program.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">55.How can you submit a job from COBOL programs?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";">Write JCL cards to a dataset with <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";">//xxxxxxx SYSOUT=(A,INTRDR) where 'A' is output class, and dataset should be opened for output in the program. Define a 80 byte record layout for the file.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">56.What are the differences between OS VS COBOL and VS COBOL II?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">OS/VS Cobol pgms can only run in 24 bit addressing mode, VS Cobol II pgms can run either in 24 bit or 31 bit addressing modes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Report writer is supported only in OS/VS Cobol.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>USAGE IS POINTER is supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>Reference modification eg: WS-VAR(1:2) is supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>EVALUATE is supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>Scope terminators are supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>OS/VS Cobol follows ANSI 74 stds while VS COBOL II follows ANSI 85 stds.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Under CICS Calls between VS COBOL II programs are supported.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">57.What are the steps you go through while creating a COBOL program executable?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DB2 precompiler(if embedded sql used), CICS translator (if CICS pgm), Cobol compiler, Link editor.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>If DB2 program, create plan by binding the DBRMs.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">58.Can you call an OS VS COBOL pgm from a VS COBOL II<span style=""> </span>pgm ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-family: "Courier New";">In non-CICS environment, it is possible. In CICS, this is not possible.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 14pt; font-family: "Courier New";">VSAM</span></b><b><span style="font-family: "Courier New";"><o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">1.What are the different types of VSAM files available?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">ESDS:<span style=""> </span>Entry Sequence Data Set<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">KSDS:<span style=""> </span>Key Sequence Data Set<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">RRDS:<span style=""> </span>Relative Data Set<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">2.What is IDCAMS ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">IDCAMS is the Access Method Services program. You run the IDCAMS program and supply AMS commands thru SYSIN. (examples of AMS commands are DELETE, DEFINE, REPRO etc..).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">3.Can AMS commands be run from the TSO prompt ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Yes<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">4.Syntax of<span style=""> </span>AMS modal commands ?</span></b><span style="font-family: "Courier New";"> <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Note: these can be used only under IDCAMS and not from the TSO prompt.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">IF LASTCC(or MAXCC)<span style=""> </span>>(or <,= etc..) value - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">THEN - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DO - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span>command set (such as DELETE, DEFINE etc..) <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">ELSE - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DO - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span>command set <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">LASTCC<span style=""> </span>- Condition code from the last function(such as delete) executed<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">MAXCC - Max condition code that was returned by any of the prev functions<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">SET is also a valid AMS command. SET LASTCC (or MAXCC) = value<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">The maximum condition code is 16. A cond code of 4 indicates a warning. A cond code of 8 is usually encountered on a DELETE of a dataset that is not present.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">5.Under IDCAMS , multiple functions can be executed, each of which returns a cond code. What will be the condition code returned to the operating system ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">The maximum condition code generated is returned as the condition code of the IDCAMS step. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">6.What is Control Interval, Control Area</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Control Interval is analogous to a physical block for QSAM files. It is the unit of i/o. Must be between 512 bytes to 32 k. Usually either 2K or 4K. A larger control interval increases performance for sequential processing while the reverse is true for random access. Under CICS when a record is locked, the entire CI gets locked.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Control area is a group of control intervals. CA is used during allocation. CA size is calculated based on the allocation type (cyl, tracks or records) and can be max of 1 cylinder<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">7.What is FREESPACE ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Coded in the DEFINE as FREESPACE(ci ca) where ci is the percentage of each control interval to be left free for insertions, ca is the percentage of control intervals in each control area to be left empty.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">8.How do you decide on optimum values for CI, FREESPACE etc...</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">CI size should be based on record length, type of processing. Usually CI is 4K. If record length is larger(>1K), chose 6K or 8K. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">FREESPACE should be large if more number of insertions are envisaged. Usual values are (20 20) when heavy updates are expected. CI size can be calculated.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">9.Would you specify FREESPACE for an ESDS?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">No. Because you cannot insert records in an ESDS, also when you rewrite a record, it must be of the same length. Thus putting any value for freespace does not make any sense.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">10.What is SHAREOPTS ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">SHAREOPTS is a parameter in the DEFINE and specifies how an object can be shared among users. It is coded as SHAREOPTS(a b), where a is the cross region share option ie how two or more jobs on a single system can share the file, while b is the cross system share option ie how two or more jobs on different MVSes can share the file. Usual value is (2 3).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">11.What is the meaning of each of the values in SHAREOPTS(2 3)?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Value of 2 for cross region means that the file can be processed simultaneously by multiple users provided only one of them is an updater. Value of 3 for cross system means that any number of jobs can process the file for input or output (VSAM does nothing to ensure integrity).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">12.How do you define a KSDS ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DEFINE CLUSTER(cluster name) with the INDEXED parameter. Also specify the ds name for the DATA component & the ds INDEX component. Other important parms are RECORDSIZE, KEYS, SHAREOPTIONS.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">13.How do you define an ALTINDX ? How do you use ALTINDXs in batch, CICS pgms ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DEFINE ALTERNATEINDEX. Important paramters are RELATE where you specify the base cluster name, KEYS, RECORDSIZE,SHAREOPTIONS,UNIQUEKEY(or NONUNIQUEKEY), DATA(ds name for the data component), INDEX(ds name for the index component).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Then DEFINE PATH. Important paramters are NAME (ds name for the path), PATHENTRY (ds name of the alternate index name), UPDATE(or NOUPDATE) which specifies whether an alt index is updated when a update to the base cluster takes place.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Then BLDINDEX. Parameters are INDATASET(ds name of base cluster), OUTDATASET(ds name of AIX).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Using alternate indexes in batch pgms:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">In the JCL, you must have DD stmts for the cluster and for the path(s). In the cobol pgm, SELECT .. ASSIGN TO ddname for base cluster RECORD KEY IS... ALTERNATE RECORD KEY IS..<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Using alternate indexes in CICS pgms:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">FCT entries must be created for both base cluster & the path. To read using the alternate index, use the dd name of the path in CICS file control commands.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">14.What happens when you open an empty VSAM file in a COBOL program for input?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">A VSAM file that has never contained a record is treated as unavailable. Attempting to open for input will fail. An empty file can be opened for output only. When you open for output, COBOL will write a dummy record to the file & then delete it out.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">15.How do you initialize a VSAM file before any operation? a VSAM with alternate index?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Can write a dummy program that just opens the file for output & then closes it. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">16.What does a file status of 02 on a VSAM indicate?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Duplicate alternate key . Happens on both input and output operation<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">17.How do you calculate record size of an alternate cluster?<span style=""> </span>Give your values for both unique and non-unique.</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Unique Case:<span style=""> </span>5 + ( alt-key-length + primary-key )<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Nonunique Case: 5 + ( alt-key-length + n * primary-key )<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><span style=""> </span><span style=""> </span>where n = # of duplicate records for the alternate key<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">???? Ramesh - can you explain ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">18.What is the difference between sequential files and ESDS files?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Sequential(QSAM) files can be created on tape while ESDS files cannot.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Also, you can have ALTINDEX for an ESDS while no such facility exists for QSAM files.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">19.How do you load a VSAM data set with records ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Using the<span style=""> </span>REPRO command. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">20.How do you define a GDG ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Use the DEFINE GENERATIONDATAGROUP command. In the same IDCAMS step, another dataset must be defined whose DCB parameters are used when new generations of the GDG are created. This dataset is known as the model dataset. The ds name of this model dataset must be the same as that of the GDG, so use a disp of keep rather than catlg and also specify space=(trk,0)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">21.Do all versions of the GDG have to be of the same record length ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">No,<span style=""> </span>the DCB of the model dataset can be overridden when you allocate new versions.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">22.How are different versions of GDG named ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">base-file-name.GnnnnnV00 where nnnn= generation number (upto 255).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">nnnn will be 0000 for the 1st generation.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">23.Suppose 3 generations of a GDG exist. How would you reference the<span style=""> </span>1 st generation in the JCL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use GDG name(-2).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">24.Suppose a generation of GDG gets created<span style=""> </span>in a particular step of a proc. How would you refer the current<span style=""> </span>generation in a subsequent step? What would be the disposition of<span style=""> </span>this generation now? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Relative generation numbers are updated only at the end of the job, not at the end of a step. To allocate a new generation, we would be using (+1) with a DISP of<span style=""> </span>(NEW,CATLG,DELETE). To refer to this in a subsequent step in the same job, we would again use (+1) but with a DISP of SHR or OLD.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">25.What more info you should give in the DD statement while defining the next generation of a GDG? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Give (+1) as the generation number, give (new,catlg) for disp, give space parameter, can give the dcb parameter if you want to override the dcb of the model dataset.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">26.Assuming that the DEFINE jcl is not available, how do you get info about a VSAM file's organisation ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Use the LISTCAT command.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">27.During processing of a VSAM file, some system error occurs and it is subsequently unusable . What do you do ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Run VERIFY. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 14pt; font-family: "Courier New";">JCL</span></b><b><span style="font-family: "Courier New";"><o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">1.What is primary allocation for a dataset?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">The space allocated when the dataset is first created.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">2.What is the difference between primary and secondary allocations for a dataset?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Secondary allocation is done when more space is required than what has already been allocated. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">3.How many extents are possible for a sequential file ? For a VSAM file?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">16 extents on a volume for a sequential file and 123 for a VSAM file.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">4.What does a disposition of (NEW,CATLG,DELETE) mean? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">That this is a new dataset and needs to be allocated,<span style=""> </span>to CATLG the dataset if the step is successful and to delete the dataset if the step abends.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">5.What does a disposition of (NEW,CATLG,KEEP) mean? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">That this is<span style=""> </span>a new dataset and needs to be allocated, to CATLG the dataset if the step is successful and to KEEP but not CATLG the dataset if the step abends. Thus if the step abends, the dataset would not be catalogued and we would need to supply the vol. ser the next time we refer to it.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">6.How do you access a file that had a disposition of KEEP? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Need to supply volume serial no. VOL=SER=xxxx.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">7.What does a disposition of (MOD,DELETE,DELETE) mean ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">The MOD will cause the dataset to be created (if it does not exist),<span style=""> </span>and then the two DELETEs will cause the dataset to be deleted whether the step abends or not. This disposition is used to clear out a dataset at the beginning of a job. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">8.What is the DD statement for a output file?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Unless allocated earlier, will have the foll parameters:<span style=""> </span>DISP=(NEW,CATLG,DELETE), UNIT , SPACE & DCB .<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">9.What do you do if you do not want to keep all the space allocated to a dataset? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Specify the parameter<span style=""> </span>RLSE ( release ) in the SPACE e.g. SPACE=(CYL,(50,50),RLSE)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">10.What is DISP=(NEW,PASS,DELETE)?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">This is a new file and create it, if the step terminates normally, pass it to the subsequent steps and if step abends, delete it.<span style=""> </span>This dataset will not exist beyond the JCL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">11.How do you create a temporary dataset?<span style=""> </span>Where will you use them?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Temporary datasets can be created either by not specifying any DSNAME or by specifying the temporary file indicator as in DSN=&&TEMP. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">We use them to carry the output of one step to another step in the same job. The dataset will not be retained once the job completes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">12.How do you restart a proc from a particular step? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">In job card, specify RESTART=procstep.stepname<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">where procstep = name of the jcl step that invoked the proc <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">and stepname = name of the proc step where you want execution to start<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">13.How do you skip a particular step in a proc/JOB? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Can use either condition codes or use the jcl control statement IF (only in ESA JCL)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">14.A PROC has five steps.<span style=""> </span>Step 3 has a condition code.<span style=""> </span>How can you override/nullify this condition code? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Provide the override on the EXEC stmt in the JCL as follows:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">//STEP001 EXEC procname,COND.stepname=value<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">All parameters on an EXEC stmt in the proc such as COND, PARM have to be overridden like this.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">15.How do you override a specific DDNAME/SYSIN in PROC from a JCL?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">//<stepname.dd><span style=""> </span>DSN=...<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">16.What is NOTCAT 2 - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">This is an MVS message indicating that a duplicate catalog entry exists. E.g., if you already have a dataset with dsn = 'xxxx.yyyy' and u try to create one with disp new,catlg, you would get this error. the program open and write would go through and at the end of the step the system would try to put it in the system catalog. at this point since an entry already exists the catlg would fail and give this message. you can fix the problem by deleting/uncataloging the first data set and going to the volume where the new dataset exists(this info is in the msglog of the job) and cataloging it.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">17.What is 'S0C7' abend? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Caused by invalid data in a numeric field.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">18.What is a S0C4 error ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Storage violation error - can be due to various reasons. e.g.: READING a file that is not open, invalid address referenced due to subscript error.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">19.What are SD37, SB37, SE37 abends?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">All indicate dataset out of space. SD37 - no secondary allocation was specified. SB37 - end of vol. and no further volumes specified.<span style=""> </span>SE37 - Max. of 16 extents already allocated.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">20.What is S322 abend ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Indicates a time out abend. Your program has taken more CPU time than the default limit for the job class. Could indicate an infinite loop.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">21.Why do you want to specify the REGION parameter in a JCL step? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">To override the REGION defined at the JOB card level.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">REGION specifies the max region size. REGION=0K or 0M or omitting REGION means no limit will be applied.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">22.What does the TIME parameter signify ? What does TIME=1440 mean ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">TIME parameter can be used to overcome S322 abends for programs that genuinely need more CPU time. TIME=1440 means no CPU time limit is to be applied to this step.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">23.What is COND=EVEN ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Means execute this step even if any of the previous steps, terminated abnormally.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">24.What is COND=ONLY ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Means execute this step only if any of the previous steps, terminated abnormally.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">25.How do you check the syntax of a JCL without running it?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">TYPERUN=SCAN on the JOB card or use JSCAN.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">26.What does IEBGENER do?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Used to copy one QSAM file to another. Source dataset should be described using SYSUT1 ddname. Destination dataset should be decribed using SYSUT2. IEBGENR can also do some reformatting of data by supplying control cards via SYSIN.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">27.How do you send the output of a COBOL program to a member of<span style=""> </span>a PDS?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Code the DSN as pds(member) with a DISP of SHR. The disp applies to the pds and not to a specific member.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">28.I have multiple jobs ( JCLs with several JOB cards ) in a member.<span style=""> </span>What happens if I submit it?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Multiple jobs are submitted (as many jobs as the number of JOB cards). <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">29.I have a COBOL program that ACCEPTs some input data.<span style=""> </span>How do you code the JCL statment for this? ( How do you code instream data in a JCL? )</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">//SYSIN DD*<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">input data<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">input data<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">/*<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">30.Can you code instream data in a PROC ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">31. How do you overcome this limitation ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">One way is to code SYSIN DD DUMMY in the PROC, and then override this from the JCL with instream data.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">32.How do you run a COBOL batch program from a JCL?<span style=""> </span>How do you run a COBOL/DB2 program?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">To run a non DB2 program,<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">//STEP001 EXEC PGM=MYPROG<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">To run a DB2 program,<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">//STEP001 EXEC PGM=IKJEFT01<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">//SYSTSIN DD *<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">DSN SYSTEM(....)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">RUN PROGRAM(MYPROG)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">PLAN(.....)<span style=""> </span>LIB(....)<span style=""> </span>PARMS(...)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">/*<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">33.What is STEPLIB, JOBLIB?<span style=""> </span>What is it used for? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Specifies that the private library (or libraries) specified should be searched before the default system libraries in order to locate a program to be executed.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">STEPLIB applies only to the particular step, JOBLIB to all steps in the job.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">34.What is order of searching of the libraries in a JCL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">First any private libraries as specified in the STEPLIB or JOBLIB, then the system libraries such as SYS1.LINKLIB. The system libraries are specified in the linklist. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">35.What happens if both JOBLIB & STEPLIB is specified ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">JOBLIB is ignored.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">36.When you specify mutiple datasets in a JOBLIB or STEPLIB, what factor determines the order? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">The library with the largest block size should be the first one.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">37.How to change default proclib ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">//ABCD<span style=""> </span>JCLLIB ORDER=(ME.MYPROCLIB,SYS1.PROCLIB)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><b><span style="font-family: "Courier New";">38.The disp in the JCL is MOD and the<span style=""> </span>program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Records will be written to end of file (append) when a WRITE is done in both cases.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><b><span style="font-family: "Courier New";">39.What are the valid DSORG values ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">PS - QSAM, PO - Partitioned, IS - ISAM<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">40.What are the differences between JES2 & JES3 ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-family: "Courier New";">JES3 allocates datasets for all the steps before the job is scheduled. In JES2, allocation of datasets required by a step are done only just before the step executes. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-family: "Courier New";">????? Can anyone add more<o:p></o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <h1>DB2</h1> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">1.How would you find out the total number of rows in a table? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use SELECT COUNT(*) ...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">2.How do you eliminate duplicate values in SELECT? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use SELECT DISTINCT ...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">3.How do you select a row using indexes? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Specify the indexed columns in the WHERE clause.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">4.What are aggregate functions?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Bulit-in mathematical functions for use in SELECT clause.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">5.How do you find the maximum value in a column? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use SELECT MAX(...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">6.Can you use MAX on a CHAR column?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">YES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">7.My SQL statement SELECT AVG(SALARY) FROM EMP yields inaccurate results. Why?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Because SALARY is not declared to have NULLs and the employees for whom the salary is not known are also counted.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">8.How do you retrieve the first 5 characters of FIRSTNAME column of EMP table?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SELECT SUBSTR(FIRSTNAME,1,5) FROM EMP;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">9.How do you concatenate the FIRSTNAME and LASTNAME from EMP table to give a complete name?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SELECT FIRSTNAME || ' ' || LASTNAME FROM EMP;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">10.What is the use of VALUE function?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">1. Avoid -ve SQLCODEs by handling nulls and zeroes in computations<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">2. Substitute a numeric value for any nulls used in computation<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">11.What is UNION,UNION ALL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">UNION : <span style=""> </span>eliminates duplicates<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">UNION ALL: <span style=""> </span>retains duplicates<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Both these are used to combine the results of different SELECT statements.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">12.Suppose I have five SQL SELECT statements connected by UNION/UNION ALL, how many times should I specify UNION to eliminate the duplicate rows? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Once.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">13.What is the restriction on using UNION in embedded SQL?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">It has to be in a CURSOR.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">14.In the WHERE clause what is BETWEEN and IN? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">BETWEEN supplies a range of values while IN supplies a list of values.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">15.Is BETWEEN inclusive of the range values specified? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">16.What is 'LIKE' used for in WHERE clause? What are the wildcard characters? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">LIKE is used for partial string matches.<span style=""> </span>'%' ( for a string of any character ) and '_' (for any single character ) are the two wild card characters.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">17.When do you use a LIKE statement?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">To do partial search e.g. to search employee by name, you need not specify the complete name; using LIKE, you can search for partial string matches.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">18.What is the meaning of underscore ( '_' ) in the LIKE statement? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Match for any single character.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">19.What do you accomplish by GROUP BY ... HAVING clause? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">GROUP BY partitions the selected rows on the distinct values of the column on which you group by.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">HAVING selects GROUPs which match the criteria specified<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">20.Consider the employee table with column PROJECT nullable.<span style=""> </span>How can you get a list of employees who are not assigned to any project?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SELECT EMPNO <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">FROM EMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">WHERE PROJECT IS NULL;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">21.What is the result of this query if no rows are selected:<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">SELECT SUM(SALARY)<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">FROM EMP<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">WHERE QUAL='MSC';</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">NULL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">22.Why SELECT * is not preferred in embedded SQL programs?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">For<span style=""> </span>three reasons:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: "Courier New";">If the table structure is changed ( a field is added ), the program will have to be modified<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: "Courier New";">Program might retrieve the columns which it might not use, leading on I/O over head.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: "Courier New";">The chance of an index only scan is lost.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">.What are correlated subqueries? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">A subquery in which the inner ( nested ) query refers back to the table in the outer query. Correlated subqueries must be evaluated for each qualified row of the outer query that is referred to.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">23.What are the issues related with correlated subqueries? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">24.What is a cursor? why should it be used? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Cursor is a programming device that allows the SELECT to find a set of rows but return them one at a time.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Cursor should be used because the host language can deal with only one row at a time.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">25.How would you retrieve rows from a DB2 table in embedded SQL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Either by using the single row SELECT statements,or by using the CURSOR.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">26.Apart from cursor, what other ways are available to you to retrieve a row from a table in embedded SQL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Single row SELECTs.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">27.Where would you specify the DECLARE CURSOR statement? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">See answer to next question.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">28.How do you specify and use a cursor in a COBOL program? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use DECLARE CURSOR statement either in working storage or in procedure division(before open cursor), to specify the SELECT statement.<span style=""> </span>Then use OPEN, FETCH rows in a loop and finally CLOSE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">29.What happens when you say OPEN CURSOR?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">If there is an ORDER BY clause, rows are fetched, sorted and made available for the FETCH statement.<span style=""> </span>Other wise simply the cursor is placed on the first row.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">30.Is DECLARE CURSOR executable?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">31.Can you have more than one cursor open at any one time in a program ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">32.When you COMMIT, is the cursor closed?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">33.How do you leave the cursor open after issuing a COMMIT?<span style=""> </span>( for DB2 2.3 or above only )</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use WITH HOLD option in DECLARE CURSOR statement.<span style=""> </span>But, it has not effect in psuedo-conversational CICS programs.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">34.Give the COBOL definition of a VARCHAR field.</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">A VARCHAR column REMARKS would be defined as follows:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">...<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">10 REMARKS.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>49 REMARKS-LEN<span style=""> </span>PIC S9(4) USAGE COMP.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>49 REMARKS-TEXT<span style=""> </span>PIC X(1920).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">35.What is the physical storage length of each of the following DB2 data types: <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";"><span style=""> </span>DATE, TIME, TIMESTAMP?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DATE: <span style=""> </span>4bytes<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">TIME: <span style=""> </span>3bytes<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">TIMESTAMP: <span style=""> </span>10bytes<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">36.What is the COBOL picture clause of the following DB2 data types:<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";"><span style=""> </span>DATE, TIME, TIMESTAMP?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DATE: <span style=""> </span>PIC X(10)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">TIME : <span style=""> </span>PIC X(08)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">TIMESTAMP: <span style=""> </span>PIC X(26)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">37.What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PIC S9(9)V99 COMP-3.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Note: In DECIMAL(11,2), 11 indicates the size of the data type and 2 indicates the precision.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">38.What is DCLGEN ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DeCLarations GENerator: used to create the host language copy books for the table definitions. Also creates the DECLARE table.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">39.What are the contents of a DCLGEN? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">1. EXEC SQL DECLARE TABLE statement which gives the layout of the table/view in terms of DB2 datatypes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">2. A host language copy book that gives the host variable definitions for the column names.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">40.Is it mandatory to use DCLGEN? If not, why would you use it at all? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">It is not mandatory to use DCLGEN. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Using DCLGEN, helps detect wrongly spelt column names etc. during the pre-compile stage itself ( because of the DECLARE TABLE ).<span style=""> </span>DCLGEN being a tool, would generate accurate host variable definitions for the table reducing chances of error.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">41.Is DECLARE TABLE in DCLGEN necessary? Why it used?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">It not necessary to have DECLARE TABLE statement in DCLGEN.<span style=""> </span>This is used by the pre-compiler to validate the table-name, view-name, column name etc., during pre-compile.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">42.Will precompile of an DB2-COBOL program bomb, if DB2 is down?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No.<span style=""> </span>Because the precompiler does not refer to the DB2 catalogue tables.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">43.How is a typical DB2 batch pgm executed ?</span></b><span style="font-family: "Courier New";"> <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">1. Use DSN utility to run a DB2 batch program from native TSO.<span style=""> </span>An example is shown:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">DSN SYSTEM(DSP3)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>RUN PROGRAM(EDD470BD) PLAN(EDD470BD) LIB('EDGS01T.OBJ.LOADLIB')<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">END<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">2. Use IKJEFT01 utility program to run the above DSN command in a JCL. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">44.Assuming that a site's standard is that pgm name = plan name, what is the easiest way to find out which pgms are affected by change in a table's structure ?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Query the catalogue tables SYSPLANDEP and SYSPACKDEP.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">45.Name some fields from SQLCA.</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SQLCODE, SQLERRM, SQLERRD<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">46.How can you quickly find out the # of rows updated after an update statement?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Check the value stored in SQLERRD(3).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">47.What is EXPLAIN? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">EXPLAIN is used to display the access path as determined by the optimizer for a SQL statement.<span style=""> </span>It can be used in SPUFI (for single SQL statement ) or in BIND step (for embedded SQL ).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">48.What do you need to do before you do EXPLAIN?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Make sure that the PLAN_TABLE is created under the AUTHID.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">49.Where is the output of EXPLAIN stored? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">In userid.PLAN_TABLE <span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">50.EXPLAIN has output with MATCHCOLS = 0.<span style=""> </span>What does it mean? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">a nonmatching index scan if ACCESSTYPE = I.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">51.How do you do the EXPLAIN of a dynamic SQL statement?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">1. Use SPUFI or QMF to EXPLAIN the dynamic SQL statement<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">2. Include EXPLAIN command in the embedded dynamic SQL statements<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">52.How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause.)</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Use a question mark in place of a host variable ( or an unknown value ). e.g.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">SELECT EMP_NAME<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">FROM EMP<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">WHERE EMP_SALARY > ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">53.What are the isolation levels possible ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">CS:<span style=""> </span>Cursor Stability<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">RR:<span style=""> </span>Repeatable Read<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">54.What is the difference between CS and RR isolation levels?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">CS:<span style=""> </span>Releases the lock on a page after use<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">RR:<span style=""> </span>Retains all locks acquired till end of transaction<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">55.Where do you specify them ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">ISOLATION LEVEL is a parameter for the bind process.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">56.When do you specify the isolation level? How?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">During the BIND process.<span style=""> </span>ISOLATION ( CS/RR )...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">57.I use CS and update a page.<span style=""> </span>Will the lock be released after I am done with that page?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">58.What are the various locking levels available?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PAGE, TABLE, TABLESPACE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">59.How does DB2 determine what lock-size to use?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">1. Based on the lock-size given while creating the tablespace<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">2. Programmer can direct the DB2 what lock-size to use<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">3. If lock-size ANY is specified, DB2 usually choses a lock-size of PAGE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">60.What are the disadvantages of PAGE level lock?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Hig resource utilization if large updates are to be done<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">61.What is lock escalation?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Promoting a PAGE lock-size to table or tablespace lock-size when a transaction has aquired more locks than specified in NUMLKTS.<span style=""> </span>Locks should be taken on objects in single tablespace for escalation to occur.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">62.What are the various locks available?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SHARE, EXCLUSIVE, UPDATE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">63.Can I use LOCK TABLE on a view?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No.<span style=""> </span>To lock a view, take lock on the underlying tables.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">64.What is ALTER ? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SQL command used to change the definition of DB2 objects.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">65.What is a DBRM, PLAN ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DBRM: DataBase Request Module, has the SQL statements extracted from the host language program by<span style=""> </span>the pre-compiler.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PLAN: A result of the BIND process.<span style=""> </span>It has the executable code for the SQL statements in the DBRM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">66.What is ACQUIRE/RELEASE in BIND?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Determine the point at which DB2 acquires or releases locks against table and tablespaces, including intent locks.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">67.What else is there in the PLAN apart from the access path? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PLAN has the executable code for the SQL statements in the host program<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">68.What happens to the PLAN if index used by it is dropped?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Plan is marked as invalid. The next time the plan is accessed, it is rebound.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">69.What are PACKAGES ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">They contain executable code for SQL statements for one DBRM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">70.What are the advantages of using a PACKAGE?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">1. Avoid having to bind a large number of DBRM members into a plan<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">2. Avoid cost of a large bind<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">3. Avoid the entire transaction being unavailable during bind and automatic rebind of a plan<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">4. Minmize fallback complexities if changes result in an error.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">71.What is a collection?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">a user defined name that is the anchor for packages.<span style=""> </span>It has not physical existence.<span style=""> </span>Main usage is to group packages.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">72.In SPUFI suppose you want to select max. of 1000 rows , but the select returns only 200 rows. What are the 2 sqlcodes that are returned? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">100 ( for successful completion of the query ), 0 (for successful COMMIT<span style=""> </span>if AUTOCOMMIT is set to Yes).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">73.How would you print the output of an SQL statement from SPUFI? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Print the output dataset.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">74.How do you pull up a query which was previously saved in QMF ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">??<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">75.Lot of updates have been done on a table due to which indexes have gone haywire.<span style=""> </span>What do you do? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Looks like index page split has ocured.<span style=""> </span>DO a REORG of the indexes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">76.What is dynamic SQL? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Dynamic SQL is a SQL statement created at program execution time.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">77.When is the access path determined for dynamic SQL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">At run time, when the PREPARE statement is issued.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">78.Suppose I have a program which uses a dynamic SQL and it has been performing well till now.<span style=""> </span>Off late, I find that the performance has deteriorated.<span style=""> </span>What happened? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Probably RUN STATS is not done and the program is using a wrong index due to incorrect stats.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Probably RUNSTATS is done and optimizer has chosen a wrong access path based on the latest statistics.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">79.How does DB2 store NULL physically?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">as an extra-byte prefix to the column value. physically, the nul prefix is Hex '00' if the value is present and Hex 'FF' if it is not.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">80.How do you retrieve the data from a nullable column? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use null indicators. Syntax ... INTO :HOSTVAR:NULLIND<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">81.What is the picture clause of the null indicator variable? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">S9(4) COMP.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">82.What does it mean<span style=""> </span>if the null indicator has -1, 0, -2? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">-1<span style=""> </span>: the field is null<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">0 <span style=""> </span>: the field is not null<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">-2<span style=""> </span>: the field value is truncated<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">83.How do you insert a record with a nullable column?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">To insert a NULL, move -1 to the null indicator<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">To insert a valid value, move 0 to the null indicator<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">84.What is RUNSTATS? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">A DB2 utility used to collect statistics about the data values in tables which can be used by the optimizer to decide the access path. It also collects statistics used for space management.<span style=""> </span>These statistics are stored in DB2 catalog tables.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">85.When will you chose to run<span style=""> </span>RUNSTATS?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">After a load, or after mass updates, inserts, deletes, or after REORG.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">86.Give some example of statistics collected during RUNSTATS?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"># of rows in the table<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Percent of rows in clustering sequence<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"># of distinct values of indexed column<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">#<span style=""> </span>of rows moved to a nearby/farway page due to row length increase<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">87.What is REORG?<span style=""> </span>When is it used?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">REORG reorganizes data on physical storage to reclu<u><span style="color: blue;">t</span></u>ser rows, positioning oveflowed rows in their proper sequence, to reclaim space, to restore free space.<span style=""> </span>It is used after heavy updates, inserts and delete activity and after segments of a segmented tablespace have become fragemented.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">88.What is IMAGECOPY ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">It is full backup of a DB2 table which can be used in recovery.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">89.When do you use the IMAGECOPY? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">To take routine backup of tables<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">After a LOAD with LOG NO<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><u><span style="font-family: "Courier New"; color: blue;">After REORG with LOG NO<o:p></o:p></span></u></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">90.What is COPY PENDING status?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">A state in which, an image copy on a table needs to be taken,<span style=""> </span>In this status, the table is available only for queries.<span style=""> </span>You cannot update this table.<span style=""> </span>To remove the COPY PENDING status, you take an image copy or use REPAIR utility.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">91.What is CHECK PENDING ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">When a table is LOADed with ENFORCE NO option, then the table is left in CHECK PENDING status.<span style=""> </span>It means that the LOAD utility did not perform constraint checking.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">92.What is QUIESCE?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">A QUIESCE flushes all DB2 buffers on to the disk. This gives a correct snapshot of the database and should be used before and after any IMAGECOPY to maintain consistency.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">93.What is a clustering index ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Causes the data rows to be stored in the order specified in the index. A mandatory index defined on a partitioned table space.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">94.How many clustering indexes can be defined for a table?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Only one.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">95.What is the difference between primary key & unique index ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Primary : a relational database constraint.<span style=""> </span>Primary key consists of one or more columns that uniquely identify a row in the table.<span style=""> </span>For a normalized relation, there is on<u><span style="color: blue;">e</span></u> designated primary key.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Unique index: a physical object that stores only unique values.<span style=""> </span>There can be one or more unique indexes on a table.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">96.What is sqlcode -922 ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Authorization failure<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">97.What is sqlcode -811?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SELECT statement has resulted in retrieval of more than one row.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">98.What does the sqlcode of -818 pertain to? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">This is generated when the consistency tokens in the DBRM and the load module are different.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">99.Are views updatable ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Not all of them.<span style=""> </span>Some views are updatable e.g. single table view with all the fields or mandatory fields. Examples of non-updatable views are views which are joins, views that contain aggregate functions(such as MIN), and views that have GROUP BY clause.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">100.If I have a view which is a join of two or more tables, can this view be updatable? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">101.What are the 4 environments which can access DB2 ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">TSO, CICS, IMS and BATCH<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">102.What is<span style=""> </span>an inner join, and an outer join ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Inner Join:<span style=""> </span>combine information from two or more tables by comparing all values that meet the search criteria in hte designated column or columns of on etable with all the calues in corresponding columns of the other table or tables.<span style=""> </span>This kind of join which involve a match in both columns are called inner joins.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Outer join is one in which you want both matching and non matching rows to be returned. DB2 has no specific operator for outer joins, it can be simulated by combining a join and a correlated sub query with a UNION.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">103.What is FREEPAGE and PCTFREE in TABLESPACE creation?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PCTFREE: percentage of each page to be left free <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">FREEPAGE: Number of pages to be loaded with data between each free page<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">104.What are simple, segmented and<span style=""> </span>partitioned table spaces ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Simple Tablespace:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Can contain one or more tables<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Rows from multiple tables can be interleaved on a page under the DBAs control and maintenance<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Segmented Tablespace: <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Can contain one or more tables<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Tablespace is divided into segments of 4 to 64 pages in increments of 4 pages.<span style=""> </span>Each segment is dedicated to single table.<span style=""> </span>A table can occupy multiple segments<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Partitioned Tablespace:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Can contain one table<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Tablespace is divided into parts and each part is put in a separate VSAM dataset.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">105.What is filter factor?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">one divided by the number of distinct values of a column.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">106.What is index cardinality? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">The number of distinct values a column or columns contain.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">107.What is a synonym ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Synonym is an alternate name for a table or view used mainly to hide the leading qualifier of a table or view.. A synonym is accessible only by the creator.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">108.What is the difference between SYNONYM and ALIAS?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SYNONYM: is dropped when the table or tablespace is dropped. Synonym is available only to the creator.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">ALIAS: is retained even if table or tablespace is dropped.<span style=""> </span>ALIAS can be created even if the table does not exist.<span style=""> </span>It is used mainly in distributed environment to hide the location info from programs. Alias is a global object & is available to all.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">109.What do you mean by NOT NULL WITH DEFAULT?<span style=""> </span>When will you use it?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">This column cannot have nulls and while insertion, if no value is supplied then it wil have zeroes, spaces or date/time depending on whether it is numeric, character or date/time.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use it when you do not want to have nulls but at the same time cannot give values all the time you insert this row.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">110.What do you mean by NOT NULL?<span style=""> </span>When will you use it?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">The column cannot have nulls.<span style=""> </span>Use it for key fields.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">111.When would you prefer to use VARCHAR?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">When a column which contains long text, e.g. remarks, notes, may have in most cases less than 50% of the maximum length.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">112.What are the disadvantages of using VARCHAR?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">1. Can lead to high space utilization if most of the values are close to maimum.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">2. Positioning of VARCHAR column has to be done carefully as it has performance implications.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">3. Relocation of rows to different pages can lead to more I/Os on retrieval.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">113.How do I create a table MANAGER ( EMP#, MANAGER) where MANAGER is a foreign key which references to EMP# in the same table?<span style=""> </span>Give the exact DDL.</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">First CREATE MANAGER table with EMP# as the primary key.<span style=""> </span>Then ALTER it to define the foreign key.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">114.When is the authorization check on DB2 objects done - at BIND time or run time?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">At run time.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">115.What is auditing?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Recording SQL statements that access a table.<span style=""> </span>Specified at table creation time or thru alter.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 14pt; font-family: "Courier New";">CICS</span></b><b><span style="font-family: "Courier New";"><o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">1.How do you place the cursor on a particular position on the screen? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Move -1 to the length attribute of the field and use the CURSOR option. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Define the field with IC in the BMS map.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use CURSOR(n m)??<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">2.What are the two outputs<span style=""> </span>created as a result of generation of a map? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">The map copybook and the load module.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">3.What is the difference between physical map and symbolic map? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">The physical map is the load module and the symbolic map is the data structure.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">4.How do you protect a field from being overlaid? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">5.What is the attribute byte? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Defines the display/transmission of field. most cases is an output field from the program.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">6.How do you use extended attributes ?</span></b><span style="font-family: "Courier New";"> <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Define EXTATT=YES and the correct terminal type.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">7.What are the 3 working storage fields used for every field on the map? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Length, attribute and input/output field.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">8.What is MDT? What are FSET, FRSET ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Modified Data Tag. Bit in the attribute byte indicating modification of field on screen. Happens on an input operation. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">FSET. Sets MDT on to ensure field is transmitted. Happens on an output operation.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">FRSET. Resets MDT. Until this happens, field continues to be sent.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">9.What is the use of DSECT parameter in BMS?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Is the parameter to generate a symbolic map.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">10.Do you receive the attribute byte in the symbolic map?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">On EOF yes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">11.How do you make your BMS maps case sensitive?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Use ASIS???<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">12.What is effect on RECEIVE MAP when<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: "Courier New";">PF key is pressed? Data transmission may happen,<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: "Courier New";">PA key is pressed? Data transmission will not happen.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">13.What are SEND MAP MAPONLY & SEND MAP DATAONLY ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">14.What is the difference between a PF key & a PA key ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PF keys wake up the task and transmit modified data, PA keys only wake up the task.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">15.Name the macros used to define the following:</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">MAP<span style=""> </span>MAPSET <span style=""> </span>FIELD<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DFHMSD<span style=""> </span>DFHMDI<span style=""> </span>DFHMDF<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">16.Can you use OCCURS in a BMS map?<span style=""> </span>If you do, what are the issues related with its use?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes. cannot use group by clause???<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">17.Can you define multiple maps in a BMS mapset?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">18.How is the storage determined in the symbolic map, if you have multiple maps?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Storage for maps redefine the first. This means largest map has to be the first.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">19.What is the meaning of BMS length of field = 0?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Data was not entered in the field<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">20.Can you simply check if length = 0 for checking if a field was modified?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No, not if ERASE EOF was used.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">21.What do you do if you do not want characters entered by the user to be folded to uppercase ?</span></b><span style="font-family: "Courier New";"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use ASIS option on RECEIVE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">22.What does the BUFFER option in RECEIVE mean ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Brings the entire datastream from the terminal buffer.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">23.What are the steps you go through to a create a BMS executable?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Assemble to create CSECT and Link<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">24.When you compile a CICS program, the (pre)compiler puts an extra chunk of code.<span style=""> </span>Where does it get included and that is it called?</span></b><span style="font-family: "Courier New";"><span style=""> </span>What is its length? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DFHEIBLK, DFHCOMMAREA.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">25.List all the CICS tables and explain their contents. - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PPT<span style=""> </span>SIT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PCT<span style=""> </span>JCT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">FCT<span style=""> </span>SNT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DCT<span style=""> </span>SRT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">RCT<span style=""> </span>TCT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">26.I have written a CICS program.<span style=""> </span>What tables should I setup to run this program? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PPT, PCT, (FCT, DCT, RCT (if needed)).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">27.In which table would you make an entry for a BMS map? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PPT<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">28.What is the content of the PPT entry? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Length, Source, Use count, Lang, Res count DFHRPL number<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">29.For a CICS-DB2 program, how is the plan referenced? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Uses a RCT table.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">30.How is dynamic memory allocated within a CICS application program? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use a GETMAIN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">31.What are the restrictions while using GETMAIN and FREEMAIN? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">33.What is the use of a TDQ, TSQ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Temporary data stores.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">34.How do you read from a TSQ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Temp storage read command<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">35.If I create a TSQ from one transaction, can I read it from another transaction? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes. As long as they run in the same region.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">36.What are extra partition & intra partition TDQs?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Extra partition TDQs are datasets used for communication b'n CICS and other CICS/Batch regions. Intrapartition TDQs are queues for communication within regn.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">37.What is trigger level in the context of TDQs?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">For intrapartition TDQs specify the # records at which ATI happens. not applicable for extra partition TDQs.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">38.How do you fire a batch job from a CICS txn ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Define an extrapartition TDQ as an internal reader and write the JCL to it. Terminate the JCL with /*EOF.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">39.What is ATI? What kind of TDQ can be used?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Automatic Task Initiation. Intra partition TDQ.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">40.Do you require a table entry for a TSQ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">If recovery is needed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">41.Is there any entry for TSQs in CICS tables?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes in the DFHTST.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">42.What is the use of DCT?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Destination Control Table used to define TDQs<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">43.What is ENQ, DEQ ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Task control commands to make resources serially reusable.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">44.I have TSQ with 15 items.<span style=""> </span>I want to delete the 10th item.<span style=""> </span>How do I do that?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">45.Can you issue SQL COMMIT from a CICS program? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">46.What is the other way of terminating a transaction? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><span style=""> </span>EXEC CICS SYNCPOINT. Assuming it is a LUW. This will not end the Xn.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">47.What is an ASRA abend ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Any data exception problem SOC7, SOC4 etc.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">48.What is an AEY9 abend ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DB2/IDMS not up.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">49.What are the situations under which<span style=""> </span>NEWCOPY is required ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">When a program has been used in CICS atleast once and then changed and recompiled.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">50.What is 2 phase commit?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">51.What is EXEC CICS RETRIEVE ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Used by STARTed tasks to get the parameters passed to them.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">52.Name some important fields in the EIB block ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">EIBRESP, EIBCALEN, EIBRRCDE, EIBTASK, EIBDATE, EIBTIME<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">53.Can you use DYNAMIC calls in CICS ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Yes, the called routine must be defined in PPT and the calling program must use CALL identifier..<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">54.How do you handle errors in CICS pgms ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Check EIBRESP after the call or use the HANDLE condition.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">55.Suppose pgm A passes 30 bytes to pgm B thru commarea and pgm B has defined its DFHCOMMAREA to be 50 bytes . Is there a problem ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes, if B tries to access bytes 31-50.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><b><span style="font-family: "Courier New";">56.When an XCTL is done, does the tranid change ? Is a new task created ? Does it cause an implicit SYNCPOINT to be issued ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";">No, No, Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">57.How do you execute a background CICS txn ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">With a START or ATI.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">58.Can a CICS region be attached to more than one DB2 subsystem ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">59.What determines the DB2 subsystem to which a particular CICS region is attached ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">60.What is the DSNC transaction used for ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">61.How do you handle error in a CICS program?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Same as 36.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">62.What is the difference between START and XCTL ?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">START is used to start a new task. It is a interval control command. XCTL is used to pass control to a program within the same task. It is a program control command.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">63.What is the usage of language in the PPT entry?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Language interface and call parameters???<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">64.Can you have CICS code in a copybook?<span style=""> </span>If yes, what happens during compilation?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes. Needs to be preprocessed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">65.What is an AICA abend?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Runaway Task.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">66.How would you resolve an ASRA abend?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">In COBOL II start with CEBR, and get the offset/instruction.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">67.I invoke a transaction from CICS.<span style=""> </span>The program has a code: MOVE DFHCOMMAREA TO WS-AREA.<span style=""> </span>What happens to this transaction?<span style=""> </span>What happens to the other transactions?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Junk may get moved in. Will cause Storage violation. ????<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">68.How do I find the name of the CICS region inside my COBOL program?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">69.When you do a START, what will the value of EIBCALEN?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Zero.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">70.How are VSAM files Read in CICS pgms? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">File Control Commands. Random, Sequential, forward and backward.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">71.How will you access a VSAM file using an alternate index?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Thru the path. Define path as an FCT and use normal File control commands.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">72.How do you rollback data written to an ESDS file?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Define the file as recoverable. in cases where records have been inserted into the file, you may need to run a batch program to logically delete the inserted records.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">73.I have done a START BROWSE on a VSAM dataset.<span style=""> </span>Can I do another START BROWSE without doing an END BROWSE?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">74.Can you access QSAM (seq ) files from CICS ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">75.Can you access ESDS files from CICS ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-13456214542935066062008-07-17T18:35:00.000-07:002008-12-23T21:45:21.640-08:00Introduction to DB2 Stored ProceduresWhen it comes to stored procedures, there seem to be three kinds of developers: those who love them, those who hate them, and those who don't really know what the heck they are. DBAs usually fall into the first category, coders in the second, scripters in the third (as a former scripter, I can say that). But in honor of all three, I'll go through a brief overview of stored procedures in general, including when and when not to use them. Then I'll introduce DB2's version. If you don't love them already, you will by the time we're done.<br />What is a Stored Procedure?<br />If a procedure is encapsulated logic that can be invoked from within your application, then a stored procedure is simply a procedure that is stored on the database server. Usually written in SQL, the stored procedure benefits from the power and proximity of the database from which it is managed.<br />If you've used a database at all in your applications, then you've most likely coded in SQL at some point. To turn it into a stored procedure, you can include it within a CREATE PROCEDURE statement. Technically, it would be a stored procedure and could thus be invoked from external applications. But the true power of the stored procedure comes from its control syntax and ability to process multiple statements. In other words, while you would rarely use a stored procedure for a single SELECT statement, you could add INSERT, UPDATE, and DELETE statements, all controlled with IF/ELSE logic, for example. Just about any database manipulation you're doing with your app code can be done within a stored procedure instead, with all of its inherent benefits.<br />When Do I Use Stored Procedures?<br />Coders might argue that you never really need a stored procedure. All of your database calls can be done programmatically. That's true, but somewhat limiting. Stored procedures can do a lot of things for you that even the most elegant code cannot.<br />Chief among these, stored procedures save processor time by allowing you to offload database calls to the database server itself. Most databases load the compiled procedures into memory the first time they're called, or even before, dramatically reducing overhead when you're doing the same essential process multiple times (such looping operations are very common in database manipulation).<br />Stored procedures offer you many other benefits, as well.<br /> They allow you to encapsulate code. In other words, the database operation appears once, in the stored procedure, not multiple times throughout your application source. This improves debugging as well as maintainability.<br /> Changes to the database schema affect your source code in only one place, the stored procedure. Any schema changes then become a DBA task rather than a wholesale code revision.<br /> Since the stored procedures reside on the server, you can set tighter security restrictions on the client space, saving more trusted database permissions for the well-protected stored procedures themselves.<br /> Since stored procedures are compiled and stored outside the application, they can use more sensitive variables within the SQL syntax, such as passwords or personal data, that you would avoid using in scripts or remote calls.<br /> Using stored procedures greatly reduces network traffic.<br />As a further illustration of this last point, suppose you want to update a customer record but you're not sure if the record even exists. One way is (a) to SELECT the record to see if the customer exists, (b) to UPDATE the record if it does, and (c) to INSERT a new record if it does not.<br />If you just put a series of SQL statements in your client code, each line is executed by sending a message over the network to the server, usually getting a response in return. But a stored procedure resides on the server. When called from the client application, it executes on the server and only has to respond when returning the final result set to the client, saving lots of back-and-forth traffic.<br />One other benefit you'll find with DB2 stored procedures in particular, the distinction of which will be explained in but a moment, is the Development Tooling support. The Enterprise edition of DB2 UDB (Universal Database) ships with a set of developer tools that allow for fast, reliable creation of stored procedures in both SQL and Java. Using the Wizards and Query Builders, you can create complex procedures without typing a word of code.<br /><br />DB2 Universal Database for Linux, UNIX and Windows- Download Now!<br />DB2 is the fastest growing database on UNIX and Windows. Judge for yourself -- get DB2 Version 8 via free download.<br /><br /><br />When Would I Not Use Stored Procedures?<br />Whole discussion boards have been devoted to the pro/con debate on stored procedures. But when it comes down to it, you have only a few occasions when it might not be possible or prudent to use them.<br /> You don't have the database permissions to create them. Or a cooperative DBA.<br /> You're only using a few SELECT statements in your application and can't really benefit from the performance and organizational boosts offered by stored procedures (though you might still profit from the other gifts of the stored procedure).<br /> Your organization is undergoing a major code migration and wants to avoid encapsulating your source in external procedures. However, this is debatable as well since you may actually benefit from the stability of SQL syntax.<br />What's Special About DB2's Stored Procedures?<br />DB2 expands on the definition of a stored procedure by allowing you to code them in just about any language you may need. DB2 gives you two different kinds of stored procedures: a SQL procedure, and an external procedure. In DB2, a stored procedure is a database object that encapsulates control-flow logic, a mini application really, that runs in a "stored procedure address space." Going back to the idea that a stored procedure is simply a chunk of compiled code, DB2 stored procedures can be written in your language of choice, compiled, then referenced with SQL syntax.<br />The major difference between a SQL procedure and an external procedure is that SQL procedures are, obviously, written in SQL. This means that the logic for the procedure is defined within the SQL procedure body itself. By contrast, external procedures identify, load, and run a unit of code written in an entirely different language. Early stored procedures were all essentially external, generally written in C. Nowadays, when we talk about stored procedures, most people think of SQL procedures which are written in easy to implement high-level SQL syntax. But DB2's external procedures provide a handy option for the codernauts and those wanting to implement more complex logic than SQL can support, using languages such as Visual Basic .NET, C, C++, C#, COBOL, Java, or REXX.<br />Huh?<br />How about an example?<br />The following external procedure demonstrates how Java can be used to control the logic of a database operation. If you haven't used stored procedures before, then this type of code might look familiar. It is essentially two SQL statements, one of which will be executed depending on a control-flow condition. The difference here, though, is that the "application" in this case is the stored procedure-body - the body in which the stored procedure functionality is defined.<br />/**<br /> * JDBC Stored Procedure ADMINISTRATOR.UPDATE_SAL<br /> */<br />package proc.useraccount;<br /><br />import java.sql.*; // JDBC classes<br /><br />public class MYJAVACLASS<br />{<br /> public static void UpdateSal (String [] empNum, Double rating )<br /> throws SQLException<br /> {<br /> int errorCode = 0;<br /> boolean bFlag;<br /> String sql;<br /> PreparedStatement stmt = null;<br /> <br /> try<br /> {<br /> Connection con = DriverManager.getConnection("jdbc:default:connection");<br /> <br /> if ( rating = 1 ) {<br /> sql = "UPDATE employee "<br /> + "SET salary = salary * 1.10, "<br /> + "bonus = 1500 "<br /> + "WHERE empno = '" + empNum + "'";<br /> }<br /> else {<br /> sql = "UPDATE employee "<br /> + "SET salary = salary * 1.05, "<br /> + "bonus = 1000 "<br /> + "WHERE empno = '" + empNum + "'";<br /> }<br /> stmt = con.prepareStatement( sql );<br /> bFlag = stmt.execute(); <br /> } <br /> catch ( SQLException sqle)<br /> {<br /> errorCode = sqle.getErrorCode();<br /> throw new SQLException ( errorCode + " : " + errorLabel + " FAILED" );<br /> }<br />}<br />If you're using the DB2 Development Center tooling, then once the procedure is created, the following chunk of code is automatically generated by DB2. It creates a handle for the above procedure in the database. When you call this procedure from your application, the above code is then looked up, identified, found, and run by DB2.<br />CREATE PROCEDURE ADMINISTRATOR.UPDATE_SAL<br /> ( IN empNum CHAR(6), IN rating SmallInt )<br /> SPECIFIC ADMINISTRATOR.UPDATE_SAL<br /> DYNAMIC RESULT SETS 0<br /> NOT DETERMINISTIC<br /> LANGUAGE JAVA<br /> PARAMETER STYLE JAVA<br /> EXTERNAL NAME 'MyJavaClass.UpdateSal'<br /> FENCED<br /> THREADSAFE<br />For comparison, here is the same basic operation written as a SQL procedure. You'll see that the UPDATE statement remains the same, but control flow operations are now managed by SQL syntax included in the CREATE PROCEDURE statement itself.<br />CREATE PROCEDURE ADMINISTRATOR.UPDATE_SAL<br /> (IN empNum CHAR(6), IN rating SMALLINT)<br /> LANGUAGE SQL<br /> BEGIN<br /> IF rating = 1 THEN<br /> UPDATE employee<br /> SET salary = salary * 1.10,<br /> bonus = 1500<br /> WHERE empno = empNum;<br /> ELSE<br /> UPDATE employee<br /> SET salary = salary * 1.05,<br /> bonus = 1000<br /> WHERE empno = empNum;<br /> END IF;<br /> END<br />Once your stored procedure has been successfully created and you have the privileges to invoke it (you will have these by default if you are the creator) then the procedure can be called.<br />As you can see, SQL procedures give you an easy-to-use syntax for handling multiple statements and control flow within the procedure itself. External procedures give you the power and flexibility of using your language of choice, opening up all new possibilities for straight coders and DBAs alike.<br />How Do I Use Stored Procedures in my Application?<br />Just as your favorite language has a way to talk to your database, it also has a way to invoke your database's stored procedures. Below is some C# which invokes the above example. In fact, because of the uniform interface of DB2 stored procedures, this code could be used with either example since they have the same parameter list.<br />For this snippet, imagine a form with an "Employee Number" textbox that supplies the IN parameter for the procedure.<br />conn = new DB2eConnection(connString);<br />conn.Open();<br />DB2eParameter p1 =<br /> new DB2eParameter("@p1", DB2eType.Char,6);<br />p1.Value = txtEmpNum.Text;<br />DB2eParameter p2 =<br /> new DB2eParameter("@p2", DB2eType.SmallInt);<br />p2.Value = 1;<br />DB2eCommand cmd =<br /> new DB2eCommand("ADMINISTRATOR.UPDATE_SAL", conn);<br />cmd.CommandType = CommandType.StoredProcedure;<br />cmd.Parameters.Add(p1);<br />cmd.Parameters.Add(p2);<br />DB2eDataReader reader = cmd.ExecuteReader();<br />How Do I Get Started?<br />As mentioned earlier, DB2 makes it easy to create stored procedures by giving you not one but two different wizards, one for SQL procedures and one for Java procedures. These can both be found in the DB2 Development Center. In creating your stored procedures, you can either code them directly or use a Query Builder to help you assemble them without coding a single command.<br />In addition to this portal, you have several resources available for learning more. One excellent tutorial shows you the basics of creating a stored procedure, then using it with Visual Studio .NET: "Build and access DB2 stored procedures using mobile clients".<br />If you run into trouble, you can find extensive help in the DB2 Information Center: Stored Procedures.<br />Also be sure to check out "IBM DB2 Development Add-Ins for Visual Studio .Net" for more detailed information on DB2's integration with VS.NET which allows you to make DB2 stored procedures right within Visual Studio.<br />And of course, you'll want to download DB2 itself, if you haven't already. Look for DB2 Universal Database, Enterprise Edition v8.2. Or perhaps you'd prefer to tinker with the beta to the 64-bit version, DB2 UDB V8.2.2 Beta, which supports the tech preview of Windows Server 2003 x64 Edition.Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com1tag:blogger.com,1999:blog-5814946362392002119.post-35064699016888203682008-07-17T23:05:00.001-07:002008-12-23T21:45:21.640-08:00JCL QUESTIONS AND ANSWERS<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0; mso-font-charset:2; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:0 268435456 0 0 -2147483648 0;} @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:windowtext; mso-fareast-language:EN-US;} h1 {mso-style-next:Normal; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.25in; margin-bottom:.0001pt; text-indent:-.25in; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:1; mso-list:l4 level1 lfo14; tab-stops:list .25in; font-size:16.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:windowtext; mso-font-kerning:0pt; mso-fareast-language:EN-US; font-weight:bold; text-decoration:underline; text-underline:single;} h2 {mso-style-next:Normal; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.55in; margin-bottom:.0001pt; text-indent:-.55in; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:2; mso-list:l4 level2 lfo14; tab-stops:list .55in; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:windowtext; mso-fareast-language:EN-US; font-weight:bold; text-decoration:underline; text-underline:single;} h3 {mso-style-next:Normal; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.7in; margin-bottom:.0001pt; text-align:right; text-indent:-.7in; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:3; mso-list:l4 level3 lfo14; tab-stops:list .7in; font-size:18.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:#FF6600; mso-fareast-language:EN-US; font-weight:bold;} h4 {mso-style-next:Normal; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:1.0in; margin-bottom:.0001pt; text-indent:-1.0in; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:4; mso-list:l4 level4 lfo14; tab-stops:list 1.0in; font-size:11.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:windowtext; mso-fareast-language:EN-US; font-weight:bold;} p.MsoHeader, li.MsoHeader, div.MsoHeader {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:windowtext; mso-fareast-language:EN-US;} p.MsoTitle, li.MsoTitle, div.MsoTitle {margin:0in; margin-bottom:.0001pt; text-align:center; mso-pagination:widow-orphan; font-size:16.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:windowtext; mso-fareast-language:EN-US; font-weight:bold;} p.MsoBodyText, li.MsoBodyText, div.MsoBodyText {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:red; mso-fareast-language:EN-US;} p.MsoBodyTextIndent, li.MsoBodyTextIndent, div.MsoBodyTextIndent {margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.25in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:windowtext; mso-fareast-language:EN-US;} p.MsoBodyText2, li.MsoBodyText2, div.MsoBodyText2 {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:red; mso-fareast-language:EN-US;} p.MsoBodyTextIndent3, li.MsoBodyTextIndent3, div.MsoBodyTextIndent3 {margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; text-indent:-.5in; mso-pagination:widow-orphan; font-size:11.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:red; mso-fareast-language:EN-US;} p {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:blue; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; border:solid windowtext 1.0pt; mso-border-alt:solid windowtext .5pt; padding:24.0pt 24.0pt 24.0pt 24.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:331102760; mso-list-type:hybrid; mso-list-template-ids:-1062453886 1927164570 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} @list l0:level1 {mso-level-number-format:bullet; mso-level-text:; mso-level-tab-stop:.25in; mso-level-number-position:left; margin-left:.25in; text-indent:-.25in; font-family:Symbol;} @list l1 {mso-list-id:742261192; mso-list-type:hybrid; mso-list-template-ids:-325799418 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l1:level1 {mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l2 {mso-list-id:824858331; mso-list-type:hybrid; mso-list-template-ids:-951544022 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l2:level1 {mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l3 {mso-list-id:881290088; mso-list-type:hybrid; mso-list-template-ids:-1575325844 1927164570 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} @list l3:level1 {mso-level-number-format:bullet; mso-level-text:; mso-level-tab-stop:.25in; mso-level-number-position:left; margin-left:.25in; text-indent:-.25in; font-family:Symbol;} @list l4 {mso-list-id:1584142008; mso-list-template-ids:1450362488;} @list l4:level1 {mso-level-style-link:"Heading 1"; mso-level-tab-stop:.25in; mso-level-number-position:left; margin-left:.25in; text-indent:-.25in; mso-ansi-font-size:14.0pt; font-family:"Times New Roman"; mso-hide:none; text-transform:uppercase; text-effect:none; text-shadow:none; text-effect:none; text-effect:none; mso-ansi-font-weight:bold; mso-ansi-font-style:normal; text-decoration:none; text-line-through:none; vertical-align:baseline;} @list l4:level2 {mso-level-style-link:"Heading 2"; mso-level-text:"%1\.%2\."; mso-level-tab-stop:.55in; mso-level-number-position:left; margin-left:.55in; text-indent:-.55in;} @list l4:level3 {mso-level-style-link:"Heading 3"; mso-level-text:"%1\.%2\.%3\."; mso-level-tab-stop:.7in; mso-level-number-position:left; margin-left:.7in; text-indent:-.7in;} @list l4:level4 {mso-level-style-link:"Heading 4"; mso-level-text:"%1\.%2\.%3\.%4\."; mso-level-tab-stop:1.0in; mso-level-number-position:left; margin-left:1.0in; text-indent:-1.0in;} @list l4:level5 {mso-level-text:"%1\.%2\.%3\.%4\.%5\."; mso-level-tab-stop:1.55in; mso-level-number-position:left; margin-left:1.55in; text-indent:-.55in;} @list l4:level6 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\."; mso-level-tab-stop:1.9in; mso-level-number-position:left; margin-left:1.9in; text-indent:-.65in;} @list l4:level7 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\."; mso-level-tab-stop:2.25in; mso-level-number-position:left; margin-left:2.25in; text-indent:-.75in;} @list l4:level8 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\."; mso-level-tab-stop:2.6in; mso-level-number-position:left; margin-left:2.6in; text-indent:-.85in;} @list l4:level9 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9\."; mso-level-tab-stop:3.0in; mso-level-number-position:left; margin-left:3.0in; text-indent:-1.0in;} @list l5 {mso-list-id:1739133752; mso-list-type:hybrid; mso-list-template-ids:257342932 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l5:level1 {mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l6 {mso-list-id:1827939133; mso-list-type:hybrid; mso-list-template-ids:1131062780 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l6:level1 {mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l7 {mso-list-id:1870872401; mso-list-type:hybrid; mso-list-template-ids:-1627225894 1927164570 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} @list l7:level1 {mso-level-number-format:bullet; mso-level-text:; mso-level-tab-stop:.25in; mso-level-number-position:left; margin-left:.25in; text-indent:-.25in; font-family:Symbol;} @list l8 {mso-list-id:1936861441; mso-list-type:hybrid; mso-list-template-ids:-1687357132 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l8:level1 {mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l9 {mso-list-id:1966962721; mso-list-type:hybrid; mso-list-template-ids:-755969950 1927164570 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} @list l9:level1 {mso-level-number-format:bullet; mso-level-text:; mso-level-tab-stop:.25in; mso-level-number-position:left; margin-left:.25in; text-indent:-.25in; font-family:Symbol;} @list l10 {mso-list-id:1987667044; mso-list-type:hybrid; mso-list-template-ids:668375174 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l10:level1 {mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l11 {mso-list-id:2082360557; mso-list-type:hybrid; mso-list-template-ids:-453614218 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l11:level1 {mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l12 {mso-list-id:2086220859; mso-list-type:hybrid; mso-list-template-ids:153270046 1927164570 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;} @list l12:level1 {mso-level-number-format:bullet; mso-level-text:; mso-level-tab-stop:.25in; mso-level-number-position:left; margin-left:.25in; text-indent:-.25in; font-family:Symbol;} @list l13 {mso-list-id:2086610000; mso-list-type:hybrid; mso-list-template-ids:-1201140854 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l13:level1 {mso-level-tab-stop:.25in; mso-level-number-position:left; margin-left:.25in; text-indent:-.25in;} @list l13:level2 {mso-level-number-format:alpha-lower; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <div style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 1pt; padding: 0in 0in 1pt;"> <h1 style="border: medium none ; padding: 0in;"><a name="_Toc520879301"><!--[if !supportLists]--><span style="color: rgb(255, 102, 0); text-decoration: none;"><span style=""></span></span><span style="color: rgb(255, 102, 0); text-decoration: none;"></span></a><span style="color: rgb(255, 102, 0); text-decoration: none;"><o:p></o:p></span></h1> </div> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <h2 style=""><a name="_Toc520879302"><!--[if !supportLists]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><span style="">1.1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;">EXCEPTION HANDLING</span></a><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><o:p></o:p></span></h2> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is an Operation Exception error?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span> An Operation exception error indicates that an operation code is not assigned or the assigned operations not available on a particular computer model. The machine does not recognize the instruction or operation used. A possible reasons a subscript error. This error could also be caused by an attempt to read a file that was not opened, a misspelled DD statement. The system completion code is 0C1.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>What is a Protection exception error?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>A protection exception error occurs when the program is attempting to access a memory address that is not within the memory area that the program is authorized to use. Some of the causes may be a subscript or index that is not initialized or has taken on a value outside the bounds of the table with which it is associated, an attempt to read an open end file, or an incorrect or missing DD statement. The System completion code is 0C4.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>What is an addressing exception error?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A: <span style=""> </span>An addressing exception error occurs when a program is attempting to access a memory location, which is outside the bounds of a available real storage on the machine.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">This can be caused by a dataset not being open end at the time an I/O was directed to it, an attempt to close a dataset a second time, incorrectly called module parameters or coding, improper exit from a performed paragraph, or uninitialized subscript or index. The system completion code is 0C5.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>What is a data exception?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A: <span style=""> </span>A data exception error indicates an attempt to perform an arithmetic operation on non-numeric data. It can also occur from incorrect input data to a program that is not performing sufficient numeric testing on it before attempting arithmetic. The system completion code is 0C7.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>What return code is issued when a operator cancels a job?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A: <span style=""> </span>There are two return codes, which can be produced when the operator cancels a job. They are 122 and 222. A 122 indicates the operator cancelled the job and requested a dump. A222 indicates the operator has cancelled the job and has not requested a dump.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">It is important to ask the operator why the job was canceled. Some of the reasons this may occur are:<span style=""> </span>the program appeared to be stalled in a wait state; or the program was in an apparent loop.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What return code is issued if a job step exceeded the time limit?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A: <span style=""> </span>The system will issue a system code of 322 when a job or job step has exceeded the time limit .If the time parameter was used on the JOB or EXEC statement. If the time parameter was not used, then it is important to check the program possible errors.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>When the system cannot find enough virtual storage, which system abend is issued?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A: <span style=""> </span>When the system cannot find enough virtual storage during a GETMAIN macroinstruction, it generates a system abend of 804 or 80A. Check for program errors that incorrectly modify the storage request. If the REGION parameter has been used, either on the JOB or EXEC statement, it may need to be increased to satisfy the request.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Which system completion code is issued when a program module cannot be found?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A: <span style=""> </span>A system completion code of 806 will be issued when a program module cannot be found. Some of the causes may be missing the STEPLIB statement from the step or missing the JOBLIB statement from the job stream. Most likely the program name was misspelled on the EXEC statement or in a source code CALL.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent3" style="text-align: justify;">Q: <span style=""> </span>What are some of the abend generated when not enough disk space is available and what do they mean?</p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">A: <span style=""> </span>Some of the abend generated due to a lack of available disk space are:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">B37 -- Disk volume out of space, cannot write output. The system gave all the primary space and as much secondary space as it could.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">D37 -- Primary disk space was exceeded and either no secondary space allocation was specified or it was insufficient. One should increase the primary space as well as provide adequate secondary allocation was specified or it was insufficient. One should increase the primary space as well as provide adequate secondary space allocation to eliminate this error.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">E37 -- There was insufficient space on the volume. One way to solve this problem is to specify more volumes on the JCL.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>Which abend is issued when the system cannot find a member on a portioned dataset?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span><span style=""> </span>An S013-18 abend occurs when the specified member on the JCL, is not found on the indicated PDS (Partioned Dataset). Determine if the member is spelled correctly on your JCL. If it is not, then fix member name and resubmit job. If it is correct, then determine why it is not on the PDS, take the necessary steps to place it on the PDS, and resubmit the job.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>What normally causes an S013-20 abend?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span><span style=""> </span>An S013-20 is normally caused by the block size not being a multiple of the record length or being incorrect for variable-length records. Divide your BLKSIZE by the record length to make sure it is a multiple of the BLKSIZE if not, correct it and resubmit job. For variable-length records, it is necessary to have your BLKSIZE be at least 4 bytes greater than your record length.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>What can be done to eliminate a ‘NOT CATLG 2’ for a particular dataset?<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span><span style=""> </span>To eliminate a ‘NOT CATLG 2’ message, one may take one of the following options.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">Add a step to the beginning of the JOB, which creates the dataset to first purge the dataset. One may to use utility IEFBR14 to perform this task.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">Setup a job to purge the dataset and run it before the job which creates it purges the dataset before running the job, which creates it.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent3" style="text-align: justify;">Q:<span style=""> </span><span style=""> </span>If a job step is in a wait state for 30 minutes or more with no activity, which abend does<span style=""> </span>one receive?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A: <span style=""> </span><span style=""> </span>If a job step is in a wait for 30 minutes or more with no activity, the job abend with an s522 indicating the time was exceeded for the wait state. This type of cancellation is unusual and is often caused by a program error or unavailable datasets / resources.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent3" style="text-align: justify;"><o:p> </o:p></p> <p class="MsoBodyTextIndent3" style="text-align: justify;"><o:p> </o:p></p> <p class="MsoBodyTextIndent3" style="text-align: justify;">Q:<span style=""> </span><span style=""> </span>A system completion code of 813-04 is generated when a dataset name and volume serial number for a tape is not consistent with the information contained in the tape dataset label. What can be done to fix this problem?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span><span style=""> </span>When a system completion code of 813-04 is received, one must check the spelling of the dataset name in the JCL and the volume serial number specified. If possible, dump the dataset label to see the actual dataset name on the tape. Once the problem has been identified, correct it and resubmit the job.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span><span style=""> </span>How does one fix a ‘PROCEDURE NOT FOUND ‘ ERROR?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span><span style=""> </span>If one receives a ‘procedure not found’ message, it indicates that it could not find the procedure on the procedure library specified on the JCL. Check the spelling of the procedure library specified on the JCL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">Check the spelling of the procedure name on the EXEC statement to make sure it is correct .if it is not correct, fix it and resubmit the job.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">If the JCL is correct, then check to make sure the procedure has been cataloged into the procedure library. If not, have it cataloged and resubmit the job.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <h2 style=""><a name="_Toc520879303"><!--[if !supportLists]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><span style="">1.2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;">GENERATION DATA GROUPS</span></a><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><o:p></o:p></span></h2> <p class="MsoHeader" style=""><o:p> </o:p></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>What is a Generation Data Group (GDG)?</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span><span style=""> </span>A generation Data Group is a group of chronologically or functionally related datasets. GDGs are processed periodically, often by adding a new generation, retaining previous generations, and sometimes discarding the oldest generation.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span><span style=""> </span>How is GDG base created?</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span><span style=""> </span>A GDG base is created in the system catalog and keeps track of the generation numbers used for datasets in the group. IDCAMS utility is used to define the GDG base for MVS/XA, and MVS/ESA. Older systems required that the IEHPROGM utility be used.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span><span style=""> </span>What is model dataset label (Model DSCB)?</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span><span style=""> </span>A model dataset label is a pattern for the dataset label created for any dataset named as part of the GDG group. The system needs an existing dataset to serve as a model to supply the DCB parameters for the generation data group one wish to create. The model dataset label must be cataloged. The model DSCB name is placed on the DCB parameter on the DD statement that creates the generation data group.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span><span style=""> </span>What is the advantage in using generation data groups?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span><span style=""> </span>The advantage in using the generation data groups is that all datasets have the name, and the system keeps track of adding and deleting successive generations. The JCL does not need to be changed between runs.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>How are GDG concatenated?</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span><span style=""> </span>Generation data groups are concatenated by specifying each dataset name and the generation number of all generations of the generation data group . To retrieve all generations of a generation data group, omit the generation number. The DD statements refers to all generations <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">The result is the same as if all individual datasets were concatenated. If generations are not on the same volume, this will not work.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>How are different generations specified?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Different generations are specified by providing the dataset name and generation number for each GDG desired.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the status of the GDG when an abend occurs?</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The GDG is in a bad state because it may consist of partial information. If used in this state, it is possible to get incorrect or improper results. It is recommended to reset the current generation by deleting the bad generation before executing the job, which will re-create a new generation.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>How is a previous GDG coded?</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Previous GDGs are coded as (-1) after the dataset name. An example would be DSN=JAN.DATA(-1).<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>How is the current GDG coded?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Current GDGs are coded as (0), (+0), or (-0) after the dataset name as follows: DSN=JAN.DATA(0). The +(0) and (-0) have the same effect as (0) Normally, it is coded as (0).<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>How is a new GDG coded?</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>A new GG is coded as (+1) after the dataset name as follows:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">DSN=JAN.DATA(+1). This will cause all generations to be pushed down one level at the end of the job.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <h2 style=""><a name="_Toc520879304"><!--[if !supportLists]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><span style="">1.3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;">DD STATEMENTS</span></a><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><o:p></o:p></span></h2> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the purpose of the Data Definition (DD) Statement?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Data Definition statements describe each dataset (a file on a direct-access storage device, tape or printed output) and request the allocation of I/O devices.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Describe what the DISP parameter does?<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>The DISP parameter describes the current status of the dataset and directs the system<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.75pt;"><span style="font-size: 11pt;">on the disposition of the dataset either at the end of the job or when the step abnormally terminates . DISP always required unless the dataset is created and deleted in the same step <o:p></o:p></span></p> <p class="MsoBodyTextIndent3" style="text-align: justify;"><o:p> </o:p></p> <p class="MsoBodyTextIndent3" style="text-align: justify;">Q:<span style=""> </span>How many subparameters does the DISP parameter consist of and what is the meaning of each?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The DISP parameter consists of three subparameters:<span style=""> </span>start-status, end-status-normal and end-status-abend. Start-status indicates the status of a dataset at the beginning of the job step. End-status-normal tells MVS what needs to be done with the dataset when the job step ends. End-status-abend indicates the desired disposition of the dataset if the job step abend. It is also known as the conditional disposition.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent3" style="text-align: justify;">Q:<span style=""> </span>What are the meanings of the parameters used (within) the DISP parameter at the beginning of the job step?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The status NEW, MOD, OLD, or SHR is the status of the dataset at the beginning of the step. If the dataset is NEW, the system creates a dataset label; if it is OLD, the system locates the dataset. The system gives a program exclusive control of a database except when SHR is used.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What are the normal “disposition” of the DISP parameter?<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The normal disposition indicates the disposition of the dataset when the dataset is closed or when the job terminates normally. Normal dispositions are KEEP, DELETE, PASS, CATLG, and UNCATLG.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>What is the abnormal “disposition” of the DISP parameter?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The abnormal disposition would be effected only if the step abnormally terminates. They are the same normal disposition as except that PASS is not allowed KEEP, CATLG, UNCATLG and DELETE are all permitted.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>When should DISP=SHR be used?<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">A: <span style=""> </span>DISP=SHR must be used only when it is necessary to share the dataset.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">SHR should b used for input dataset.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>When should DISP=MOD be used?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>DISP=MOD is used to either to extend an existing sequential dataset or to create a dataset if it does not exist. If the dataset exists the records are appended at the end of the existing dataset. If the dataset does not exist the system treats mod as if it were NEW, provided that the volume parameter has not been used. If the volume parameter is used, the system terminates the job and does not create the new dataset. MOD can be used to add to the dataset that extends to several volumes. Always specify a disposition of CTLG<span style=""> </span>with the MOD for cataloged dataset, even if they are already cataloged, so that any additional volume serial number will be recorded in the catalog.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>When should DISP = OLD be used?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span><span style=""> </span>DISP = OLD should be used for an existing dataset. It can be used with an input dataset to read or an output dataset to rewrite. The step which uses DISP=OLD will have exclusive control of the dataset. If an OLD dataset is cataloged, the DSN parameter is usually the only other parameter needed. If an LD dataset is not cataloged, UNIT and VOL parameter are required.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>When should DISP = NEW be used?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A: <span style=""> </span>DISP=NEW should be used when it is desired to create a dew dataset. The UNIT parameter is usually required for dataset on direct access volumes.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>How is a dataset passed from one step to another?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A: <span style=""> </span>A dataset is passed from one step to another based on what is coded on the DISP parameter. The dataset can only be passed to subsequent steps if PASS is used on the disposition parameter.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent3" style="text-align: justify;">Q: <span style=""> </span>If a dataset is passed and the subsequent steps do not use it, what happen to the dataset at the end of the job?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>If a dataset is passed to subsequent steps and it is not used, at the end of the job the dataset is deleted, since DELETE is assumed for all NEW datasets, temporary or non temporary.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent3" style="text-align: justify;">Q: <span style=""> </span>What is the default for the disposition parameter if it’s not coded on the DD statement for a dataset?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The default disposition used on a dataset, which was coded without a disposition parameter, is NEW. The disposition of NEW implies exclusive control of the dataset.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>How are dataset concatenated?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Datasets are concatenated by writing a normal DD statement for the first dataset and the adding a DD statement without a DDNAME for each dataset to be concatenated in the order they are to be read. The following is an example of three datasets concatenated:<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>//INSMP<span style=""> </span>DD DSN=JAN.DATA, DISP=SHR<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>//<span style=""> </span><span style=""> </span>DD DSN=FEB.DATA, DISP=SHR<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>//<span style=""> </span><span style=""> </span>DD DSN=MAR.DATA, DISP=SHR<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Can datasets of a different record length (LRECL) be concatenated?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Datasets with different LRECLs can be concatenated as long as the dataset with the largest block size appears first.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Can Partitioned Datasets (PDSs) be concatenated?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Partitioned Datasets can be concatenated. This is often done for program libraries so that the system can search several libraries fro a member.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is a Data Control Block (DCB)?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The Data Control Block is a table of data, in storage, that describes each dataset used by the program.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent3" style="text-align: justify;">Q:<span style=""> </span>What are two different places from which DCB information can be obtained and in what order?</p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>Data information can be obtained from three places in the following order:<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">The data control block, from application program, is used first.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">Information supplied on the DD statement is used second.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">Dataset label information for the DCB is used third.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the purpose of using a dataset referback?<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>A dataset referback is used to copy a dataset name from a prior job step.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What are the disadvantages of using a dataset referback?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The disadvantages of using dataset referback is that they tend to make JCL more difficult to maintain because close attention, scrutiny and manual examination of preceding steps is needed to understand what a given job-stream is doing. They also complicate the restart of a job if a failure or interruption occurs.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Under which circumstances is the disposition parameter not performed?<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>Disposition is not performed under the following circumstances:<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">The step does not start because of JCL errors.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">The step is bypassed because of the COND parameter in the JOB or EXEC statement <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">The step abnormally terminates because it could not find enough space to satisfy the request.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">DUMMY or DSN=NULLFILE is coded on the DD statement.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <h2 style="margin-left: 0in; text-indent: 0in;"><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><o:p> </o:p></span></h2> <h2 style=""><a name="_Toc520879305"><!--[if !supportLists]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><span style="">1.4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;">JOB, EXEC, AND PARM</span></a><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><o:p></o:p></span></h2> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the purpose of the JOB statement?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The purpose of the JOB statement is to inform the operating system of the start of a job, give necessary accounting information and supply run parameters. Each job must begin with a single JOB statement.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>How does one identify a job to the Operating system?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>A job is identified to the system by the use of jobname. Jobnames can range from one to eight alphabetic characters. The first character must begin in column 3 and be alphabetic<span style=""> </span>(A-Z). Jobs should be given unique names since duplicate jobnames will not execute until any job having the same jobname completes execution.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What does the accounting information consist of?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Accounting information consists of the account number of which the job is charged and any additional information established by the installation.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What does the parameter CLASS in the JOB statement mean?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Parameter CLASS specifies the job class. There are 36 possible job classes (A-Z, 0-9). Installations usually attempt to establish job classes that achieve a balance between I/O<span style=""> </span>bound and CPU-bound jobs. Job classes also determine the overall priority of a job, along with the PRTY parameter PRTY may be coded to give special priority to a job. The operator may also set it.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is parameter MSGCLASS in the JOB statement used for?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The MSGCLASS parameter is used to specify the job scheduler message output class. The output classis (A-Z,0-9). Job scheduler message include all messages not printed by the actual job steps being executed. Some of these are: JCL statements and error messages, device allocations, dataset disposition and accounting information.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent3" style="text-align: justify;">Q:<span style=""> </span>What does parameter MSGLEVEL on the JOB statement mean and what is the advantage of using it.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>MSGLEVEL indicates whether or not one wishes to print the JCL statements and allocation messages. The MSGLEVEL parameter can save paper. After a job is debugged, there may be no need to print all the JCL and allocation messages each time it runs. To reduce printing to a minimum one may wish to code MSGLEVEL = (0,0)<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>which parameter allows one to run a syntax check n the JCL without executing it?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>TYPRUN = SCAN parameter is used to check the JCL for syntax errors and suppress the execution of the job. This checking does not include checking for duplicate datasets on volumes, insufficient space or region size for job steps.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What does parameter TYPRUN = HOLD mean?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The parameter TYPRUN = HOLD holds a job in the input queue for later execution. The job is held until the operator releases it. TYPRUN=HOLD is useful for when one job must not run until another job completes. Operator intervention is required to release the job.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the purpose of the EXEC statement?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The purpose of the EXEC statement is to name a program or procedure to be executed. It follows the job statement. A job or cataloged procedure can contain several EXEC statements. A job may have up to 255 EXEC statements.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the stepname on the EXEC statement used for and is it a required parameter?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Stepname on the EXEC statement is used to name the job step. It is required if subsequent JCL statements refer to it or if one wishes to restart the job from the step; otherwise it is optional. Stepname are recommended and should have unique names. The names must begin in column 3 with an alphabetic or national character (A-Z, @$#)<o:p></o:p></span></p> <h4 style="margin-left: 0in; text-align: justify; text-indent: 0in;"><o:p> </o:p></h4> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Which parameter is used to name the program in the exec statement?<o:p></o:p></span></p> <p class="MsoBodyText2" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="color: black;">A:<span style=""> </span>The parameter ‘PGM=’ is used to name a program or utility to be executed. For example, to code a program named ‘FIRST’, one would code ‘PGM=FIRST’. For utility named ‘IEBGENER’, it would be coded as ‘PGM=IEBGENER’.</span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What are the commonly used parameters on the EXEC statement and what do you they mean?</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The most commonly used parameters on the EXEC statement are: COND, PARM, REGION, and TIME. They stands for:<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">COND – Specifies conditions to execute subsequent job steps if the previous step(s) fail.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">PARM – Passes parameter to the job steps.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">REGION – Specifies the region size to allocate for the job / job step.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">TIME – Imposes a time limit on the job or job step.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q:<span style=""> </span>What is the default for the TIME parameter if it is not coded on the EXEC statement?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>If the TIME parameter is omitted from the EXEC statement, the default is 30 minutes of the CPU time.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q:<span style=""> </span>What is the difference between the JOBLIB & STEPLIB statements?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The JOBLIB statement is placed after the JOB statement and is effective for all job steps. It cannot be placed in the catalogued procedure. The STEPLIB statement is placed after the EXEC statement and is effective for that job step only. Unlike JOBLIB statement, the STEPLIB cannot be placed in the catalogued procedure.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What can be done to resolve a JCL error that reads ‘DATASET NOT FOUND’?</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Some of the actions one can take to resolve a JCL error ‘DATASET NOT FOUND’ are:<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">One must examine the job log and the allocation/deallocation report and identify the step and DDname involved.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Determine whether or not the dataset name does indeed exist on the system.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Check the JCL to make sure the dataset name is spelled correctly.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">If the job has more than one step and the ABEND is not on the first step, check to see if the dataset on the previous step was deleted.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Fix the problem and resubmit the job.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q:<span style=""> </span>Does a ‘DD STATEMENT MISSING’ message normally ABEND the job?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>A DD statement missing message normally does not ABEND the job, but if not fixed it could later cause problems when least expected. It is advisable to determine why this message was generated and take action to rectify the problem.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt;">Q:<span style=""> </span>Parameters COND, REGION, AND TIME can be coded on both the JOB and the EXEC statements. What are the differences between using them on the JOB versus the EXEC statements, and in which statements are they commonly used?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A: <span style=""> </span>Parameters COND, REGION, AND TIME coded on the JOB statement will be in effect for the entire job. When used on the EXEC statement, they will be in effect for that job step only. The COND parameter is normally used on the EXEC statement. The REGION parameter is not normally used unless a particular program requires a lot of storage and it is necessary to override the installation’s REGION Default. If the REGION parameter is used on the both JOB <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify;"><span style="font-size: 11pt;">and EXEC statements, then the REGION parameter from the JOB statement will be in effect. The TIME parameter is most often used on the JOB statement.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Explain how the virtual storage works in MVS/SP.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>MVS/SP stands for Multiple Virtual Storage / System Program. A major architectural component of virtual storage MVS is virtual storage. With virtual storage, storage addresses of the application program are independent of the addresses of the computers central storage. A Hardware feature, paging supervisor, transfers the users virtual storage addresses to the computers central storage addresses during execution. With Virtual Storage, a program needs to occupy only a relatively small amount of<span style=""> </span>central storage. This allows programs to be run whose size exceeds the central storage available on the computer.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What are some of the main features of MVS/XA?</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>MVS/XA stands for Multiple Virtual Storage / Extended Architecture. MVS/XA uses 32 bits of addressing. This gives an address space of approximately 2 billion bytes. The extended architecture also consists of more sophisticated I/O channels for faster I/O. Also, a separate version of OS is required. One of the difference is that a program for MVS/XA can go up to 2 billion bytes. Programs running under MVS/SP can go up to<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">16 million bytes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What are the “<i>basic architecture</i>” features of MVS/ESA?</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>MVS/ESA stands for Multiple Virtual Storage / Enterprises System Architecture. MVS/ESA permits an application to have multiple 2-gigabyte address spaces. This allows huge applications to be segregated into functional parts. For ESA, the first address space is called the application space and programs can execute in it. The other address space are called dataspaces and they contain only data. MVS/ESA also has the facility for hyperspaces, which allows temporary data to be stored or retrieved in 4-kbyte blocks under program control. Maximum address space is up to 2 trillion bytes in multiple of 2-billion-byte address spaces.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the meaning of the “<i>line</i>”?</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The “<i>line</i>” indicates the maximum address space that is available for the MVS system. For MVS/SP it is 16 million bytes, for MVS/XA it is up to 2 billion bytes, and MVS/ESA is up to 2 trillion bytes in multiple of 2-billion-byte address spaces.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>When would a program run “<i>below the line</i>”?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>A program would run “<i>below the line</i>” if it did not exceed the address space available.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>When would a program run “<i>above</i> <i>the line”?<o:p></o:p></i></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>A program would run “<i>above the line</i>” if it required more than 16 megs or if it is competing with other programs which are using the same address space. Special Parameters must be set for compilation and linkage editing in order for a program to run above the 16-meg line.<o:p></o:p></span></p> <h2 style="margin-left: 0in; text-indent: 0in;"><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><o:p> </o:p></span></h2> <h2 style=""><a name="_Toc520879306"><!--[if !supportLists]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><span style="">1.5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;">PROCS</span></a><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><o:p></o:p></span></h2> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><b><span style="font-size: 11pt;"><o:p> </o:p></span></b></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q:<span style=""> </span>How are in-stream procedures (procs) built?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>In-stream procedures are built by coding a set of statements and placing them after the JOB statement and before the EXEC statement. In-stream procedures begin with a PROC statement and end with a PEND statement. Up to 15 in-stream procedures can be included in a single job. <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify;"><span style="font-size: 11pt;">Each in-stream procedures may be invoked several times within the job. In-stream procedures can use symbolic parameters in the same way as catalogued procedures.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q:<span style=""> </span>What is the difference between an in-stream procedure and a catalogued procedure?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>An In-stream procedure is basically same as a catalogued procedure. The difference is that to execute an in-stream procedure one places it after the JOB statement and before the EXEC statement and must end it with a PEND statement. A catalogued procedure is catalogued on a procedure library and is called by specifying the procedure<span style=""> </span>name on the EXEC statement. An in-stream procedure is useful to test the procedure before making it a catalogued procedure.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Name some of the JCL statements that are not allowed in the procs.</span><span style="font-size: 11pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>Some of the JCL statements that are not allowed in the procs are:<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">JOB Delimiter (/*) or Null (//) statements<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">JOBLIB or JOBCAT DD statements<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">DD * or DATA statements<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Any JES2 or JES3 control statements<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q:<span style=""> </span>What parameters are good candidates to make symbolic parameters?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Any parameter, sub parameter, or value in a procedure that may vary each time the procedure is called is a good candidate to be coded as a symbolic parameter.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt;">Q:<span style=""> </span>Which type of override parameter requires that one know the parameters that can be overridden?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Regular parameters require that one know the parameters that can be overridden, such as step names within the procedure, the DDnames of the statements overridden, and the order of the DD statements.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q:<span style=""> </span>How is a symbolic parameter coded?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>A symbolic parameter is preceded by an ampersand (&) and followed by a name (&FIRST). The first character must be alphabetic. Symbolic parameters can be coded only in the operand field of the JCL statements; they cannot appear in the name or operation field of the JCL statements. If more than one value is assigned to the symbolic parameters on a PROC or EXEC statement, only the first one is used. Symbolic parameters may be coded in any order on the PROC or EXEC statement.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q:<span style=""> </span>How are values assigned to symbolic parameter?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Values can be assigned to symbolic parameter on the PROC statement, on the EXEC statement, or on a SET command. Values containing special characters other than blank must be enclosed in apostrophes. The Values assigned to symbolic parameter can be of any length, but it cannot be continued onto another line.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q:<span style=""> </span>Can symbolic parameter concatenated?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>Symbolic parameter can be concatenated with other symbolic parameters, regular parameter or with the portions of the regular parameters as follows<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>Symbolic/symbolic – PARM-&FIRST&LAST<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>Symbolic/regular – SPACE-&SPACES<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>Symbolic/portion – SPACE-CTRK, &PRIMARY <o:p></o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt;">Q:<span style=""> </span>What are some of the rules involved in overriding parameters on the EXEC statements in a procedure?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>To override EXEC parameter one should follow these rules<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">A PGM parameter cannot be overridden.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">The parameter for each step do not need to be coded in the same order as they appear on the procedure EXEC statement<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">To add or override a parameter on an EXEC statement, code it as follows parameter.procstepname=value.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">If a parameter which does not exist is coded on the EXEC statement, the parameter will be added<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">All parameters in each step must be coded in order: the first step must be coded first, second step second, third step third, etc.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q:<span style=""> </span>What are some of the rules involved in overriding DD statements in procs?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>The following rules apply when overriding a DD statement:<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">DD statement overrides precede the DDname with procstepname<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">The JCL parameter is replaced unless it does not exist on the original statement, in which case it is added. For the DCB each sub parameter can be overridden<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">DD statement overrides should carry DDnames that already exist in the step they are to effect<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">DD statement overrides must be coded preceding any added DD statement for the proc step <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">DD override statement must be listed in the order in which they are shown<span style=""> </span>in the proc<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">DD override statement are only in effect for the duration of the run<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q:<span style=""> </span>How are concatenated DD statements in the proc overridden?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>Overriding concatenated DD statements requires the following:<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">To override only the first DD statement in a concatenation, code only one overriding DD statement<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">To override all DD statements in a concatenation, code an overriding DD fo each concatenated DD statement<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">The overriding concatenated DD statements must be in the same order as the concatenated DD statement<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Code a DDname on the first overriding DD statements only. Leave the DDname blank on the following DD statements.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">To leave a concatenated statements unchanged, code its corresponding, overriding DD statement with a blank operand field<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><b><span style="font-size: 11pt;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><b><span style="font-size: 11pt;"><o:p> </o:p></span></b></p> <h2 style=""><a name="_Toc520879307"><!--[if !supportLists]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><span style="">1.6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;">COMPILING, LINK EDITING AND EXECUTION</span></a><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><o:p></o:p></span></h2> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><b><span style="font-size: 11pt;"><o:p> </o:p></span></b></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What does a mainframe compiler output in the object deck and what does the linkage editor do with it?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The compiler outputs the source code into the object deck in a form to be read by the linkage editor. The linkage editor combines the object dataset (object deck) from the compiler with machine language code for input/output and other tasks to create an executable load module.<o:p></o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt;">Q:<span style=""> </span>If a program executed attempts to divide a number by zero, do arithmetic on a field that does not contain numeric data, or has some other serious logic error, an abend will occur. What is the normal response that MVS would issue?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>MVS would issue a “system completion code” that would indicate the nature of the problem, dump the program’s memory area, and flush the job from the system. The dump may be used for problem analysis. The dump is printed or stored in a dataset as specified in the //SYSUDUMP DD statement. If //SYSUDUMP is omitted, MVS will provide the completion code value, but not the dump.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q:<span style=""> </span>Where must load module(s) reside?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>Load module(s) must reside on a Partitioned DataSet (PDS).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 11pt;">Q<span style=""> </span>What are some of the common linkage editor options and what do they mean?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>Some of the commonly used linkage editor options are<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">LIST – Lists the linkage editor control statements and is usually specified. Omit the parameter if no linking is declared.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">MAP – Produces a storage map showing the length and relative locations of all control sections. Default is NOMAP.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">XREF – Includes MAP plus a cross-reference table of the load module (MAP and XREF are mutually exclusive)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">NOCALL - Cancels the automatic library call mechanism. NOCALL is used for creating subroutine libraries so that the load module contains a single subroutine. CALL is the default. <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">LET – Marks load modules as executable even if minor errors are found. NOLET is the default.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">PRINT – Allows the messages to be written to a SYSOUT DD statement and it is the default. NOPRINT suppresses the message.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">AMODE – Specifies whether the program uses 24 or 31- bit addressing. AMODE ANY specifies both 24 and 31 – bit addressing. AMODE 24 requires the program to run below the 16-meg line. The default is established by the compiler and is usually AMODE 24.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">8.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">RMODE – Indicates where the program can reside in virtual storage. RMODE ANY allows the program to reside above the 16-meg line and requires AMODE 31 or AMODE ANY. RMODE 24 requires the program to reside below the 16-meg line. The default is established by the compiler and is usually RMODE 24.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 9pt 0.0001pt 0.75in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">9.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">TERM – Causes linkage editor diagnostic message to be written to a SYSTERM DD statement. NOTERM is the default.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q: <span style=""> </span>What causes the message ‘MODULE HAS BEEN MARKED NOT<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt; color: red;">EXECUTABLE’?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A: <span style=""> </span>An unresolved external reference often causes the message ‘MODULE HAS BEEN MARKED NOT EXECUTABLE’. Although the module is not executable, one may be able to recover by link-editing the control section causing the problem and replacing it in the load module.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Why would the linkage editor add a member to a load library under the name ‘TEMPNAME’?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The linkage editor will add a member to the load library under the name of ‘TEMPNAME’ when a member of the same name already exist on the library and the disposition on the SYSLMOD statement was coded as DISP = MOD. This indicates a problem and need s to be resolved.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <h2 style=""><a name="_Toc520879308"><!--[if !supportLists]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><span style="">1.7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;">UTILITIES</span></a><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><o:p></o:p></span></h2> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is an IEBGENER used for?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>IEBGENER is a dataset utility used to copy sequential datasets, produce a partitioned dataset or member from a sequential dataset, produce an edited sequential or partitioned dataset, and reblock / change the logical record length of a dataset.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is an IEBCOPY used for?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>IEBCOPY is a dataset utility used to copy one or more partitioned datasets or to merge partitioned datasets. A partitioned dataset that is copied to a sequential dataset is said to be unloaded. When one or more dataset created by an unload operation are used to recreate a partitioned dataset, it is called a load operation. Specific members of a partitioned or unloaded dataset can be selected for, or excluded from, a copy, unload or load process.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is an IEFBR14 used for?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>IEFBR14 is used to delete datasets, find dataset, catalog, and uncatalog datasets.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is an IEHLIST used for?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>IEHLIST is a system utility used to list entries in an OS CVOL, entries in the directory of one or more partitioned datasets, or entries in an indexed or nonindexed volume table of contents (VTOC).<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is an IEHINIT used for?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>IEHINIT is a system utility used to write an IBM volume label onto any number of magnetic tapes mounted on one or more tape units. Each volume label set created by this program contains a standard volume label, and 80-byte dummy header and a tapemark.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is an IEBPTPCH used for?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>IEBPTPCH is a dataset utility used to print or punch all or selected, portions of a sequential or partitioned dataset. Records can be printed or punched to meet either standard specifications or user specification.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is an IEBUPDTE used for?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>IEBUPDTE is a dataset utility used to create and update dataset libraries, modify existing partitioned members or sequential dataset and change the organization of dataset from sequential to partitioned or Vice Versa.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What utility can be both used for VSAM and NON VSAM files?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;">A:<span style=""> </span>IDCAMS utility is used to handle VSAM and NON VSAM files.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Which parameter is required to copy the dataset using IEBCOPY?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The parameter “COPY” is required to indicate one or more IEBCOPY copy, unload or load operations. Any number of operations can follow a single COPY statement and any number of COPY statements can appear within a single job step.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the parameter ‘GENERATE‘ used for on utility IEBGENER?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The parameter ‘GENERATE’ for the utility IEBGENER is used when output is to be partitioned, editing is to be performed or user routines are provided and / or label processing is specified.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the parameter ‘MEMBER’ used for an utility IEBGENER?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The parameter ‘MEMBER’ for the utility IEBGENR is used when the output is to be partitioned. One member statement must be included for each member to be created by IEBGENER. ALL RECORD statements following a MEMBER statement pertain to the number named in that MEMBER statement.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 9pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the parameter ‘RECORD’ used for on utility IEBGENER?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The parameter ‘RECORD’ for the utility IEBGENER is used to define a record group and to supply editing information. A record group consists of records that are to be processed identically.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Which utility uses the ‘REPRO’ command and what function does it perform?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>The utility IDCAMS uses the ‘REPRO’ command. The REPRO command copies sequential datasets. It performs much the same function as IEBGENER.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>How does one verify that a utility has ended normally?<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>To verify if a utility has ended normally, one must check the JCL for a return code of zero. Various utilities generate return codes of 0004, 0008, 0012 and higher, in increments of 4, when problems or unusual conditions have been encountered.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>When a utility ends with a nonzero return code, what must be done to resolve the</span><span style="font-size: 11pt;"> <span style="color: red;">problem?</span><o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">A:<span style=""> </span>When a utility ends with a nonzero return code, it is necessary to determine what caused the error. One may start by checking for error message generated by the utility and look them upon on a utility messages manual. Also, the JCL statements and / or control statements should be checked to make sure they were properly coded. Once the error has been identified, it should be fixed and the job resubmitted.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What are the kinds of job control statements?<span style=""> </span><o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>The JOB, EXEC and DD statement. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the meaning of keyword in JCL?<span style=""> </span>What is its opposite? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>A keyword in a JCL statement may appear in different places and is recognized by its name, e.g. MSGCLASS in the JOB statement.<span style=""> </span>The opposite is positional words, where their meaning is based on their position in the statement, e.g. in the DISP keyword the =(NEW, CATLG, DELETE) meanings are based on first, second and third position. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Describe the JOB statement, its meaning, syntax and significant keywords. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>The JOB statement is the first in a JCL stream.<span style=""> </span>Its format is // jobname, keyword JOB, accounting information in brackets and keywords, MSGCLASS, MSGLEVEL, NOTIFIY, CLASS, etc. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Describe the EXEC statement, its meaning, syntax and keywords. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>The EXEC statement identifies the program to be executed via a PGM=program name keyword.<span style=""> </span>Its format is //jobname EXEC PGM=program name.<span style=""> </span>The PARM= keyword can be used to pass external values to the executing program. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Describe the DD statement, its meaning, syntax and keywords. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>The DD statement links the external dataset name (DSN) to the DDNAME coded within the executing program.<span style=""> </span>It links the file names within the program code to the file names know to the MVS operating system.<span style=""> </span><o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">The syntax is // DDname DD DSN=dataset name.<span style=""> </span>Other keywords after DSN are DISP, DCB, SPACE, etc. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is a PROC? What is the difference between an instream and a catalogued PROC? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>PROC stands for procedure.<span style=""> </span>It is 'canned' JCL invoked by a PROC statement. An instream PROC is presented within the JCL; a catalogued PROC is referenced from a proclib partitioned dataset. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the difference between a symbolic and an override in executing a PROC? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>A symbolic is a PROC placeholder; the value for the symbolic is supplied when the PROC is invoked, eg. &symbol=value.<span style=""> </span>An override replaces the PROC's statement with another one; it substitutes for the entire statement. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is RESTART? How is it invoked? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>RESTART is a JOB statement keyword.<span style=""> </span>It is used to restart the job at a specified step rather than at the beginning. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is a GDG? How is it referenced? How is it defined? What is a MODELDSCB? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>GDG stands for generation data group.<span style=""> </span>It is a dataset with versions that can be referenced absolutely or relatively.<span style=""> </span>It is defined by an IDCAMS define generation datagroup execution. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>Explain concatenating datasets. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>Datasets can be grouped in a DD statement one after another, eg. in a JOBLIB statement where the load module can exist in one of many datasets. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the difference between specifying DISP=OLD and DISP=SHR for a dataset? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>DISP=OLD denotes exclusive control of the dataset; DISP=SHR means there is no exclusivity. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is MOD and when would you use it? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>DISP=MOD is used when the dataset can be extended, ie, you can add records at the end of an existing dataset. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What are the keywords associated with DCB?<span style=""> </span>How can you specify DCB information? What is the OS precedence for obtaining that DCB information, ie. where does the system look for it first? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>The keywords associated with the DCB parameter are LRECL, RECFM, BLKSIZE and DSORG.<o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">The DCB information can be supplied in the DD statement.<span style=""> </span>The sysem looks for DCB information in the program code first. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>How do you designate a comment in JCL? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>The comment statement is //*<span style=""> </span>followed by the comments.<span style=""> </span><o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the meaning of the EXEC statement keyword, COND?<span style=""> </span>What is its syntax? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>COND specifies the conditions for executing the subsequent job step.<span style=""> </span>The value after the COND=<span style=""> </span>is compared to the return codes of the preceding steps and if the comparison is true, the step is bypassed.<o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the improvement to COND= in the latest version of MVS? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>MVS now allows for an IF bracketed by an END IF around any job step to replace the COND=<span style=""> </span>syntax.<span style=""> </span>Again, if the IF statement is true, the step is bypassed. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the purpose of the PARM keyword in the EXEC statement? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>The value after the PARM=<span style=""> </span>specifies control information to be passed to the executing program of the job step. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the purpose and meaning of the REGION keyword and what JCL statement is it associated with? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>REGION specifies the maximum CPU memory allocated for a particular job or job step.<span style=""> </span>If REGION is in the JOB card, it relates to the entire job;<span style=""> </span>if in the EXEC statement, it relates to the job step. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the purpose and meaning of the TIME keyword and what JCL statement is it associated with? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>TIME specifies the maximum CPU time allocated for a particular job or job step.<span style=""> </span>If TIME is in the JOB card, it relates to the entire job;<span style=""> </span>if in the EXEC statement, it relates to the job step. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the meaning of data definition name (ddname) and dataset name (dsname) in the DD statement? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>Data definition name is the eight character designation after the // of the DD statement.<span style=""> </span>It matches the internal name specified in the steps executing program.<span style=""> </span>In COBOL that's the name specified after the ASSIGN in the SELECT ASSIGN statement. Dataset name is the operating system (MVS) name for the file. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>How is the keyword DUMMY used in JCL? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>For an output file DUMMY specifies that the output is to be discarded.<span style=""> </span>For input it specifies that the file is empty. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What does the keyword DCB mean and what are some of the keywords associated with it? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>DCB stands for data control block; it is a keyword for the DD statement used to describe datasets. Keywords associated with it are BLKSIZE, DEN, LRECL and RECFM. <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;"><o:p> </o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: red;">Q:<span style=""> </span>What is the difference between BLKSIZE and LRECL? <o:p></o:p></span></p> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">A:<span style=""> </span>BLKSIZE specifies the number of bytes.<o:p></o:p></span></p> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <h2 style=""><a name="_Toc520879309"><!--[if !supportLists]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><span style="">1.8.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;">JCL UTILITIES</span></a><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><o:p></o:p></span></h2> <p class="MsoTitle" style="background: white none repeat scroll 0% 0%; text-align: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="left"><span style="font-size: 11pt; color: red; font-weight: normal;"><o:p> </o:p></span></p> <p class="MsoTitle" style="background: white none repeat scroll 0% 0%; text-align: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="left"><span style="font-size: 11pt; font-weight: normal;">Some common utilities used:<o:p></o:p></span></p> <p class="MsoTitle" style="background: white none repeat scroll 0% 0%; text-align: left; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;" align="left"><span style="font-size: 11pt; color: red; font-weight: normal;"><o:p> </o:p></span></p> <table class="MsoNormalTable" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0"> <tbody><tr> <td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 0.45in;" valign="top" width="43"> <p class="MsoTitle"><span style="font-size: 11pt; color: black; font-weight: normal;">SL no<o:p></o:p></span></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"> <p class="MsoTitle"><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Utility<o:p></o:p></span></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 4.45in;" valign="top" width="427"> <p class="MsoTitle"><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Function<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.45in;" valign="top" width="43"> <p class="MsoTitle"><span style="font-size: 11pt; color: black; font-weight: normal;">1<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"> <p class="MsoTitle" style="text-align: left;" align="left"><span style="font-size: 11pt; color: red; font-weight: normal;">IEBGENER<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.45in;" valign="top" width="427"> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Copy one sequential file to another<o:p></o:p></span></p> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Create datasets with input dataset as DUMMY<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.45in;" valign="top" width="43"> <p class="MsoTitle"><span style="font-size: 11pt; color: black; font-weight: normal;">2<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"> <p class="MsoTitle" style="text-align: left;" align="left"><span style="font-size: 11pt; color: red; font-weight: normal;">IEBCOPY<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.45in;" valign="top" width="427"> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Copy the partitioned datasets <o:p></o:p></span></p> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Compress the partitioned datasets<o:p></o:p></span></p> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Include members of PDS within a copy transaction<o:p></o:p></span></p> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Exclude members of PDS with in a copy transaction<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.45in;" valign="top" width="43"> <p class="MsoTitle"><span style="font-size: 11pt; color: black; font-weight: normal;">3<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"> <p class="MsoTitle" style="text-align: left;" align="left"><span style="font-size: 11pt; color: red; font-weight: normal;">IEHPROGM<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.45in;" valign="top" width="427"> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Catalog datasets<o:p></o:p></span></p> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Un-catalog datasets<o:p></o:p></span></p> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Rename the datasets<o:p></o:p></span></p> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Create the index for a generation data groups<o:p></o:p></span></p> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Delete the Index for a generation data groups<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.45in;" valign="top" width="43"> <p class="MsoTitle"><span style="font-size: 11pt; color: black; font-weight: normal;">4<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"> <p class="MsoTitle" style="text-align: left;" align="left"><span style="font-size: 11pt; color: red; font-weight: normal;">IEBCOMPR<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.45in;" valign="top" width="427"> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Compare two partitioned datasets<o:p></o:p></span></p> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Compare two sequential datasets<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.45in;" valign="top" width="43"> <p class="MsoTitle"><span style="font-size: 11pt; color: black; font-weight: normal;">5<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"> <p class="MsoTitle" style="text-align: left;" align="left"><span style="font-size: 11pt; color: red; font-weight: normal;">IEFBR14<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.45in;" valign="top" width="427"> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Create a empty dataset<o:p></o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 0.45in;" valign="top" width="43"> <p class="MsoTitle"><span style="font-size: 11pt; color: black; font-weight: normal;">6<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 1.25in;" valign="top" width="120"> <p class="MsoTitle" style="text-align: left;" align="left"><span style="font-size: 11pt; color: red; font-weight: normal;">IEEPROGM<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 4.45in;" valign="top" width="427"> <p class="MsoTitle" style="margin-left: 0.25in; text-align: left; text-indent: -0.25in;" align="left"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol; color: rgb(17, 17, 17); font-weight: normal;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; color: rgb(17, 17, 17); font-weight: normal;">Create generation data groups<o:p></o:p></span></p> </td> </tr> </tbody></table> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><b><span style="font-size: 11pt; color: black;"><o:p> </o:p></span></b></p> <b><span style="font-size: 11pt; font-family: "Times New Roman"; color: black;">
<br /> </span></b> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><b><span style="font-size: 11pt; color: black;"><o:p> </o:p></span></b></p> <h2 style=""><a name="_Toc520879310"><!--[if !supportLists]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><span style="">1.9.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;">ABEND CODES</span></a><span style="font-size: 14pt; font-family: Arial; color: rgb(255, 102, 0); text-decoration: none;"><o:p></o:p></span></h2> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><b><span style="font-size: 11pt; color: black;"><o:p> </o:p></span></b></p> <table class="MsoNormalTable" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0"> <tbody><tr> <td style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 29.2pt;" valign="top" width="39"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: black;">SL No<o:p></o:p></span></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 97.95pt;" valign="top" width="131"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: black;">Codes<o:p></o:p></span></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 315.65pt;" valign="top" width="421"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: black;">Explanation<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 29.2pt;" valign="top" width="39"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: rgb(17, 17, 17);">1<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 97.95pt;" valign="top" width="131"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: red;">S0C4<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 315.65pt;" valign="top" width="421"> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">Caused by the subscript being out of range<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 29.2pt;" valign="top" width="39"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: rgb(17, 17, 17);">2<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 97.95pt;" valign="top" width="131"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: red;">S0C5<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 315.65pt;" valign="top" width="421"> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">Caused by invalid address specification. i.e. The address points to an instruction, control word or data outside the available real storage<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 29.2pt;" valign="top" width="39"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: rgb(17, 17, 17);">3<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 97.95pt;" valign="top" width="131"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: red;">S0C7<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 315.65pt;" valign="top" width="421"> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">Caused by a bad data. i.e. Data exception. When we are moving an alphanumeric field to a numeric computational field this Abend occurs. The result is an Abend failure<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 29.2pt;" valign="top" width="39"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: rgb(17, 17, 17);">4<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 97.95pt;" valign="top" width="131"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: red;">S222<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 315.65pt;" valign="top" width="421"> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">Caused by a job being cancelled by the operator, due to a request by the program for an unavailable resource.<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 29.2pt;" valign="top" width="39"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: rgb(17, 17, 17);">5<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 97.95pt;" valign="top" width="131"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: red;">S237<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 315.65pt;" valign="top" width="421"> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">Caused by end of volume being encountered.<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 29.2pt;" valign="top" width="39"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: rgb(17, 17, 17);">6<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 97.95pt;" valign="top" width="131"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: red;">S322<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 315.65pt;" valign="top" width="421"> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">Caused when CPU time assigned to the job, job step, or procedure has been exceeded. i.e. Time out error.<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 29.2pt;" valign="top" width="39"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: rgb(17, 17, 17);">7<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 97.95pt;" valign="top" width="131"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: red;">S413<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 315.65pt;" valign="top" width="421"> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">This abend occurs if the DD statement referenced by UNIT=AFF statement is not closed before the DD statement that comes before it.<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 29.2pt;" valign="top" width="39"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: rgb(17, 17, 17);">8<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 97.95pt;" valign="top" width="131"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: red;">S522<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 315.65pt;" valign="top" width="421"> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">Caused when a wait state exceeds an installation-defined time limit.<o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 29.2pt;" valign="top" width="39"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: rgb(17, 17, 17);">9<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 97.95pt;" valign="top" width="131"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: red;">SB37<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 315.65pt;" valign="top" width="421"> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">Caused by lack of sufficient Secondary space <o:p></o:p></span></p> </td> </tr> <tr> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 29.2pt;" valign="top" width="39"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: rgb(17, 17, 17);">10<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 97.95pt;" valign="top" width="131"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: red;">SD37<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 315.65pt;" valign="top" width="421"> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">Caused by lack of sufficient Primary space<o:p></o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt; padding: 0in 5.4pt; width: 29.2pt;" valign="top" width="39"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: rgb(17, 17, 17);">11<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 97.95pt;" valign="top" width="131"> <p style="margin: 0in 0in 0.0001pt; text-align: center;" align="center"><span style="font-size: 11pt; color: red;">SE37<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 315.65pt;" valign="top" width="421"> <p style="margin: 0in 0in 0.0001pt; text-align: justify;"><span style="font-size: 11pt; color: rgb(17, 17, 17);">Caused by lack of space for PDS (Partitioned data set)<o:p></o:p></span></p> </td> </tr> </tbody></table> <p class="MsoBodyTextIndent" style="margin: 0in 9pt 0.0001pt 0in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-47404223788952834362008-07-17T23:08:00.001-07:002008-12-23T21:45:21.640-08:00Mainframe question papers<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="Street"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="address"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="State"></o:smarttagtype><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]><object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id="ieooui"></object> <style> st1\:*{behavior:url(#ieooui) } </style> <![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:"MS Mincho"; panose-1:2 2 6 9 4 2 5 8 3 4; mso-font-alt:"‚l‚r –¾’©"; mso-font-charset:128; mso-generic-font-family:modern; mso-font-pitch:fixed; mso-font-signature:-1610612033 1757936891 16 0 131231 0;} @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@MS Mincho"; panose-1:2 2 6 9 4 2 5 8 3 4; mso-font-charset:128; mso-generic-font-family:modern; mso-font-pitch:fixed; mso-font-signature:-1610612033 1757936891 16 0 131231 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} h1 {mso-style-next:Normal; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:1; font-size:16.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-font-kerning:0pt; mso-fareast-language:EN-US; font-weight:normal;} h2 {mso-style-next:Normal; margin-top:0in; margin-right:-9.0pt; margin-bottom:0in; margin-left:.25in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:2; font-size:16.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US; font-weight:normal;} h3 {mso-style-next:Normal; margin-top:0in; margin-right:-1.25in; margin-bottom:0in; margin-left:.25in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:3; font-size:16.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US; font-weight:normal;} h4 {mso-style-next:Normal; margin-top:0in; margin-right:-1.25in; margin-bottom:0in; margin-left:-.25in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:4; font-size:16.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US; font-weight:normal;} h5 {mso-style-next:Normal; margin-top:0in; margin-right:-1.25in; margin-bottom:0in; margin-left:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:5; font-size:16.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US; font-weight:normal;} h6 {mso-style-next:Normal; margin-top:0in; margin-right:-1.25in; margin-bottom:0in; margin-left:0in; margin-bottom:.0001pt; text-align:center; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:6; font-size:16.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US; font-weight:normal;} p.MsoHeading7, li.MsoHeading7, div.MsoHeading7 {mso-style-next:Normal; margin:0in; margin-bottom:.0001pt; text-align:center; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:7; font-size:16.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoHeading8, li.MsoHeading8, div.MsoHeading8 {mso-style-next:Normal; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:8; font-size:18.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoHeading9, li.MsoHeading9, div.MsoHeading9 {mso-style-next:Normal; margin-top:0in; margin-right:-27.0pt; margin-bottom:0in; margin-left:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:9; font-size:16.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoBodyText, li.MsoBodyText, div.MsoBodyText {margin-top:0in; margin-right:-1.0in; margin-bottom:0in; margin-left:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:16.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoBodyTextIndent, li.MsoBodyTextIndent, div.MsoBodyTextIndent {margin-top:0in; margin-right:.5in; margin-bottom:0in; margin-left:0in; margin-bottom:.0001pt; text-indent:.5in; mso-pagination:widow-orphan; font-size:12.0pt; mso-bidi-font-size:15.5pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoBodyText2, li.MsoBodyText2, div.MsoBodyText2 {margin-top:0in; margin-right:.5in; margin-bottom:0in; margin-left:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; mso-bidi-font-size:15.5pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoBlockText, li.MsoBlockText, div.MsoBlockText {margin-top:0in; margin-right:-1.0in; margin-bottom:0in; margin-left:9.0pt; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:16.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoPlainText, li.MsoPlainText, div.MsoPlainText {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Courier New"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in 27.0pt 63.0pt .75in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:41056023; mso-list-template-ids:-902269922;} @list l0:level1 {mso-level-tab-stop:.25in; mso-level-number-position:left; margin-left:.25in; text-indent:-.25in;} @list l0:level2 {mso-level-text:"%1\.%2\."; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.55in; text-indent:-.3in;} @list l0:level3 {mso-level-text:"%1\.%2\.%3\."; mso-level-tab-stop:1.0in; mso-level-number-position:left; margin-left:.85in; text-indent:-.35in;} @list l0:level4 {mso-level-text:"%1\.%2\.%3\.%4\."; mso-level-tab-stop:1.5in; mso-level-number-position:left; margin-left:1.2in; text-indent:-.45in;} @list l0:level5 {mso-level-text:"%1\.%2\.%3\.%4\.%5\."; mso-level-tab-stop:2.0in; mso-level-number-position:left; margin-left:1.55in; text-indent:-.55in;} @list l0:level6 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\."; mso-level-tab-stop:2.25in; mso-level-number-position:left; margin-left:1.9in; text-indent:-.65in;} @list l0:level7 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\."; mso-level-tab-stop:2.75in; mso-level-number-position:left; margin-left:2.25in; text-indent:-.75in;} @list l0:level8 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\."; mso-level-tab-stop:3.25in; mso-level-number-position:left; margin-left:2.6in; text-indent:-.85in;} @list l0:level9 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9\."; mso-level-tab-stop:3.5in; mso-level-number-position:left; margin-left:3.0in; text-indent:-1.0in;} @list l1 {mso-list-id:43678734; mso-list-type:hybrid; mso-list-template-ids:1229981266 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l1:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l2 {mso-list-id:63456393; mso-list-type:hybrid; mso-list-template-ids:-682956254 -1281866280 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l2:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:37.5pt; mso-level-number-position:left; margin-left:37.5pt; text-indent:-19.5pt;} @list l3 {mso-list-id:146016418; mso-list-type:hybrid; mso-list-template-ids:-1553294630 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l3:level1 {mso-level-start-at:9; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l4 {mso-list-id:147672574; mso-list-type:hybrid; mso-list-template-ids:-1799828732 67698709 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l4:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l5 {mso-list-id:164129817; mso-list-type:hybrid; mso-list-template-ids:615652358 -325968992 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l5:level1 {mso-level-start-at:5; mso-level-number-format:arabic-leading-zero; mso-level-text:%1; mso-level-tab-stop:78.0pt; mso-level-number-position:left; margin-left:78.0pt; text-indent:-33.0pt;} @list l6 {mso-list-id:218395816; mso-list-type:hybrid; mso-list-template-ids:865641364 1255177500 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l6:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:37.5pt; mso-level-number-position:left; margin-left:37.5pt; text-indent:-19.5pt;} @list l7 {mso-list-id:222523168; mso-list-type:hybrid; mso-list-template-ids:-893194664 67698703 1284785846 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l7:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l7:level2 {mso-level-number-format:alpha-upper; mso-level-tab-stop:72.75pt; mso-level-number-position:left; margin-left:72.75pt; text-indent:-18.75pt;} @list l8 {mso-list-id:259219695; mso-list-type:hybrid; mso-list-template-ids:-1899571784 460242990 -1507665290 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l8:level1 {mso-level-number-format:alpha-upper; mso-level-text:"\(%1\)"; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.5in;} @list l8:level2 {mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} @list l9 {mso-list-id:283269781; mso-list-type:hybrid; mso-list-template-ids:-710005458 -1569545572 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l9:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:36.75pt; mso-level-number-position:left; margin-left:36.75pt; text-indent:-18.75pt;} @list l10 {mso-list-id:346490090; mso-list-type:hybrid; mso-list-template-ids:-1449756448 537016700 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l10:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:36.75pt; mso-level-number-position:left; margin-left:36.75pt; text-indent:-18.75pt;} @list l11 {mso-list-id:356543098; mso-list-type:hybrid; mso-list-template-ids:854772066 67698703 991599932 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l11:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l11:level2 {mso-level-number-format:alpha-upper; mso-level-text:"%2\)"; mso-level-tab-stop:74.25pt; mso-level-number-position:left; margin-left:74.25pt; text-indent:-20.25pt;} @list l12 {mso-list-id:452558140; mso-list-type:hybrid; mso-list-template-ids:894858628 1797659570 -562005468 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l12:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:37.5pt; mso-level-number-position:left; margin-left:37.5pt; text-indent:-19.5pt;} @list l12:level2 {mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} @list l13 {mso-list-id:476000122; mso-list-type:hybrid; mso-list-template-ids:1636759592 408981334 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l13:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:12.0pt;} @list l14 {mso-list-id:565917456; mso-list-template-ids:1179559758;} @list l14:level1 {mso-level-start-at:300; mso-level-text:%1; mso-level-tab-stop:117.0pt; mso-level-number-position:left; margin-left:117.0pt; text-indent:-117.0pt;} @list l14:level2 {mso-level-start-at:305; mso-level-text:%1-%2; mso-level-tab-stop:333.0pt; mso-level-number-position:left; margin-left:333.0pt; text-indent:-117.0pt;} @list l14:level3 {mso-level-text:"%1-%2\.%3"; mso-level-tab-stop:549.0pt; mso-level-number-position:left; margin-left:549.0pt; text-indent:-117.0pt;} @list l14:level4 {mso-level-text:"%1-%2\.%3\.%4"; mso-level-tab-stop:765.0pt; mso-level-number-position:left; margin-left:765.0pt; text-indent:-117.0pt;} @list l14:level5 {mso-level-text:"%1-%2\.%3\.%4\.%5"; mso-level-tab-stop:981.0pt; mso-level-number-position:left; margin-left:981.0pt; text-indent:-117.0pt;} @list l14:level6 {mso-level-text:"%1-%2\.%3\.%4\.%5\.%6"; mso-level-tab-stop:1197.0pt; mso-level-number-position:left; margin-left:1197.0pt; text-indent:-117.0pt;} @list l14:level7 {mso-level-text:"%1-%2\.%3\.%4\.%5\.%6\.%7"; mso-level-tab-stop:1413.0pt; mso-level-number-position:left; margin-left:1413.0pt; text-indent:-117.0pt;} @list l14:level8 {mso-level-text:"%1-%2\.%3\.%4\.%5\.%6\.%7\.%8"; mso-level-tab-stop:1629.0pt; mso-level-number-position:left; margin-left:1629.0pt; text-indent:-117.0pt;} @list l14:level9 {mso-level-text:"%1-%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9"; mso-level-tab-stop:-1431.8pt; mso-level-number-position:left; margin-left:-1431.8pt; text-indent:-117.0pt;} @list l15 {mso-list-id:576132210; mso-list-type:hybrid; mso-list-template-ids:414607578 -931785280 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l15:level1 {mso-level-tab-stop:.45in; mso-level-number-position:left; margin-left:.45in; text-indent:-.35in;} @list l16 {mso-list-id:596524540; mso-list-type:hybrid; mso-list-template-ids:-573506988 67698703 67698713 67698715 67698703 -47441950 67698715 67698703 67698713 67698715;} @list l16:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l16:level2 {mso-level-number-format:alpha-lower; mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} @list l16:level3 {mso-level-number-format:roman-lower; mso-level-tab-stop:1.5in; mso-level-number-position:right; text-indent:-9.0pt;} @list l16:level4 {mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in;} @list l16:level5 {mso-level-number-format:alpha-upper; mso-level-tab-stop:180.75pt; mso-level-number-position:left; margin-left:180.75pt; text-indent:-18.75pt;} @list l17 {mso-list-id:602418041; mso-list-type:hybrid; mso-list-template-ids:973260712 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l17:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l18 {mso-list-id:605502042; mso-list-type:hybrid; mso-list-template-ids:-1837983976 67698703 497556546 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l18:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l18:level2 {mso-level-number-format:alpha-upper; mso-level-text:"\(%2\)"; mso-level-tab-stop:1.25in; mso-level-number-position:left; margin-left:1.25in; text-indent:-.5in;} @list l19 {mso-list-id:642588759; mso-list-type:hybrid; mso-list-template-ids:1714198 -1630369912 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l19:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:37.5pt; mso-level-number-position:left; margin-left:37.5pt; text-indent:-19.5pt;} @list l20 {mso-list-id:812672187; mso-list-type:hybrid; mso-list-template-ids:682104112 493927986 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l20:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:37.5pt; mso-level-number-position:left; margin-left:37.5pt; text-indent:-19.5pt;} @list l21 {mso-list-id:881551452; mso-list-type:hybrid; mso-list-template-ids:-945756612 927250748 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l21:level1 {mso-level-start-at:3; mso-level-tab-stop:.2in; mso-level-number-position:left; margin-left:.1in; text-indent:-.15in;} @list l22 {mso-list-id:934829163; mso-list-type:hybrid; mso-list-template-ids:-668846156 -1697365540 2140704076 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l22:level1 {mso-level-number-format:alpha-upper; mso-level-text:"\(%1\)"; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.5in;} @list l22:level2 {mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} @list l23 {mso-list-id:1188954719; mso-list-type:hybrid; mso-list-template-ids:1749844254 51964106 742164942 -101550322 67698703 67698713 67698715 67698703 67698713 67698715;} @list l23:level1 {mso-level-number-format:arabic-leading-zero; mso-level-text:%1; mso-level-tab-stop:42.0pt; mso-level-number-position:left; margin-left:42.0pt; text-indent:-24.0pt;} @list l23:level2 {mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} @list l23:level3 {mso-level-number-format:alpha-upper; mso-level-text:"\(%3\)"; mso-level-tab-stop:135.0pt; mso-level-number-position:left; margin-left:135.0pt; text-indent:-.5in;} @list l24 {mso-list-id:1189291453; mso-list-type:hybrid; mso-list-template-ids:-893104614 -826657888 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l24:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:37.5pt; mso-level-number-position:left; margin-left:37.5pt; text-indent:-19.5pt;} @list l25 {mso-list-id:1239483467; mso-list-type:hybrid; mso-list-template-ids:-416242756 1347998074 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l25:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:37.5pt; mso-level-number-position:left; margin-left:37.5pt; text-indent:-19.5pt;} @list l26 {mso-list-id:1255629955; mso-list-type:hybrid; mso-list-template-ids:-1855022948 -500562186 1334349622 327182632 67698703 67698713 67698715 67698703 67698713 67698715;} @list l26:level1 {mso-level-number-format:arabic-leading-zero; mso-level-text:%1; mso-level-tab-stop:45.75pt; mso-level-number-position:left; margin-left:45.75pt; text-indent:-27.75pt;} @list l26:level2 {mso-level-start-at:63; mso-level-number-format:bullet; mso-level-text:; mso-level-tab-stop:81.75pt; mso-level-number-position:left; margin-left:81.75pt; text-indent:-27.75pt; font-family:Symbol; mso-fareast-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman";} @list l26:level3 {mso-level-tab-stop:117.0pt; mso-level-number-position:left; margin-left:117.0pt; text-indent:-.25in;} @list l27 {mso-list-id:1390378621; mso-list-type:hybrid; mso-list-template-ids:699688604 543332008 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l27:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-weight:bold;} @list l28 {mso-list-id:1395858174; mso-list-type:hybrid; mso-list-template-ids:2069934752 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l28:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l29 {mso-list-id:1399013702; mso-list-type:hybrid; mso-list-template-ids:-1987773080 -1719640716 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l29:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:36.75pt; mso-level-number-position:left; margin-left:36.75pt; text-indent:-18.75pt;} @list l30 {mso-list-id:1411123496; mso-list-template-ids:101327306;} @list l30:level1 {mso-level-tab-stop:.25in; mso-level-number-position:left; margin-left:.25in; text-indent:-.25in;} @list l30:level2 {mso-level-number-format:none; mso-level-reset-level:level1; mso-level-text:"6\.1"; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.3in; text-indent:-.05in;} @list l30:level3 {mso-level-text:"%1\.%2\.%3\."; mso-level-tab-stop:1.0in; mso-level-number-position:left; margin-left:.85in; text-indent:-.35in;} @list l30:level4 {mso-level-text:"%1\.%2\.%3\.%4\."; mso-level-tab-stop:1.5in; mso-level-number-position:left; margin-left:1.2in; text-indent:-.45in;} @list l30:level5 {mso-level-text:"%1\.%2\.%3\.%4\.%5\."; mso-level-tab-stop:2.0in; mso-level-number-position:left; margin-left:1.55in; text-indent:-.55in;} @list l30:level6 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\."; mso-level-tab-stop:2.25in; mso-level-number-position:left; margin-left:1.9in; text-indent:-.65in;} @list l30:level7 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\."; mso-level-tab-stop:2.75in; mso-level-number-position:left; margin-left:2.25in; text-indent:-.75in;} @list l30:level8 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\."; mso-level-tab-stop:3.25in; mso-level-number-position:left; margin-left:2.6in; text-indent:-.85in;} @list l30:level9 {mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9\."; mso-level-tab-stop:3.5in; mso-level-number-position:left; margin-left:3.0in; text-indent:-1.0in;} @list l31 {mso-list-id:1428887010; mso-list-type:hybrid; mso-list-template-ids:1985364646 -931785280 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l31:level1 {mso-level-tab-stop:.4in; mso-level-number-position:left; margin-left:.4in; text-indent:-.35in;} @list l32 {mso-list-id:1429229893; mso-list-type:hybrid; mso-list-template-ids:-2017285414 -2060001090 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l32:level1 {mso-level-number-format:arabic-leading-zero; mso-level-text:%1; mso-level-tab-stop:45.75pt; mso-level-number-position:left; margin-left:45.75pt; text-indent:-27.75pt;} @list l33 {mso-list-id:1505051368; mso-list-type:hybrid; mso-list-template-ids:-88997642 -1941822456 1562137532 683564454 67698703 67698713 67698715 67698703 67698713 67698715;} @list l33:level1 {mso-level-number-format:alpha-upper; mso-level-text:"\(%1\)"; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.5in;} @list l33:level2 {mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} @list l33:level3 {mso-level-start-at:9999; mso-level-text:%3; mso-level-tab-stop:274.5pt; mso-level-number-position:left; margin-left:274.5pt; text-indent:-175.5pt;} @list l34 {mso-list-id:1505589751; mso-list-type:hybrid; mso-list-template-ids:-756119970 2054431756 804675262 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l34:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:37.5pt; mso-level-number-position:left; margin-left:37.5pt; text-indent:-19.5pt;} @list l34:level2 {mso-level-number-format:alpha-upper; mso-level-text:"\(%2\)"; mso-level-tab-stop:1.25in; mso-level-number-position:left; margin-left:1.25in; text-indent:-.5in;} @list l35 {mso-list-id:1549759364; mso-list-type:hybrid; mso-list-template-ids:-1997241370 67698713 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l35:level1 {mso-level-number-format:alpha-lower; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l36 {mso-list-id:1553350546; mso-list-type:hybrid; mso-list-template-ids:-333136500 1711993606 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l36:level1 {mso-level-number-format:arabic-leading-zero; mso-level-text:%1; mso-level-tab-stop:2.5in; mso-level-number-position:left; margin-left:2.5in; text-indent:-1.5in;} @list l37 {mso-list-id:1559315018; mso-list-type:hybrid; mso-list-template-ids:-1228133928 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l37:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l38 {mso-list-id:1653752149; mso-list-type:hybrid; mso-list-template-ids:1794119584 -829666722 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l38:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:36.75pt; mso-level-number-position:left; margin-left:36.75pt; text-indent:-18.75pt;} @list l39 {mso-list-id:1920602351; mso-list-type:hybrid; mso-list-template-ids:-86604782 67698709 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l39:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l40 {mso-list-id:1974365594; mso-list-type:hybrid; mso-list-template-ids:32399298 -656276696 -41804942 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l40:level1 {mso-level-number-format:alpha-upper; mso-level-tab-stop:37.5pt; mso-level-number-position:left; margin-left:37.5pt; text-indent:-19.5pt;} @list l40:level2 {mso-level-number-format:arabic-leading-zero; mso-level-text:%2; mso-level-tab-stop:1.75in; mso-level-number-position:left; margin-left:1.75in; text-indent:-1.0in;} @list l40:level3 {mso-level-number-format:roman-lower; mso-level-tab-stop:1.5in; mso-level-number-position:right; text-indent:-9.0pt;} @list l40:level4 {mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PAGE1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>COBOL PRACTICE TEST<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">INDICATE WHAT IS WRONG IN THE FOLLOWING PARTIAL REFORD DESCRLIPTIONS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">A<span style=""> </span>01EMP-RECORD<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02EMP-ADDRESS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05STREET-NUMBER<span style=""> </span>PIC X(4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 STREET-NAME<span style=""> </span><span style=""> </span>PIC X(26)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>03SECOND-PART.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 CITY<span style=""> </span>PIC X(10)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 PIN-CODE<span style=""> </span>PIC X(6)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">B<span style=""> </span>01 INITILAL-RECORD<span style=""> </span>VALUE 120284<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02 DAY<span style=""> </span>PIC 99.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02MHT<span style=""> </span>PIC99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02 YEAR<span style=""> </span>PIC 99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">C<span style=""> </span>WORKING-STORAGE SECTION. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>FD<span style=""> </span>KARD-FILE. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>PIC X(80)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>KARD-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">2. INDICATE WHETHER OR NOT THE FOLLOWING PICTURE SPECIFICATIONS ARE CORRECT. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">A<span style=""> </span>$$$$Z(4).99<span style=""> </span>B<span style=""> </span>$9(4)ZZ.99<span style=""> </span>C.<span style=""> </span>A(4)BB<span style=""> </span>D.<span style=""> </span>+9(5).99CR<span style=""> </span>E. Z(5).Z9<span style=""> </span>F.<span style=""> </span>A(5)00<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">3. TO DESCRIBE A RECORD THE LEVEL NUMBER MAY BE CHOSEN FROM<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <ol style="margin-top: 0in;" start="1" type="A"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">01 TO 49 (BOTH INCLUSIVE)<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">01 TO 49 (BOTH INCLUSIVE) AND 77<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">ALL ODD NUMBERS FROM 01 TO 49 (BOTH INCLUSIVE)<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">ALL EVEN NUMBERS FROM 01 TO 49<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">01 TO 77 (BOTH INCLUSIVE)<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">NONE OF THE ABOVE.<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">4. INDICATE WHICH OF THE FOLLOWING IS AN INVALID PARAGRAPH NAME.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>A. 1234<span style=""> </span>B. ZZ99<span style=""> </span>C. ABC..5<span style=""> </span>D.<span style=""> </span>ABC+5<span style=""> </span>E.<span style=""> </span>PARA-123<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">5. INDICAATE WHILCH OF THE FOLLOWING IS CORRECT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>A.<span style=""> </span>ADD<span style=""> </span>A<span style=""> </span>B<span style=""> </span>GIVING<span style=""> </span>C<span style=""> </span>D.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>B.<span style=""> </span>ADD<span style=""> </span>A<span style=""> </span>TO<span style=""> </span>B<span style=""> </span>GIVING<span style=""> </span>C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>C.<span style=""> </span>ADD<span style=""> </span>A<span style=""> </span>TO<span style=""> </span>B<span style=""> </span>C<span style=""> </span>TO<span style=""> </span>D<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>D.<span style=""> </span>ADD<span style=""> </span>A<span style=""> </span>B<span style=""> </span>TO<span style=""> </span>C<span style=""> </span>D<span style=""> </span>GIVING<span style=""> </span>E<span style=""> </span>F<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.INDICATE WHICH OF THE FOLLOWING IS INCORECT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>A. SUBTRACT<span style=""> </span>A<span style=""> </span>B<span style=""> </span>C<span style=""> </span>FROM<span style=""> </span>D<span style=""> </span>E<span style=""> </span>F<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>B.<span style=""> </span>SUBTRACT<span style=""> </span>A<span style=""> </span>B<span style=""> </span>C<span style=""> </span>FROM<span style=""> </span>D<span style=""> </span><st1:place st="on">E<span style=""> </span>GILVILNG</st1:place><span style=""> </span>F<span style=""> </span>G<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>C.<span style=""> </span>SUBRTACT<span style=""> </span>A<span style=""> </span>FROM<span style=""> </span><span style=""> </span>D<span style=""> </span>B<span style=""> </span>FROM E<span style=""> </span>C<span style=""> </span>FROM<span style=""> </span>F.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>D. SUBRTACT<span style=""> </span>A<span style=""> </span>FROM<span style=""> </span>B<span style=""> </span>GIVING<span style=""> </span>D<span style=""> </span>E<span style=""> </span>F<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">7. INDICATE WHICH OF THE FOLLOWING IS CORRECT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>A. MULTIPLY<span style=""> </span>A<span style=""> </span>TIMES<span style=""> </span><span style=""> </span>B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">f<span style=""> </span>B.MULTIPLY<span style=""> </span>A<span style=""> </span>INTO<span style=""> </span>B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>C. MULTIPLY<span style=""> </span>A<span style=""> </span>BY<span style=""> </span>B<span style=""> </span>GIVILNG<span style=""> </span>C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>D. MULTIPLY<span style=""> </span>A<span style=""> </span>BY<span style=""> </span>B<span style=""> </span>BY<span style=""> </span>C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">8. THE COBOL COMPILER AT THE TILME OF COMPILATION INDICATES AN ERROR IN THE FOLLOWING STATEMENT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MULTILPLY<span style=""> </span>0.1<span style=""> </span>BY<span style=""> </span>A.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">WHICH OF THE FOLLOWING GIVES THE CORRECT CAUSE<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="1" type="A"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">‘A’ HAS A PIC CLAUSSE 9 (4) V99<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">‘A’ IS DECLARED IN THE FILE SECRTION AND NOT IN THE WORKING-STORAGE SECTION.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">‘A’ HAS A PIC CLAUSES ZZZ9.99<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">THE GIVING OPTION IS MISSING.<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">THE FOLLOWING ARE DATA DIVISIION ENTRIES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01 A.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02<span style=""> </span>B<span style=""> </span>OCCURS 10<span style=""> </span>TIMES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>03<span style=""> </span>C<span style=""> </span>PIC 999<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>03<span style=""> </span>D<span style=""> </span>OCCURS<span style=""> </span>15 TIMES<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>04<span style=""> </span>E<span style=""> </span>PIC 999<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>04<span style=""> </span>F<span style=""> </span>OCCURS<span style=""> </span>20 TIMES<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>G<span style=""> </span>PIC XXX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>H<span style=""> </span>PIC 999<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="9" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">DESTERMINES THES TOTAL NUMBESR OF BYTES<span style=""> </span>IN ‘A’ FROM<span style=""> </span>ABOVE DATA DIVISION ENTRIES.<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <ol style="margin-top: 0in;" start="10" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">INDICATE WHICH ONE OF THE FOLLOWING IS CORRECTLY REFESRED AS AN IDENTIFIER IN THE PROCEDURE DIVISION.<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">A. D(9)<span style=""> </span>B. E(15,10)<span style=""> </span>C. G(8,12)<span style=""> </span>D. C(20)<span style=""> </span>E. B(6)<span style=""> </span>F.<span style=""> </span>F(5,10)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">PAGE-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>COBOL TEST<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>PART-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>True or False<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <ol style="margin-top: 0in;" start="1" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">FILE STATUS </span><span style="">clause is used to test the status after 1-O operation<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The division that specifies the computer devices to be used is these DATA DIVISION</span><span style=""><o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The INPUT OUTPUT SECTION of the ENVIRONMENT DIVISION assigns the file-names</span><span style=""><o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">A maximum of three files may be defined in the INPUT-OUTPUT SECTION<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">A File is a collection of records each of which consists of a collection of fields<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">Numeric Interals may contain as many as 30 Characters.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">In a nonnumeric move high-order nonfilled positions are replaced with paces<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">A VALUE clauses may be used in the File Section to initialize fields<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">DIVIDE 0 INTO A GIVING B will result in an ON SIZE ERROR condition<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The GIVING clauses must be used when a REMAINDER is specified<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>The ASSIGN clause associates a printer to main memory<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The DELETE verb deletes the mentioned field from the file<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The identifiers specified in both the called and calling program must be same<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">COBOL is ideally suited for scientific as well as business applications <o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">An OCCURS clause may only be used to define entries in the FILE<span style=""> </span>SECTION<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>PART-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">FILL IN THE BLANKS<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <ol style="margin-top: 0in;" start="1" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">Two techniques for simplifying the design of a COBOL program and facilitating<span style=""> </span>debugging are called ………………..and<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The REDEFINES clause must not be used for items in level numbers……..&…………..<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">…………..<span style=""> </span>………….<span style=""> </span>…………….<span style=""> </span>Are the entries must be coded in Area a<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The INVALID KEY option tests the validity of the<span style=""> </span>………….key<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">To read an indexed file sequentially beginning at some point others than the first record in the file you must use the ………..statement<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">With the ………….statement you can include prewritten entries in<span style=""> </span>your program<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The ordering which defines the relative rank of all characters in a computer system is called………………<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">In file organization omission of the access clause results in…………..<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">A……………statement is used for accessing a subprogram<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">A…………. clause is used in the data<span style=""> </span>division to ensure that a field consisting of all zeros will print as blank<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">A…………is assigned to a specific value or a range of values that an identifier can assumes.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">A…………….statement without a para name which is followed by all instructions to be<span style=""> </span>executed at that point.</span><span style=""><o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">……………&…………clause can be used to initialize the tables.</span><span style=""><o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The …….. statement is used to replace characters in an<span style=""> </span>input field with other characters.</span><span style=""><o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">To read an Indexed file both randomly and sequentially in the same program the preferred access mode is………..</span><span style=""><o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PART_C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">Answer all the Questions<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">1 How many times will the paragraph named 400- PROCESS-RTN be executed by the fp;;pwomg PESRFORM statement?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <ol style="margin-top: 0in;" start="1" type="a"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">PEREFORM 400-PROCESS-RTN </span><span style=""><o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>VARYING X FROM 1 BY 1UNTIL X=10<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">B. PERFORM 400-PROCESS-RNT<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>VARYING X FROM 1 BY 1 UNTIL X>10<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">C. PERFORM 400-PROCESS-RTN<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>VARYING<span style=""> </span>X FROM<span style=""> </span>0 BY 1 UNTIL X=10<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">How many tomes PART- b gets executed if N is 5<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style="">PART-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style="">PERFORM PARA-B N TIMES<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style="">PART-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style="">ACCEPT WA-A <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style=""><span style=""> </span>COMPUTE WS.SUM=WS.SUM + WS-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style="">PART-C<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style="">DISPLAY WS-SUM<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style=""><span style=""> </span>STOP RUN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">3.DATA DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01 WS-A<span style=""> </span>PIC X (10)JUSTIFIED RIGHT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROCEDURE DILVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><st1:place st="on">PARA</st1:place>-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>ACCEPT WS-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>IF WS-A NEGATIVE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY IT IS NEGATIVE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ELSE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY IT IS POSITVE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>END-F<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>STOP RUN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">If WS.A =’CBSI’ what is the output?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">4. DATA DIVISION<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01 WS.A<span style=""> </span>PIC<span style=""> </span>S99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PARA.A.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ACCEPT<span style=""> </span>WS.A.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>IF WA.A IS NEGATIVE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY “IT IS NEGATIVE”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ELSE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY “IT IS POSITVE”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>END-IF<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>STOP RUN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">IF WA.A is –20, what is the output? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">5. <st1:place st="on">PARA</st1:place>-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE 0 TO X<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM PARA-B UNTIL X = 0<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PARA-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ACCEPT WS-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>COMPUTE WS-SUM = WS.SUM +WA-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ADD 1 TO X<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PARA-C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY WS-SUM<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">How many times PARA-B gets executed?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PAGE-3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">COBOL PRACTICE TEST-3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <ol style="margin-top: 0in;" start="1" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">TWO TECHINQUES FOR SIMPLIFTYING THE DESIGN OF A CONOL PROGRAM AND ACILITATING DEBUGGING ARE…………&……….<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">AN ……………. STATEMENT INDICATES WHICH FILES ARE INPUT AND WHICH ARE OUTPU<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">(T OR F) A PERFORM…….UNTIL INSTRUCTION EXECUTES A MODULE REPEATEDLY UNTIL SOME CONDITION IS MET<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">(T<span style=""> </span>OR F)IF 1370 IS READ INTO A FIELD WITH A PIC CLAUSE OF 99V99 IT WILL STORE AS 13^70<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">(T OR F)IF THE PRECEEDING FIELD WERE MOVED TO AN OUTPUT AREA WILTH A PIC CLAUSSE OF 99.99 IT WOULD BE PRINTED AS 13.70<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">(T OR F) FILE 12 IS VALID FILE NAME.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">WHEN LABEL RECORDS ARE STANDARD IS SPECIFIED HEADER AND TRAILER LABELS WILL BE…………ON INPUT FILES AND ………..ON OUTPUT FILES.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">FOR PRINT FILES LABNEL RECORDS ARE…………….<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">THE BLOCK CONTAINS CLAUSE IS USED ONLY FOR………..<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">10. WRITE AN FE ENTRY FOR AN INPUT SALES FILLF B AND A DISK, BLOCKED 20 WITH 100 POSITION RECORDS AND STANDARE LABELS<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">11. MAKE ANY NECESSARY CORRECTIONS TO THE FOLLOWING IN DATA DIVISION DATA DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>FILE-SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>FD SALF FILE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>LABELS ARE OMITIED.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">12. LEVEL……..TO………MAY NE USED TO REPRESENT FIELDS WITHIN A RECORD<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">13. (T OR F) THE <st1:street st="on"><st1:address st="on">WORD FILLER IN PLACE</st1:address></st1:street> OF A NLANK FIELD NAME IS OPTIONAL IN COBOL 74<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">14. TO PRINT ‘ZEROS’ RESULTS IN THE PRINTING OF ………TO PRINT ZEROS RESULTS IN THE PRINTING OF ……..ZEROS IS CALLED A ……..<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">15. THE COBOL RESERVE WORD ………….CAN BE USED TO DENOTE AN AREA OF A RECORD THAT WILL NOT BNE USED FOR PROCESSING<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">16. WHAT ILF ANYTHING IS WRONG IN THE FOLLOWING NUMERIC LITERALS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>(A) 123<span style=""> </span>(B) 15.8<span style=""> </span>(C) 1,000,000,00<span style=""> </span>(D) $38.90 (E) 58<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">17. WHAT IF ANYTHING IS WRONG IN THE FOLLOWING NON-NUMERIC LITERALS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>A. ‘THIS IS CODE-1’<span style=""> </span>B. ‘INPUT’<span style=""> </span>C.’ZERO’<span style=""> </span>D. ‘123’<span style=""> </span>E.’<span style=""> </span>‘<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">18. A<span style=""> </span>PIC CLAUSE OF 9V9 INDICATES A………POSITION NUMERIC DATA FIELD.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">19. (T OR F) PIC CLAUSE CANNOT BE DESCRIBNED ON THE GROUP LEVEL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">20. (T OR F) A DATRA NAME OR IDENTIFIER CANNOT EXCEED 30 CHARACTERS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">21. LEVEL NO ………IS USED FOR CONSTANTS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">22. IN SEQENTIAL FILES, FILE IS OPENED IN ………MODE TO<span style=""> </span>APPEND A RECORD. <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">23. WHEN A FILE IS OPENED IN OUTPUT MIODE…………,……….&………. ARE THE OPERATIONS PERFORMED.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">24. (T OR F) THE ORDER IN WHICH FIELDS ARE SPECIFIED IN REOCRD DESCRIPTION IS NOT SIGNIFICANT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">25. CORRECT THE FOLLOWING DIVISION ENTRIES<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>DATA DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>FILE_SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>FD SALES HERE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>01 INPUT<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>05.TRANS.NO<span style=""> </span>PICTURE 9999<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>05.TRANSACTION NAME<span style=""> </span>PICTURE 20X<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>05.ADDRESS<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>10 NUMBER<span style=""> </span>PICTURE XXXX<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>10 STREET<span style=""> </span>PICTURE A(15)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>10 CITY<span style=""> </span>PICTURE AAA<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>05.CREDIT RATING<span style=""> </span>PICTURE XX<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>10 CREDIT-CODE<span style=""> </span>PICTURE X<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>10 LIMIT OF PURCHASE <span style=""> </span>PICTURE X<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>05.UNIT-PRICE<span style=""> </span>PICTURE 99.9<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>05.QTY-PURCHASED<span style=""> </span>PICTURE<span style=""> </span>9(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>05.DISCOUNT-%<span style=""> </span>PICTURE V99<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">26. STATEMENTS ARE EXECUTED IN ORDER __________UNLESS A ___________ OCCURS.<span style=""> </span>(2)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">27. THE PERFORM PARAGRAPH-NAME UNTIL (CONDITION) TRANSFERS CONTROL TO THE ____________. WHEN THE CONDITION SPECIFIED IS MET. CONTROL RETURNS TO _________.<span style=""> </span>(2)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in; text-align: center;" align="center"><b><span style="">PAGE-4<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">COMPLETE THE FOLLOWING SENTENCE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">A HYPHEN (-) IN COLUMN 7 IS USED TO INDICATE________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">AN ASTERISK (*) IN COLUMN 7 IS USED TO INDICATE________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">A SLASH (/) IN CLOUMN 7 IS USED TO INDICATE________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">COLUMNS 1 TO 6 ON THE CODING SHEET IS USED FOR ________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(E)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">COLUMNS 73 TO 80 ON THE CODING SHEET IS USED TO FOR ________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(F)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">78 LEVE NUMBER IS USED FOR ________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style="">2.________AND________ STATEMENTS ARE REQUIRED FOR MINIMUM NUMBER OF LINES SUCCESSFULLY COMPILE THE COBOL PROGRAM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">________,________,________AND ________STATEMENTS ARE REQUILRED FOR MINIUMUM NUMBER OF LINES SUCCESSFULLY RUN THE COBOL PROGRAM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">INDICATE WHICH OF THE FOLLOWING CORRECTLY COMPLETES THE STATEMENTS 77 LEVEL ENTRIES ARE PERMITTED IN ________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 135pt; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">ANY PART OF THE DATA DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 135pt; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">ANY PART OF THE FILE SECTION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 135pt; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">ANY PART OF THE WORKING-STORAGE SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 135pt; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">BEFORE ALL 01 LEVEL WNTRIES IN THE WORKING- STORAGE SECTION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">SHOW HOW THE FOLLOWING VALUES MUST APPEAR ON THE CARDS SO THAT THESE CAN BE READ WITH THE CORRESPONDILNG PICTURE<span style=""> </span>SPECIFICATIONS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>SENDING VALUES <span style=""> </span>PICTURE CLAUSE<span style=""> </span>VALUES<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">* (A) 12.38<span style=""> </span><span style=""> </span>S99V99<span style=""> </span>__________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(B) 45000<span style=""> </span>99PPP<span style=""> </span>___________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>© .00123<span style=""> </span>SPP999<span style=""> </span>___________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(D) XYZ<span style=""> </span>A (4)<span style=""> </span>___________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(E) 8765<span style=""> </span>$9,999,99<span style=""> </span>___________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(F)<span style=""> </span>8765<span style=""> </span>$*,***,99<span style=""> </span>___________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(G) 0001<span style=""> </span>$$$.$9,99CR<span style=""> </span>___________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(H) –012345<span style=""> </span>+++,++++<span style=""> </span>____________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(I) +012345<span style=""> </span><span style=""> </span>+++,++++<span style=""> </span>____________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(J) +012345<span style=""> </span>3 – 4<span style=""> </span>____________ <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(K) 010684<span style=""> </span>99B99B99<span style=""> </span>____________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(L) 000000<span style=""> </span><span style=""> </span>$Z.ZZZZ.ZZ<span style=""> </span>_____________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(M) 000020<span style=""> </span>$$,$$$$$9<span style=""> </span>_____________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(N) 000020<span style=""> </span>$$,$$$$$$<span style=""> </span>_____________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6. INDICATE WHAT IS WRONG IN THE FOLLOWING STATEMENT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A) IF AGE IS GREAATER THAN 58<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>GO TO PARA-RETILRED<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE 5 TO ID-CODE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(B) IF AGE IS GREATER THAN 58<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE “58”TO AGE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>GO TO PARA-RETIRED.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">COBOL PRACTICE TEST – 2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">7. PROCEDURE DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">0000-MAIN-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY “ENTER THE NUMBER “ NO ADVANCING <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ACCEPT WS-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 1000-PARA-A WA-S TIMES<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">1000-PARA-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ADD 1 TO WS-A.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">2000-CLOSE-PARA.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>STOP “EXIT”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>STOP RUN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">FROM THE ABOVE PROCEDURE DIVISION ENTRIES IF WS-A IS 5 HOW MANY _______TIMES 1000-PARA-A PERFORMS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">8. INDICATE WHICH ONE OF THE FOLLOWING IS NOT A VALID FORM OF PERFORM STATEMENT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">PERFORM<span style=""> </span>P1 THREE TILMES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">PERFORM<span style=""> </span>P1 VARUYILNG WS-1 FORM 1 BY 1 UNTIL WS-1<></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">PERFORM P1 UNTIL MORETHAN3<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">PERFORM P1 THRICE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(E)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">PERFORM; UNTIL THREE>3<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="10" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">THE STATEMESNT<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>PERFORM P2 VARYING WS-1 FROM 1 BY 1UNTIL WS-1<10<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">WILL EXECUTE P2.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">9TIMES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">10 TIMES<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">0TIMES<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">1TIMES<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">IDENTIFY THE CORRECT ALTERNATIVE.<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="11" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">WHICH ONE OF THE FOLLOWING CANNOT CAUSE MORE THAN ONE EXECUTION OF THE PARAGRAPH (S) THAT MAY BE NNAMED IN THE STATEMENT.<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.25in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE SIMPLE PERFORM STATEMENT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.25in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE PERFORM WITH TIMES OPTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.25in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE PERFORM WITH UNTIL OPTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.25in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE PESRFORM WITH VARYING OPTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style="">PAGE-5<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><span style="">COBOL<span style=""> </span>MODULE TEST<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style="">PART-A<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in;"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">Write down the difference between the PERFORM & GOTO statements?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">Where does the START verb is used and why it is used?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">Specify the different syntaxes of PERFORM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">What is the difference between Elementary dataitem and Group dataitem?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">What are the three main features of Visualage COBOL?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style="">PART-B<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in;"><b><span style="">TRUE OR FALSE<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">Fields being compared in an IF statement must always be the same size.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">Evaluate can be nested.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">DELETE <filename> is used to delete the record from a file.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">FILE STATUS clause is used to test the status before I-O operation.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">Once condition in an EVALUATE is met, then the computer will test other condition in the Evaluate.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">The RELEASE statement uses a filename, as does the RETURN statement<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">The SEARCH ALL can only test an equal condition.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">8.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">If a field is not positive, it must be negative.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">9.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">If a file is described by an SD it is not necessary to define in a SELECT clause.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">10.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">A START statement reads a specifie record into the storage,<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style="">PART-C<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in;"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">Abbreviation<span style=""> </span>of CODASYL is ________________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">Perform when used with Until will run only if condition is _________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">ON SIZE ERROR is invoked when _________ of data occurs in calculation.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">The Characters in the Col.73 to 80, including a period in 73 are _______<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">In place of READ statement in an OTPUT PROCEDURE, the ________verb is used to read the records from the sort or work file.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">RENAMES provides the capability of _____________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">The INVALID KEY option tests the validity of the___________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">8.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">As an alternative to the arithmetic verbs arithmetic operators can be used in conjunction with the _______verb.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">9.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">REWRITE should be used in the _________mode.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">10.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">if a record cab be accessed by more than one key the option to be used in indexed files is ______________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style="">PART-D<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in;"><b><span style="">Choose the best Answer<o:p></o:p></span></b></p> <p class="MsoBodyText" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 12pt;">The Compiler-direction verb allows the text of routine to be included in other programs.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">USE<span style=""> </span>B) COPY<span style=""> </span>C) ENTER<span style=""> </span>D) INCLUDE<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="2" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The Non-numeric literal is delimited by<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">Quotation marks<span style=""> </span>B) Spaces<span style=""> </span>C) Brackets D) Parenthesis<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="3" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">Which of the following is NOT a Valid sentence?<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">If X IS LESS THAN Z MOVE 1 TO Y <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">IF IS GRTEATER THAN –1 ADD 1TO X<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">IF X < x="Z">2 GOTO NUTS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">IF X IS GREATER THAN OR EQUAL TO Y MOVE Z TO 1<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="4" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">which of the following clause two data items to refer to the same storage location.<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>A) ALTER<span style=""> </span>B) OCCURS<span style=""> </span>C) REDEFINES<span style=""> </span>D) INDERXED<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <ol style="margin-top: 0in;" start="5" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">Which of the following statement is TRUE? <o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">In a SORT statement the word KEY must refer to unique data item,<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">In a SORT statement, if neither the ASCENDING nor the DESCENDING is explicitly coded, the DECENDING<span style=""> </span>phrase is implied.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">In a SORT statement the OUTPUT PROCEDURE clause and the GIVING clause are mutually exclusive.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">SORT and MERGE are synonymous.<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="6" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">Which of the two paragraphs are contemned in the INPUT-OUTPUT SSECTION?<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">I-O CONTROL & FILE CONTROL <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">FILE- DEFINITION & I-O CONTROL<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">FILE-DEFINITION & DATA-DEFINITION <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">LILNKAGE-CONTROL & REORE-CONTROL<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="7" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">which verb allows the expression of mathematical functions using mathematical terminology?<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">COMPUTER<span style=""> </span>B) TALLYING<span style=""> </span>C) CALCULATE<span style=""> </span>D) COMPUTATIONAL <o:p></o:p></span></p> <ol style="margin-top: 0in;" start="8" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">A data record describes a <o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">A) file<span style=""> </span>B) record’s position in a file C) logical record in memory D) block of data on an external storage<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="9" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">A STORY work file is <o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>A) a temporary file<span style=""> </span>B) a permanent file<span style=""> </span>C) a virtual file<span style=""> </span>D) a temporary or permanent file depending upon how the SD is coded<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="10" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">Which of the following is NOT a reserved word?<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>A) ON<span style=""> </span>B) UNTIL<span style=""> </span>C) FORMAT<span style=""> </span>D) SESSCTION<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="11" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">which of the following can be used with the FORM Clause? <o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>A) DISPLAY<span style=""> </span>B) MERGE<span style=""> </span>C) RECEIVE<span style=""> </span>D) ACCEPT<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="12" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">what is the size of TABLE-H?<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>01 TABLE-H<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 45.75pt; text-indent: -27.75pt;"><!--[if !supportLists]--><span style=""><span style="">01<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">A OCCURS 10 TIMES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 45.75pt; text-indent: -27.75pt;"><!--[if !supportLists]--><span style=""><span style="">02<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">10 B PIC X (4) <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 45.75pt; text-indent: -27.75pt;"><!--[if !supportLists]--><span style=""><span style="">03<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">10 C PIC 99<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">6 characters<span style=""> </span>B) 10 Characters C) 50 Characters D) 60 Characters<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="13" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The PERFORM..THRU format permits the execution of <o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>A) ONE PROCIDURE B) TWO PROCEDURES<span style=""> </span>C) THREE PROCEDURES<span style=""> </span>D) TWO OR MOIRE PROCEDURES<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="14" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">Which of the following is WRONG.<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">MOVE CORR A-REC TO B-REC.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">MULTIPLY CORR A-REC TO B-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">ADD CORR A-REC TO B-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">SUBTRAT CORR A-REC TO B-REC<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="15" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The last statement to be executed in a program is normally<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 74.25pt; text-indent: -20.25pt;"><!--[if !supportLists]--><span style=""><span style="">A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">END <span style=""> </span>B) EXIT C) FINISH D) STOP RUN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-align: center;" align="center"><b><span style="">PAGE-6</span></b><span style=""><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in;"><b><span style="">1. FILL UP THE BLANKS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 117pt; text-indent: -1in;"><!--[if !supportLists]--><span style=""><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">__________ & ___________ are the sections in Environment Division<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 117pt; text-indent: -1in;"><!--[if !supportLists]--><span style=""><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">Picture clause designates _________ & ________ to a data-name <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 117pt; text-indent: -1in;"><!--[if !supportLists]--><span style=""><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">REPORT SECTION is found in _________ Division<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 117pt; text-indent: -1in;"><!--[if !supportLists]--><span style=""><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">__________ & __________ are the control transfer verbs in Procedure Division<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 117pt; text-indent: -1in;"><!--[if !supportLists]--><span style=""><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">SPECIAL NAMES Paragraph comes in _______ Section<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 99pt;"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in;"><b><span style="">!! State True or False<o:p></o:p></span></b></p> <ol style="margin-top: 0in;" start="1" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">MOVE is a control<span style=""> </span>transfer verb <o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">All Sections & paragraphs in PROCEDURE DIVISION are user defined<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">88 level on is used for condition names <o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">INSTALLATION paragraph is found in Identification Division<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">Editing symbol “z” is for trailing Zero suppression<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><b><span style="">III Give the output of following Picture items<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in;"><b><span style=""><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PIC ture declaration<span style=""> </span>Value supplied<span style=""> </span>Value displayed<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 274.5pt; text-indent: -175.5pt;"><!--[if !supportLists]--><span style=""><span style="">9999<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">78961<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 99pt;"><span style="">9 (3) V99<span style=""> </span>4567<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 99pt;"><span style="">z.zz9.99<span style=""> </span>0.55<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 99pt;"><span style="">X(7)<span style=""> </span>MACHAGAN5<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 99pt;"><span style="">9(6) v99<span style=""> </span>123456.678<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 99pt;"><span style="">****999<span style=""> </span>4201<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 99pt;"><span style="">+9(4)<span style=""> </span>-4679<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 99pt;"><span style="">99b99b99<span style=""> </span>96<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 99pt;"><span style="">++++.99<span style=""> </span>-342<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 99pt;"><span style="">9999CR<span style=""> </span>-8976<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">Write short answer<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="1" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">Explain 4 format of PERFORM VERB? Give syntax<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">Explain in BRIEF ABOUT DATA DIVISION<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">Explain EVALUATE statement? Give examples.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">What are Class Sign and Relational Conditions.<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">Explain the OUTPUT of the following program<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">Working-storage section<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">01 ws-all-vars.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>05<span style=""> </span>A<span style=""> </span>PIC 9(6) VALUE 9<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>05<span style=""> </span>B<span style=""> </span>PIC 9(3) VALUE 0<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>05<span style=""> </span>C<span style=""> </span>PIC 9(6) VALUE 0<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 78pt; text-indent: -33pt;"><!--[if !supportLists]--><span style=""><span style="">05<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">WS-num PIC 9 value 8<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">First-Para.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Perform X-Para until WS-num =1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Perform<span style=""> </span>O-Para<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Stop<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Stop run<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">X-Para<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Computer A=a * Ws-num<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Subtract<span style=""> </span>1 from Wsa-num<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Add 1 to C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">O- Para<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Display A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Display B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Display C <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Display WS-num<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PAGE-7<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">True or False<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="1" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">if a file is described by an SD, it is not necessary to define in a SELECT clause.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">the division that specifies the computer devices to be used is the DATA<span style=""> </span>DIVISION<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">the INPUT-OUTPUT SECTION of the ENVIRONMENT DIVISION<span style=""> </span>assigns the file-names.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">a maximum of three files may be defined in the INPUT-OUTPUT SECTION.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">a file is a collection of records each of which consists of a collection of fields.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">numeric literals may contain as many as 30’characters.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">in a non numeric move, high order nonfilled position are replaced with spaces.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">a VALUE clauses may be used in the file section to initialize fields.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">DIVIDE 0 INTO A GIVING B will result in an ON SIZE ERROR condition<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -27pt;"><!--[if !supportLists]--><span style=""><span style="">10.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">The GIVING<span style=""> </span>clause must be used when a REMAINDER is specified.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -27pt;"><!--[if !supportLists]--><span style=""><span style="">11.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">the RELEASE statement uses a file mane, as does the RETURN statement.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -27pt;"><!--[if !supportLists]--><span style=""><span style="">12.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">the SEARCH ALL can only test an equal condition.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -27pt;"><!--[if !supportLists]--><span style=""><span style="">13.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">a SET statement is not necessary with the SEARCH ALL statement.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -27pt;"><!--[if !supportLists]--><span style=""><span style="">14.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">the index is automatically set at the<span style=""> </span>appropriate point when a binary search is performed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -27pt;"><!--[if !supportLists]--><span style=""><span style="">15.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">an OCCURS clause may only be used to define entries in the FILE SECTION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PART-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">FILL IN THE BLANKS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <ol style="margin-top: 0in;" start="1" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">two techniques for simplyfing the design of a COBOL program and facilitating debugging are called ________________ and ________________<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">a perform ____ until instruction executes a series of steps repeatedly until ________________ condition is met.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">________________ are the entries must be coded in area A.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The first two entries of COBOL program must always be ________________ & ________________<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">In place of a READ statement in an OUTPUT PROCEDURE, the verb is used to read the records from the sort or work file. <o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">With the ________________ statement you can include prewritten entries in your program<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The purpose of using library functions are to ________________<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">The ________________ statement joins fields or portion of fields into one field.<o:p></o:p></span></li><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">A ________________ statement is used for accessing a subprogram<o:p></o:p></span></li></ol> <p class="MsoBlockText" style="margin-right: 0.5in;"><span style="font-size: 12pt;">10.<span style=""> </span>A ________________ clause is used in the data division to ensure that a field consisting of all zeros will print as blank<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">11. A ________________ is assigned to a specific value or a range of values that an identifier can assume.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">12. A ________________ statement with out a para name, which is followed by all instructions to be executed at that point.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">13. If<span style=""> </span>instructions are executed step-by-step without any change in control, we call this a ________________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">14. The ________________ statement is used to replace erroneous characters in an input field with other characters.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">15. ADD A,B,C TO D,E GIVING F, assume A=B=C=D=E=1, the result is an ________________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style=""><span style=""> </span>PART-C<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style=""><span style=""> </span>Answer all the questions.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">1.How many times will the paragraph named 400-PROCESS-RTN<span style=""> </span>be executed by the following PERFORM statement?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">A.PERFORM 400-PROCESS-RTN<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style=""><span style=""> </span>VARYING X FROM 1 BY 1 UNTIL X=10<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">B.PERFORM 400-PROCESS-RTN<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style=""><span style=""> </span>VARYING X FROM 1 BY 1 UNTIL X>10<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">C.PERFORM 400-PROCESS-RTN<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style=""><span style=""> </span>VARYING X FROM 0 BY 1 UNTIL X=10<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">2.How many times PARA-B<span style=""> </span>gets executed, if N is 5.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><st1:place st="on"><span style="">PARA</span></st1:place><span style="">-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style=""><span style=""> </span>PERFORM PARA-B N TIMES<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">PARA-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt; text-indent: 27pt;"><span style="">ACCEPT WS-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style=""><span style=""> </span>COMPUTE WS-SUM=WS-SUM+WS-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">PARA-C<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style=""><span style=""> </span>DISPLAY WS-SUM<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt; text-indent: 27pt;"><span style="">STOP RUN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">3.<span style=""> </span>DATA DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01 WS-A <span style=""> </span>PIC X(10) JUSTIFIED RIGHT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROCEDURE DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><st1:place st="on">PARA</st1:place>-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ACCEPT WS-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY WS-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>STOP RUN.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>If WS-A=’CBSI’, What is the output?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">4.<span style=""> </span>DATA DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01 WS-A<span style=""> </span>PIC 999<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROCEUDRE DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><st1:place st="on">PARA</st1:place>-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ACCEPT WS-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>IF WS-A IS NEGATIVE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY,”IT IS NEGATIVE”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ELSE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY “IT IS POSITIVE”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>END-IF<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>STOP RUN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>If WS-A<span style=""> </span>is –20, what is the output?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">5.<st1:place st="on">PARA</st1:place>-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE O TO X<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM PARA-B UNTIL X=10<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PARA-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ACCEPT WS-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>COMPUTE WS-SUM = WS-SUM + WS-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ADD 1 TO X<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PARA-C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY WS-SUM<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">How many time PARA-B gets executed?<span style=""> </span><o:p></o:p></span></p> <span style="font-size: 12pt; font-family: "Times New Roman";">
<br /> </span> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style=""> </span><span style="">PAGE-8<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 9pt;"><span style="">Fill in the blanks.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">1.<span style=""> </span>____________<span style=""> </span>number of characters are in COBOL CHARACTER SET.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">2. DIVISION OF COBOL should be started in area<span style=""> </span>____________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in; text-indent: -0.15in;"><!--[if !supportLists]--><span style=""><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">To make a COBOL LINE as a comment<span style=""> </span>____________ should be coded in 77 column.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in; text-indent: -0.15in;"><!--[if !supportLists]--><span style=""><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">COBOL<span style=""> </span>statements start from<span style=""> </span>____________ position.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in; text-indent: -0.15in;"><!--[if !supportLists]--><span style=""><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">____________ words have specific meaning to a compiler<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in; text-indent: -0.15in;"><!--[if !supportLists]--><span style=""><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">value of literals changes with each executions of a program. [T/F]<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in; text-indent: -0.15in;"><!--[if !supportLists]--><span style=""><span style="">7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">in compound IF statement, logical operator NOT evaluated before OR [T/F]<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in; text-indent: -0.15in;"><!--[if !supportLists]--><span style=""><span style="">8.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">Decimal move should be from<span style=""> </span>____________ to<span style=""> </span>____________ <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in; text-indent: -0.15in;"><!--[if !supportLists]--><span style=""><span style="">9.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">Indicated the values that the receiving field will have in each of the following cases.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style=""><span style=""> </span>SENDING FIELD<span style=""> </span>RECEIVING FIELD<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style=""><span style=""> </span>Picture <span style=""> </span>value<span style=""> </span>picture <span style=""> </span>value<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">(a) 999V99<span style=""> </span>678.94<span style=""> </span>99V99<span style=""> </span>________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">(b) 999V99<span style=""> </span>234.56<span style=""> </span>99V999<span style=""> </span>________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">(c) x(5)<span style=""> </span>ABCDE<span style=""> </span>XX<span style=""> </span>________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">(d) S99V99<span style=""> </span>-34.50<span style=""> </span>99<span style=""> </span><span style=""> </span>________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">(e) 9999<span style=""> </span>0560<span style=""> </span>X(6)<span style=""> </span>________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">10. The paragraph in the CONFIGURATION SECTION that provides for a variety of definitions for special features to be used in a COBOL PROGRAM is the ________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">11. The max of ________ characters is allowed for non-numeric literals.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">12. Specify the valid and invalid identifiers given below.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">(i) BASIC-SCALE<span style=""> </span>(ii) DAY/NIGHT-SHIFT<span style=""> </span>(iii) CBSI.P.LTD<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">(iv)<span style=""> </span>2BB0AX-II-ITEMS<span style=""> </span>(v) OVER TIME PAY<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">13. Specify the valid and invalid literals given below<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">(i)<span style=""> </span>0.2324<span style=""> </span>(ii)<span style=""> </span>-44445.34<span style=""> </span>(iii)<span style=""> </span>42.23+0.23<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">(iv)<span style=""> </span>‘ITEM-NO-122/34-C’<span style=""> </span>(v) ‘STOP-RUN’<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">14. The literal ‘’ if printed would result in the printing of ________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">15. ON SIZE ERROR clause in compute verb works only when overflows beyond the target data-name size.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">16. The characters in the column 73 to 80, including a period in column 73 are ________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">17. The sign test will produce correct results only if A has ________ in its picture clause.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">18. The specific order in which characters are represented by a computer is called ________</span><span style=""><o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">19. ________ number of bytes are required to store a data-item with PICS9(7)V99<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">20.Write the COMPUTE<span style=""> </span>statement for each of the following.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style=""><span style=""> </span>(a) <span style=""> </span>x = a + b /<span style=""> </span>2 – c <span style=""> </span>(b)<span style=""> </span>x = ab + cd / ef <span style=""> </span>(c) <span style=""> </span>x =<span style=""> </span>( a - b ) / ( c + d )<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style=""><span style=""> </span>PAGE-9<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">1.Write a program that will input a file of records consisting of an item number(2 digits), item description (20 characters), and an item cost (99V99) Print the item’s description and the sale price, assuming a 30% profit margin. Selling price = (1/ 1 – profit margin)* cost. 15 marks.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">2. Write a COBOL program to convert decimal numbers in to the roman representation.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">3. write a COBOL program to convert a sequential file into an indexed sequential file, opening the new file in the sequential mode.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">4. write a program to sort a table, in descending order of ITEM-CODE The item code and its corresponding description are described in Excerpt-5<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">5.indicate the errors in the following.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">5.1<span style=""> </span>IF C<a style=""> </span>500-CALC-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">5.2<span style=""> </span>See Excerpt-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">5.3<span style=""> </span>MULTIPLY A BY B BY C<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">5.4<span style=""> </span>See Excerpt-1<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">5.5<span style=""> </span>SUBTRACT AMT1 AMT2 FROM AMT3 AMT4<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">5.6 <span style=""> </span>See Excerpt-3<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">5.7<span style=""> </span>COMPUTE X+ Y = A<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">5.8<span style=""> </span>COMPUTE TOTAL = AMT1 + AMT2 ROUNDED.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">5.9<span style=""> </span>See Excerpt-4<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">6.State True or False<o:p></o:p></span></p> <p class="MsoBodyText" style="margin-right: 0.5in;"><span style="font-size: 12pt;"><span style=""> </span>6.1 A SET statement need not be specified for a SEARCH ALL statement.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.2 A COPY statement may not be used for copying PROCEDURE DIVISION entries<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.3 the identifier used for a SEARCH verb is the table entry specified on 01 level.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.4 Programs without syntax errors will always run properly.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.5 A binary search is preferable to a serial search.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.6. The RELEASE statement uses a file-name and so does a RETURN statement.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.7 To read the record with CUST-NO 125 from a relative file, move 125 to CUST-NO key field and execute a READ<span style=""> </span>statement.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.8 Relative key clause is optional when reading or writing to a relative file sequentially.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.9 The identifiers specified in both the called and calling programs must be the same.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.10. With an UNSTRING statement, the delimiter specified itself is transmitted.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.11 If section names are used in the PROCEDURE DIVISION, they must be followed by paragraph names.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PROCEDURE DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">100-MAIN-MODULE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>OPEN<span style=""> </span>SALES-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PRINT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM<span style=""> </span>2000-PROCESS-RTN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>UNTIL ARE-THERE-MORE-RECORDS=’NO’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>CLOSE<span style=""> </span>SALES-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PRINT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>STOP-RUN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">200-PROCESS-RTN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>READ SALES-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AT END MOVE ‘NO’ TO ARE-THERE-MORE-RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>END-READ<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE SALES-FILE TO PRINT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WRITE PRINT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PROGRAM EXCERPT-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>SEARCH<span style=""> </span>STORED-ENTRIES<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AT END DISPLAY ‘NO ENTRIES FOUND’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WHEN ITEM-NO(X1) = ITEM-NO-IN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>NEXT SENTENCE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>COMPUTE PRICE = QTY * WS-UNIT-PR(X1)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PROGRAM EXCERPT-3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROCEDURE DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>100-MAIN-MODULE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>SORT<span style=""> </span>SORT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ASCENDING KEY S-EMP-NO<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>USING MASTER-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>OUTPUT PROCEDURE 200-ADD-TAX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 400-PRINT-RTN.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">200-ADD-TAX SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>OPEN OUTPUT SORT-FILE. SORTED MASTER.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM UNTIL NO-MORE-RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>RETURN SORT-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AT END MOVE ‘NO TO ARE-THERE-MORE-RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>NOT AT END PERFORM 300-RTN-1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>END-RETURN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>CLOSE SORTED-MASTER.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">300-RTN1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE 10 TO TAX-OUT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WRITE SORTED-MASTER-REC FROM SORT-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>RELEASE SORTED-MASTER-REC.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>400-PRINT-RTN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE ‘YES’ TO ARE-THERE-MORE-RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>OPEN INPUT SORTED-MASTER PRINT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM UNTIL NO-MORE-INPUT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>READ SORTED-MASTER.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AT END MOVE ‘NO’ TO ARE-THERE-MORE-RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>NOT AT END PERFORM 500-PRINT-IT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>END-READ<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>CLOSE SORTED-MASTER PRINT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">500-PRINT-IT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WRITE PRINT0REC FROM SORTED-MASTER-REC.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PROGRAM EXCERPT-4<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">WORKING-STORAGE SECTION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">01<span style=""> </span>STORED-AREAS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">05 <span style=""> </span>ARE-THERE-MORE-RECORDS<span style=""> </span>PIC X(3) VALUE ‘YES’.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>88 ARE-THERE-MORE-RECORDS<span style=""> </span>VALUE ‘NO’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">05<span style=""> </span>SUB1<span style=""> </span>PIC 9.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">01 TABLE-IN.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 ENTRIES OCCURS 20 TIMES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10 CUST-NO<span style=""> </span>PIC 999<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10 DISCT<span style=""> </span>PIC V99.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">100-MAIN-MODULE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 400-INITIALIZATION-RTN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 200 TABLE-ENTRY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>VARYING SUB1 FROM 1 BY 1 UNTIL SUB1 > 20<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 300-CALC-RTN UNTIL THERE-ARE-NO-MORE-RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 500-END-OF-JOB-RTN.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">200-TABLE-ENTRY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>READ TABLE-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AT END MOVE ‘NO’ TO ARE-THERE-MORE-RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>END-READ.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE T-CUST-NO TO CUST-NO(SUB1)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE T-DISCT TO DISCT(SUB1)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PROGRAM EXCERPT-5<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01 ITEM-ARRAY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>ITEM-CODE OCCURS<span style=""> </span>200<span style=""> </span>PIC S999.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>ITEM-DESC OCCURS<span style=""> </span>200<span style=""> </span>PIC X(30).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PAGE-10<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">1. In control break processing, we typically MOVE the control field to ________ after reading the first record.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">2. What processing is performed if an input control field is equal to the control field stored in the field area.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">3. What processing is performed if an input control field is not equal to the control field stored in the hold area.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">4. if each control group is to begin on a separate page we would perform a heading routine at the ________ module.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">5.If a final total is required it is most efficient to accumulate the final total in the ________ module<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">6. A the control break module, we must print ________, initialize ________ at zero and move ________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">7. When each individual record results in the printing of an output line, we call this ________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">8. A first ________ procedure is the process of rekeying input to ensure that it was entered correctly the first time.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">9. The ________ statement is used to replace erroneous characters in an input field with other characters.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">10. A ________ is name assigned to the value of the field directly preceeding it the DATA DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">11. The sign test IF A IS NEGATIVE will produce correct results only if A has a (n) ________ in its picture clause.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">12. A programmer should always stop a run if an input error is detected. (T/f)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">13. Account of all records with in specific groups is referred to as a ________ total.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">14. The ________ verb is used in COBOL 85 for the CASE structure.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">15. Condition name can be used in an EVALUATE statement as a part of WHEN clause (T/F)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><b><span style="">Consider the following for 16 through 19. <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">01<span style=""> </span>IN-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style=""><span style=""> </span>02<span style=""> </span>AMT1<span style=""> </span>PIC <span style=""> </span>9(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style=""><span style=""> </span>02<span style=""> </span>AMT2<span style=""> </span>PIC <span style=""> </span>9(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style=""><span style=""> </span>02<span style=""> </span>AMT3<span style=""> </span>PIC <span style=""> </span>9(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style=""><span style=""> </span>02<span style=""> </span>AMT4<span style=""> </span>PIC <span style=""> </span>9(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style=""><span style=""> </span>02<span style=""> </span>AMT5<span style=""> </span>PIC <span style=""> </span>9(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">16. An OCCURS clause could be used in place of defining each AMT field separately because ______________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">17. Suppose AMT3 and AMT4 had PCI(3) an OCCURS clause could not be used to define all the AMT fields.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.1in;"><span style="">18.Records in the fields with in IN-REC using an OCCURS clause.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>19. To access any of the five items defined in the OCCURS clause, we must use a<span style=""> </span>______________ in procedure division.<o:p></o:p></span></p> <span style="font-size: 12pt; font-family: "Times New Roman";">
<br /> </span> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span><span style="">PAGE-11<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style="">1.<span style=""> </span>PERFORM DISP-PARA TEST AFTER VARYING FROM 1 BY 1 UNTIL 1 > 2 AFTER J FROM 1 BY 1 UNTIL J> 3<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">How many times DISP_PARA executes and after execution what are values of 1 and j respectively.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(a)<span style=""> </span>11:3 & 4<span style=""> </span>(b)<span style=""> </span>6:3 & 4<span style=""> </span>(c)<span style=""> </span>12:4 & 5<span style=""> </span>(d)<span style=""> </span>none<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">2. <span style=""> </span>01.cnt<span style=""> </span>PIC 9(4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">_______________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">PERFORM COUNT-PARA VARYING CNT FROM 1 BY 1 UNTIL CNT > 9999<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">How many times the COUTN-PARA WILL BE PERFORMED.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(A)10000<span style=""> </span>(b)<span style=""> </span>9999<span style=""> </span>(c)<span style=""> </span>Syntax error<span style=""> </span>(d)<span style=""> </span>none<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">3.<span style=""> </span>01 ITEM-A<span style=""> </span>PIC 9(3)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01 ITEM-B<span style=""> </span>REDENFINES ITEM-A<span style=""> </span>PIC X(3)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">MOVE ‘XYZ’ TO ITEM-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">What is wrong with the above statement?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(a)<span style=""> </span>invalid Redefines<span style=""> </span>(b)<span style=""> </span>Invalid MOVE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(b)<span style=""> </span>PIC clause not allowed in REDFINES clause<span style=""> </span>(d)<span style=""> </span>all are OK<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">4.<span style=""> </span>Data names is defined in a COBOL<span style=""> </span>program thus<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">05 TEST-FLD <span style=""> </span>PIC X(5) VALUE ALL ‘*’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">In the PROCEDURE DIVISION. The following statement is executed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE ‘$’ to TEST-FLD<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">The field then contains<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(a) $****<span style=""> </span>(b) $bbbb<span style=""> </span>(c)<span style=""> </span>****$<span style=""> </span>(d)<span style=""> </span>bbbbb<span style=""> </span>(e)<span style=""> </span>*****<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">5.<span style=""> </span>01 ITEM-A<span style=""> </span>PIC X(3)<span style=""> </span>VALUE ‘XYZ’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>77 ITEM-B<span style=""> </span>PIC X(3)<span style=""> </span>VALUE ‘ABC’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">Which of the following statement is true?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(a)<span style=""> </span>ITEM-A & ITEM-B are not of same size<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(b)<span style=""> </span>ITEM-A is a group level ITEM-B<span style=""> </span>is at sub level.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(c)<span style=""> </span>ITEM-A & ITEM-B<span style=""> </span>are of same size<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(d)<span style=""> </span>01 & 77 level items cannot be compared.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.<span style=""> </span>What is syntactically wrong in this?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>FILE SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>FD<span style=""> </span> TEST-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>TEST-REC<span style=""> </span>1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 FLD-1<span style=""> </span>PIC X(40)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 FLD-2<span style=""> </span>PIC X(20)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>TEST-REC 2<span style=""> </span>REDEFINES TEST-REC<span style=""> </span>1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 FILLER<span style=""> </span>PIC X(60)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(a)<span style=""> </span>redefines is not allowed in the FILE SECTION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(b)<span style=""> </span>redefines<span style=""> </span>is allowed by not FILLER under redefines.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(c)<span style=""> </span>Elementary item under redefines should not exceed 50 bytes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(d)<span style=""> </span>VALUE clause should be given along with redefines.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(e)<span style=""> </span>nothing wrong with the syntax.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">7.<span style=""> </span>which of the following uses least of storage for storing numbers:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(a)<span style=""> </span>X(5)<span style=""> </span>(b)<span style=""> </span>9(5)<span style=""> </span>(c)<span style=""> </span>9(5) COMP<span style=""> </span>(d)<span style=""> </span>9(5) COMP-3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">8.<span style=""> </span>a field in DATA DIVISION is declared thus.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>77<span style=""> </span>TEST-A<span style=""> </span>PIC 9(5)<span style=""> </span>COMP-3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>if the following statements were executed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE 100 TO TEST-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY TEST-A UPON CONSOLE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>The console will show<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(a)<span style=""> </span>00100<span style=""> </span>(b)<span style=""> </span>junk/Unreadable 5 Char<span style=""> </span>(c)<span style=""> </span>100.00<span style=""> </span>(d)<span style=""> </span>none<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">9.<span style=""> </span>in a COBOL program fields are defined thus<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>77<span style=""> </span>TEST-A<span style=""> </span>PIC S9(5)<span style=""> </span>VALUE 100<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>77<span style=""> </span>TEST-B<span style=""> </span>PIC X(4)<span style=""> </span>VALUE ‘ZERO’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>if a MOVE statement (see below) were to be executed<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style=""><span style=""> </span>MOVE TEST-A TO TEST-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>TEST-B will contain<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(a)<span style=""> </span>1000<span style=""> </span>(b)<span style=""> </span>0100<span style=""> </span>(c)<span style=""> </span>1000<span style=""> </span>(d)<span style=""> </span>bb10<span style=""> </span>(e) none of these<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">10.<span style=""> </span>01 A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02 b <span style=""> </span>PIC 9(4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.5in; text-indent: -1in;"><span style="">01 C <span style=""> </span>PIC 9(4)<span style=""> </span>VALUE 100.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.5in; text-indent: -81pt;"><span style=""><span style=""> </span>MOVE C TO A ………(1)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.5in; text-indent: -81pt;"><span style=""><span style=""> </span>MOVE C TO B………..(2)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.5in; text-indent: -81pt;"><span style=""><span style=""> </span>Are the above two statements identical? Do they produce the same result.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 27pt;"><span style=""><span style=""> </span>(a)<span style=""> </span>YES<span style=""> </span>(b)<span style=""> </span>NOT ALWAYS<span style=""> </span>(c)<span style=""> </span>NO<span style=""> </span>(d)<span style=""> </span>STATEMENT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(e)<span style=""> </span>is wrong<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">11.<span style=""> </span>MOVE O TO K<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM <st1:place st="on">PARA</st1:place>-A THRU PARA-EXIT VARYING 1 FROM 1 BY 1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style=""><span style=""> </span>UNTIL I > 9<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style=""><span style=""> </span>DISPLAY K UPON CONSOLE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>…………………..<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style=""><span style=""> </span>…………………..<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><st1:place st="on"><span style="">PARA</span></st1:place><span style="">-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>COMPUTE K<span style=""> </span>= (I + 1)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">PARA-EXIT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>EXIT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><st1:place st="on"><span style="">PARA</span></st1:place><span style="">-A<span style=""> </span>is performed how many times?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(a)<span style=""> </span>10<span style=""> </span>(b)<span style=""> </span>9<span style=""> </span>(c)<span style=""> </span>0<span style=""> </span>(d)<span style=""> </span>once<span style=""> </span>(e)<span style=""> </span>none of these<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">12.<span style=""> </span>See the problem no. 11<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>value of K displayed on console will be<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(a)<span style=""> </span>0<span style=""> </span>(b)<span style=""> </span>9<span style=""> </span>(c)<span style=""> </span>10<span style=""> </span>(d)<span style=""> </span>19<span style=""> </span>(e)<span style=""> </span>15<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">13.<span style=""> </span>PERFORM PARA-A THRU <st1:place st="on">PARA-A-EXIT</st1:place> VARYING 1 FROM 1 BY 1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>UNTIL I > 5 AFTER VARYING J FROM 1 BY 1 UNTIL J > 3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AFTER VARYING K FROM 5 BY 1 UNTIL K > 5<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">How many times is <st1:place st="on">PARA</st1:place>-A performed?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(a)<span style=""> </span>15<span style=""> </span>(b)<span style=""> </span>150<span style=""> </span>(c)<span style=""> </span>5<span style=""> </span>(d)<span style=""> </span>30<span style=""> </span>(e)<span style=""> </span>75<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">14.<span style=""> </span>77<span style=""> </span>QTY<span style=""> </span>PIC 9(3) VALUE 505<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>77<span style=""> </span>RATE<span style=""> </span>PIC 9(3)V99 VALUE 10<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>77<span style=""> </span>VALUE TOTAL<span style=""> </span>PIC PIC S9(5)V99<span style=""> </span>VALUE +1000<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MULTIPLY QTY * RATE GIVING VALUE-TOTAL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>VALUE-TOTAL now will contain.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(a)<span style=""> </span>05050<span style=""> </span>(b)<span style=""> </span>00505<span style=""> </span>(c)<span style=""> </span>00050<span style=""> </span>(d)<span style=""> </span>00500<span style=""> </span>(e)<span style=""> </span>none<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">15.<span style=""> </span>Which of the following is true?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(a)<span style=""> </span>Both<span style=""> </span>COMP and COMP-3 occupy same storage but COMP is efficient in computation<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(b)<span style=""> </span>COMP occupies relatively less space that COMP-3 and both are equally efficient in computation.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(c)<span style=""> </span>COMP-3<span style=""> </span>occupies less space than COMP by less efficient than COMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""><span style=""> </span>(d)<span style=""> </span>COMP occupies less space than COMP-3 but COMP-3 is efficient in computation<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(e)<span style=""> </span>Storage space depends on number of digits in PIC clause but COMP-3 is efficient.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">16.<span style=""> </span>01 ITEM-A<span style=""> </span>PIC 9(5) VALUE 12345<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>01 ITEM-B<span style=""> </span>PIC 9(3) VALUE 120<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>………………<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>CALL ‘PROG1’ USING ITEM-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>CANCEL ‘PROG1’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY ITEM-A ITEM-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>……………….<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>LINKAGE SECTIONS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01 LS-ITEM<span style=""> </span>PIC X(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>…………..<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE SPACES TO LS-ITEM<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>EXIT PROGRAM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>What is the result of DISPLAY <span style=""> </span>statement.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(a)<span style=""> </span>will display 1 2 3 4 5 & 420<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>(b)<span style=""> </span>SPACES, SPACES will be displayed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(c)<span style=""> </span>SPACES, 420 will be displayed<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(d)<span style=""> </span>None of the above<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">17.<span style=""> </span>WORKING STORAGE SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 <span style=""> </span>TEST-ARRAY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10<span style=""> </span>FIRST-LEVEL OCCURS 5 VALUE ZERO<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>15<span style=""> </span>SECOND-LEVEL OCCURS 3 VALUE ZERO<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>20<span style=""> </span>TEST-FIELD PIC X(20)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Is this syntax OK?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(a)<span style=""> </span>right syntax<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(b)<span style=""> </span>wrong, because VALUE<span style=""> </span>clause should not be with OCCURS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(c)<span style=""> </span>wrong, because VALUE<span style=""> </span>clause contains ZEROS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(d)<span style=""> </span>Wrong, because VALUE<span style=""> </span>clause allowed only for FIRST-LEVEL<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.5in;"><span style="">(e)<span style=""> </span>Wrong, because OCCURS clause should not be used in WORKING-STORAGE SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">18.<span style=""> </span>In a program sending/source field is defined as:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>77<span style=""> </span>BASIC-IN<span style=""> </span>PIC S9(5)<span style=""> </span>VALUE 9475<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>In the receiving/destination field is defined as.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>REP-BASIC-1<span style=""> </span>PIC $Z(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>REP-BASIC-2<span style=""> </span>PIC $(6)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>If the following instruction are executed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE BASIC-IN TO REP-BASIC-1 REP-BASIC-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY REP-BASIC-1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>REP-BASIC-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>The value of REP-BASIC-1 and REP-BASIC-2 will be (indicate space by ‘b’)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(a)<span style=""> </span>$SS947 and $ZZ9475<span style=""> </span>(b)<span style=""> </span>$b9475 and b$9475<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(c)<span style=""> </span>b$9475 and bb$475<span style=""> </span>(d)<span style=""> </span>09475b and $$947<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">19.<span style=""> </span>BASIC<span style=""> </span>= 2500<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>HRA = 1500<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(a)<span style=""> </span>IF BASIC > 2000<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>IF HRA NOT <></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(b)<span style=""> </span>IF (BASIC > 2000) AND (HRA NOT <></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM X-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>If the statement are coded like (a) or (b) PARA-x is anyway performed.<span style=""> </span>[T/F]<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">20.<span style=""> </span>CARDINALITY = 1/FILTER FACTOR<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">21.<span style=""> </span>The index mechanism used in DB2 is<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(a)<span style=""> </span>Simple index <span style=""> </span>(b)<span style=""> </span>B-TREE<span style=""> </span>index<span style=""> </span>(c)<span style=""> </span>Both<span style=""> </span>(d)<span style=""> </span>none<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">22.<span style=""> </span>The SQL<span style=""> </span>codes related to deadlock are<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(a)<span style=""> </span>RUNSTATS<span style=""> </span>(b)<span style=""> </span>LOAD<span style=""> </span>(c)<span style=""> </span>EXPLAIN<span style=""> </span>(D)<span style=""> </span>NONE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style="">23.<span style=""> </span>Following utility should be run to make the indexes added to a table effective in choosing access path<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(a) RUNSTATS<span style=""> </span>(b)<span style=""> </span>LOAD<span style=""> </span>(c)<span style=""> </span>EXPLAIN<span style=""> </span>(d)<span style=""> </span>NONE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">24.<span style=""> </span>all views are updateable<span style=""> </span>[T/F]<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">25.<span style=""> </span>what is the SQL error code related to TIMESTAMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(a)<span style=""> </span>-180<span style=""> </span>(b)<span style=""> </span>-511<span style=""> </span>(c)<span style=""> </span>-203<span style=""> </span>(d)<span style=""> </span>-818<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">26.<span style=""> </span>The command used in DB2<span style=""> </span>to find out whether PLAN is using table space scan or index space for retrieving a row is <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(a)<span style=""> </span>SELECT<span style=""> </span>(b)<span style=""> </span>EXPLAIN<span style=""> </span>(C)<span style=""> </span>RUNSTATS<span style=""> </span>(d)<span style=""> </span>NONE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">27.<span style=""> </span>NUMLKTS and NUMLKUS are defined by DBA. To limit the number of locks over all table spaces and a particular table space respectively having a lock size of ANY [T/F]<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">28. <span style=""> </span>what is the advantage of having the CURSOR with ‘WITH HOLD’ option.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(1)<span style=""> </span>it will not close the cursor at time of COMMIT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(2)<span style=""> </span>it will not close the cursor at time of ROLLBACK<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(3)<span style=""> </span>it will not close the cursor at the ‘END OF THE TASK’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(a)<span style=""> </span>1 only <span style=""> </span>(b)<span style=""> </span>2 only <span style=""> </span>(c)<span style=""> </span>3 only<span style=""> </span>(d) 1 or 2 only<span style=""> </span>(e)<span style=""> </span>2 or 3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>Page-12<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">1.<span style=""> </span>__________ IS THE ONLY DIVISION OF A COBOL PROGRAM THAT MAY VARY DEPENDING ON THE COMPUTER USED.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>IDENTIFICATION DIVISION.<span style=""> </span>(B)<span style=""> </span>ENVIRONMENT DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(C)<span style=""> </span>DATA DIVISION<span style=""> </span>(D)<span style=""> </span>PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">2.<span style=""> </span>THE TECHNIQUES FOR SIMPLIFYING THE DESIGN OF A COBOL PROGRAM AND FACILITATING DEBUGGING ARE _________ AND _______<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>FLOW CHART & PSEUDO-CODE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(B)<span style=""> </span>STRUCTURE PROGRAMMING & TOP-DOWN APPROACH<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(C)<span style=""> </span>DESK CHECKING & PROGRAM WALK THROUGH<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(D)<span style=""> </span>NONE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">3.<span style=""> </span>RERUN CLAUSE APPERS IN _________ PARAGRAPH OF _________ SECTION OF __________ DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">4.<span style=""> </span>FOR PRINT FILES, LABEL RECORDS ARE ________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>STANDARD<span style=""> </span>(B)<span style=""> </span>OMITTED<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(C)<span style=""> </span>OPTIONAL <span style=""> </span>(D)<span style=""> </span>NONE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">5.<span style=""> </span>PERFORM PROCEDURE –NAME UNTIL CONDITION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>THIS WILL PERFORM PROCEDURE UNDER PROCEDURE-NAME ONLY WHEN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">SPECIFIED CONDITION IS __________ (MET/NOT MET)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6.<span style=""> </span>IF THERE AREA 15 RECORDS TO BE READ THE __________ ATTEMPT TO READ A RECORD CAUSES AN ATEND CONDITION TO BE EXECUTED.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>14<span style=""> </span>(B)<span style=""> </span>15<span style=""> </span>(C)<span style=""> </span>16<span style=""> </span>(D)<span style=""> </span>NONE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">7.<span style=""> </span>WHICH OF THE FOLLOWING IS THE HIERARCHY ORDER IN COMPOUND<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">CONDITION<span style=""> </span>(1)<span style=""> </span>AND <span style=""> </span>(2)<span style=""> </span>OR<span style=""> </span>(3)<span style=""> </span>NOT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>1,2,3<span style=""> </span>(B)<span style=""> </span>2,3,1<span style=""> </span>(C)<span style=""> </span>3,2,1<span style=""> </span>(D)<span style=""> </span>3,1,2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">8.<span style=""> </span>CHOOSE THE EQUIVALENT STATEMENT FOR THE FOLLOWING NEGATED CONDITION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">IF NOT (A = B AND C = D )<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>IF A NOT= B AND C NOT= D<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(B)<span style=""> </span>IF A NOT= B OR<span style=""> </span>C NOT= D<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(C)<span style=""> </span>IF A = B <span style=""> </span><span style=""> </span>OR<span style=""> </span>C = D<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(D)<span style=""> </span>IF A NOT= B OR<span style=""> </span>C = D<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">9.<span style=""> </span>LITERALS IN A INSEPECT STATEMENT MUST BE SINGLE CHARACTERS OR FIQURATIVE CONSTANTS.[T/F]<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">10. A MAXIMUM OF _________ LEVELS OF OCCURS MAY BE USED WITH THE COBOL 85<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>5<span style=""> </span>(B)<span style=""> </span>6<span style=""> </span>(C)<span style=""> </span>7<span style=""> </span>(D)<span style=""> </span>8<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">11.<span style=""> </span>THE LAST STATEMENT IN CALLED PROGRAM IS _________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">12.<span style=""> </span>WHAT ARE THE THREE PRIMARY PURPOSE OF COLUMN 7 IN A COBOL PROGRAM?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">13.<span style=""> </span>FIND OUT THE LOGICAL ERRORS IN THE FOLLOWING PROGRAM AND WRITE THE FOLLOWING PROGRAM AFTER MAKING APPROAPRICATE CORRECTIONS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">1000-MAIN-MODULE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>OPEN_________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 2000-CALC-RTN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>UNTIL ARE-THERE-MORE-RECORDS=’N’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">2000-CALC-RTN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>READ_________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AT END MOVE ‘NO’ TO ARE-THERE-MORE-RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>END-READ<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>___________________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>___________________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>___________________<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">14.<span style=""> </span>FIND OUT THE SYNTAX ERRORS IN THE FOLLOWING INSTRUCTIONS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(A)<span style=""> </span>READ INFILE-1, INFILE-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AT END MOVE ‘NO’ TO MORE RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(B)<span style=""> </span>OPEN FILE-1 FILE-2 AND FILE-3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(C)<span style=""> </span>WRITE REC-A AT END MOVE O TO WS-EOF<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(D)<span style=""> </span>READ FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AT END MOVE 1 TO WS-EOF WRITE FILE-LINE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(E)<span style=""> </span>CLOSE INPUT IN-FILE OUTPUT OUT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">15.<span style=""> </span>MATCH THE FOLLOWING ACTIONS ON FILES WITH APPROPRIATE MATCH TO BE FOLLOWED IN THEIR SYNTAX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">A.<span style=""> </span>_____<span style=""> </span>FILE-NAME<span style=""> </span>B.<span style=""> </span>_____<span style=""> </span>RECORD-NAME<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">1.<span style=""> </span>READ _____<span style=""> </span>(A/B)<span style=""> </span>2.WRITE _____<span style=""> </span>(A/B)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">3.<span style=""> </span>DELETE _____<span style=""> </span>(A/B)<span style=""> </span>4.START _____<span style=""> </span>(A/B)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">5.<span style=""> </span>RELEASE_____(A/B)<span style=""> </span>6.RETURN _____<span style=""> </span>(A/B)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">16.<span style=""> </span>WHICH OF THE FOLLOWING RULES ARE CORRECT FOR FORMING NUMERIC LITERAL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(A)<span style=""> </span>IT SHOULD CONTAIN 1 TO 20 DIGITS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(B)<span style=""> </span>- OR – SIGN MAY APPEAR TO THE LEFT OR RIGHT OF THE NUMBER<o:p></o:p></span></p> <p class="MsoBodyTextIndent">(C)<span style=""> </span>DECIMAL POINT SHOULD NOT APPEAR AS LEFT MOST CHARACTER OF THE LITERAL</p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(D)<span style=""> </span>DECIMAL POINT SHOULD NOT APPEAR AS RIGHT MOST CHARACTER OF THE LITERAL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">17.<span style=""> </span>WHICH OF THE FOLLOWING DIVISIONS ARE OPTIONAL IN COBOL 85<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 45pt;"><span style="">(1)<span style=""> </span>IDENTIFICATION DIVISION<span style=""> </span>(2)<span style=""> </span>ENVIRONMENT DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 45pt;"><span style="">(3)<span style=""> </span>DATA DIVISION<span style=""> </span>(4)<span style=""> </span>PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 45pt;"><span style="">(A)<span style=""> </span>ALL 4 DIVISION<span style=""> </span>(B)<span style=""> </span>2,3,4 ONLY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 45pt;"><span style="">(C)<span style=""> </span>2,3 ONLY<span style=""> </span>(D)<span style=""> </span>2 ONLY<o:p></o:p></span></p> <p class="MsoBodyText2">18.<span style=""> </span>“PROGRAM COLLATING SEQUENCE IS XXXX” IS THE STATEMENT THAT SHALL APPEAR IN</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style="">(A)<span style=""> </span>SOURCE-COMPUTER PARAGRAPH OF CONFIQURATION SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style="">(B)<span style=""> </span>OBJECT-COMPUTER PARAGRAPH OF CONFIQURATION SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style="">(C)<span style=""> </span>SPECIAL-NAMES PARAGRAPH OF CONFIQURATION SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.75in;"><span style="">(D)<span style=""> </span>NONE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">19.<span style=""> </span>‘MULTIPLY A BY B ‘ THE RESULT WILL BE STORED IN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(A)<span style=""> </span>A<span style=""> </span>(B)<span style=""> </span>B<span style=""> </span>(C)<span style=""> </span>‘GIVING’ OPTION IS MISSING<span style=""> </span>(D)<span style=""> </span>NONE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">20.<span style=""> </span>WHICH OF THE FOLLOWING ONE CANNOT BE CHECKED WITH CLASS TEST<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>(1)<span style=""> </span>NUMERIC<span style=""> </span>(2)<span style=""> </span>ALPHABETIC<span style=""> </span>(3)<span style=""> </span>ALPHABETIC-UPPER<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(4)<span style=""> </span>ALPHABETIC-LOWER<span style=""> </span>(5)<span style=""> </span>ALPHANUMERIC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(A)<span style=""> </span>1 ONLY<span style=""> </span>(B)<span style=""> </span>4 ONLY<span style=""> </span>(C)<span style=""> </span>3ONLY<span style=""> </span>(D)<span style=""> </span>5 ONLY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(E)<span style=""> </span>3 AND 4 ONLY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">21.<span style=""> </span>THE SEARCH STATEMENT IS USED TO PERFORM __________ (BINARY/SERIAL)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">22.HOW MANY TIMES WILL THE PARAGRAPH 4000-PROCESS-RTN BE EXECUTED BY THE FOLLOWING PERFORM STATEMENT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(A)<span style=""> </span>PERFORM 4000-PROCESS-RTN VARYING X FROM 1 BY 1 UNTIL X = 10<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(B)<span style=""> </span>PERFORM 4000-PROCESS-RTN VARYING X FROM 1 BY 1 UNTIL X > 10<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(C)<span style=""> </span>PERFORM 4000-PROCESS-RTN VARYING X FROM 0 BY 1 UNTIL X = 10<o:p></o:p></span></p> <p class="MsoBodyTextIndent">(D)<span style=""> </span>PERFORM 4000-PROCESS-RTN WITH TEST AFTER VARYING X FROM 1 BY 1 UNTIL X = 10</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(E)<span style=""> </span>PERFORM 4000-PROCESS-RTN VARYING X FROM 1 BY 2 UNTIL X = 10<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">23.<span style=""> </span>FIND WHETHER THE FOLLOWING STATEMENTS ONE TRUE/FLASE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(A)<span style=""> </span>RELEASE MUST BE USER IN INPUT PROCEDURE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(B)<span style=""> </span>RETURN MUST BE USED IN OUTPUT PROCEDURE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(C)<span style=""> </span>THE ONLY METHOD FOR SORTING DISC FILES IN WITH THE USE OF THE SORT STATEMENT IN COBOL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(D)<span style=""> </span>ONLY INPUT PROCEDURE CAN BE USED WITH MERGE STATEMENT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(E)<span style=""> </span>ONLY OUTPUT PROCEDURE CAN BE USED WITH MERGE STATEMENT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(F)<span style=""> </span>LABEL RECORDS ARE CHECKED FOR OUTPUT FILES AND CREATED FROM INPUT FILES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">24.<span style=""> </span>CHECK WHETHER THE FOLLOWING ARTHIMETIC OPERATIONS ARE CORRECT/INCORRECT<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(A)<span style=""> </span>SUBTRACT AMT1 AMT2 FROM AMT3,AMT4<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(B)<span style=""> </span>DIVIDE AMT BY 5 REMAINDER REM-1<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(C)<span style=""> </span>COMPUTE TOTAL = AMT1 + AMT2<span style=""> </span>ROUNDED<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(D)<span style=""> </span>COMPUTE X+Y =A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">25.<span style=""> </span>MATCH THE FOLLOWING<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(A)<span style=""> </span>ITERATION<span style=""> </span>(1)<span style=""> </span>EVALUATE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(B)<span style=""> </span>SELECTION<span style=""> </span>(2)<span style=""> </span>PEFORM _____UNTIL<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(C)<span style=""> </span>CASE-STRUCTURE<span style=""> </span>(3)<span style=""> </span>AND<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(D)<span style=""> </span>COMPOUND CONDITIONAL<span style=""> </span>(4)<span style=""> </span>IF-THEN-ELSE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">26.<span style=""> </span>LIST OUT THE ERRORS IN THE FOLLOWING SEARCH ALL STATEMENT IF ANY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>SET X1 TO 1.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>SEARCH ALL WEIGHT-TABLE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ALL END PERFORM 6000-ERR-RTN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WHEN WS-MAX-WEIGHT(X1) <></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MULTIPLY WEIGHT-IN BY WS-RATE(X1) GIVING WS-COST<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>END-SEARCH<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <h1 style="margin-right: 0.5in; text-align: center;" align="center"><span style="font-size: 12pt;">PAGE-13<o:p></o:p></span></h1> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <ol style="margin-top: 0in;" start="1" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">IF YOU WISH TO ACCESS FOR RECORDS IN A ROW FROM INDEXED SEQUENTIAL FILE STARTING WITH KEY 78108 AND THEN FOUR RECORDS IN A ROW BEGINNING WITH 98411, YOU WOULD EXECUTE.<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 72.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">EIGHT START STATEMENTS AND EIGHT READ STATEMENTS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 72.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">TOW START STATEMENTS AND TWO READ STATEMENTS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 72.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">ONE START STATEMENT FOLLOWED BY READ STATEMENTS FOUR TILMES THEN ANOTHER START STATEMENT THAT IS FOLLOWED BY FOUR READ STATESMENT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 72.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">NONE OF THE ABOVE.<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="2" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">CONSIDER THE FOLLOWING PROCEDURE DIVISION STATEMENT.<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>INSPECT ALPHA TALLYING COUNTER FOR LEADING “A”<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">LET THE PICTURE OF ALLPHA BE X (20) AND SUPPOSE WITH INITIAL CONTENT IS AS FOLLOWS;<span style=""> </span>AHANBAbbnmahBMAITY<span style=""> </span>(WHER b DENOTES SPACES ) IF COUNTER (WHOSE PICTURE ILS 99 ORGINALLY CONTAINS 08, THEN ATER EXECUTION OF THE<span style=""> </span>INSPECT<span style=""> </span>STATEMENT, COUNTER WILL HAVE <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">A. 13<span style=""> </span>B.09<span style=""> </span>C.23<span style=""> </span>D.5<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="3" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">IDENTIFYILNG THE INCORRECT STATEMENT FROM THE FOLLOWING;<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 72.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">ELEMENTARY DATA ILTEMS WHICH ARE PART OF DIFFERENT STORGE FIELDS CAN BE ORGANZWD IN TO A NEXT FIELD BY THE USE OF THE REDEFINES CLAUSE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 72.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE REDEFINES CLAUSE CANNOT BE USED AT THE 01 LEVEL OF THE FILE SECTION <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 72.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE REDEFINES CLAUSES CANNOT BE USED WITH DATANAMES AT DIFFERENT LEVELS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 72.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE REDEFINES CLAUSSE TO BE REFERRED BY DIFFERENT DATANAMES.<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="4" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">STUDY THE DATA DIVISION ENTRIES AND 3 PROCEDURE DIVISION ENTRIES GIVEN BELOW;<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>01<span style=""> </span>END-OF-FILE-SWITCH<span style=""> </span>PIC<span style=""> </span>XXX<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>88<span style=""> </span>NO-MORE-RECORDS<span style=""> </span>VALUR “YES”<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span>88<span style=""> </span>MORE-RECORDS<span style=""> </span>VALUE “NO”<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="1" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">READ SAMPLE-FILE<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.5in; text-indent: -1.5in;"><!--[if !supportLists]--><span style=""><span style=""><span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span>i.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">AT END MOVE “YES” TO NO-MORE-RECORDS<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="2" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">IF NO-MORE-RECORDS IS EQUAL TO “YES” <o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style=""><span style=""> </span><span style=""> </span>GO TO LAST-PARA.<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="3" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">IF NO-MORE-RECORDS GO TO LAST-PAGE<o:p></o:p></span></li></ol> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 0.25in;"><span style="">WHICH OF THE FOLLOWING STATEMENTS IS TRUE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 180.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">PROCEDURE DIVISION ENTRIES 1. AND2.ARE WRONG.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 180.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">PROCEDURE DIVISION ENTRY 2 ALONE IS WRONG.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 180.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">PROCEDURE DIBVISION ENTRY 1 ALONE IS WRONG<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 180.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">ALL THE ENTRIES ARE CORRECT.<o:p></o:p></span></p> <ol style="margin-top: 0in;" start="4" type="1"><li class="MsoNormal" style="margin-right: 0.5in;"><span style="">WHICH OF THE FOLLOWING STATEMENTS IS INCORRECT<o:p></o:p></span></li></ol> <h2 style="margin-right: 0.5in;"><span style="font-size: 12pt;">PICTURE OF FIELD<span style=""> </span>VALUE MOVED TO FIELD<span style=""> </span>EDITED VALUE<o:p></o:p></span></h2> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">A.<span style=""> </span>ZZ99.99<span style=""> </span>245<span style=""> </span>b245.00<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">B.<span style=""> </span>ZZ.Z99<span style=""> </span><span style=""> </span>2456<span style=""> </span>b2,456<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">C.<span style=""> </span>–9999<span style=""> </span>382<span style=""> </span>b0382<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">D<span style=""> </span>+9999<span style=""> </span>382<span style=""> </span> +0382<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">5.GIVE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 2.5in; text-indent: -1.5in;"><!--[if !supportLists]--><span style=""><span style="">01<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">EXAMPLE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in;"><span style=""><span style=""> </span>02<span style=""> </span>A<span style=""> </span>PIC<span style=""> </span>9(4)V99<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in;"><span style=""><span style=""> </span>02<span style=""> </span>B<span style=""> </span>REDEFINES<span style=""> </span>A.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in;"><span style=""><span style=""> </span>04<span style=""> </span>C<span style=""> </span>PIC<span style=""> </span>99V9<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in;"><span style=""><span style=""> </span>04<span style=""> </span>D<span style=""> </span>PIC<span style=""> </span>9(3)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">WHAT ARE THECONTENTS OF C AND D AFTER THE STATEMENT MOVE 12.34 TO A HAS BEEN EXECUTED;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">A. C=001<span style=""> </span>D=234<span style=""> </span>B. C=123<span style=""> </span>D=400<span style=""> </span>C. C=123<span style=""> </span>D=004<span style=""> </span>D. C=012<span style=""> </span>D=340<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">7. THE USE OF A SUBPROGRAM IN A COBOL ENVIRONMENT IS MOST APPROPRIATE FOR WHICH OF THE FOLLOWING SILTUATIONS; <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">TO PRINT EDTAIL REPORT HEADINGS IN THE VASRIOUS APPLICATION PROGRAMS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">TO READ SEQUENTIAL FILES ILN THE VARIOUS APPLICATION PROGRAMS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">TO FIND THE NUMBER OF DAYS BETWEEN ANY TWO GIVEN DATES IN THE VARIOUS APPLICATION PROGRAMS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">NONE OF THE ABOVE SITUATIONS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">8. SEGMENTATION OF A COBOL PROGRAM IS RESORTED TO ESSENTIALLY WHEN;<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THERE ARE MORE THEN SIX FILES IN A PROGRAM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">WHEN ALL THE FILES ARE INDEXED FILES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">WHEN THE PROGRAM IS TOO LARGE FOR THE MEMORUY AVAILABLE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">WHEN THE PROCEDUREDIVISION EXCEEDS 200 STATEMENTS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">9. WHICH ONE OF THE FOLLOWING IS CORRECT<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE ALTER VERB CAN BE US4D TO CHANGE THE CONTENTS OF A DAIENAME.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE RETURN STATEMENTS RELEASE A FREED PERIPHERAL TO THE OPERATING SYSTEM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE CALL STATEMENT WHEN EXECUTED RINGS THE <st1:place st="on"><st1:city st="on">BELL</st1:city></st1:place> (OR BUZZER ) ON THE OPERATION BY MANIPULATILNG INDEX VALUES ASSOCIATED WITH TABLE ELEMENTS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">10. CONSIDER THE FOLLOWING PROGRAM STATEMENTS;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE 0 TO SW <span style=""> </span>NO-OF-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM PRT-OUT UNTIL SW=1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY <st1:place st="on"><st1:state st="on">ON-OF-REC</st1:state></st1:place><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>…………………<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PRT-OUT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>READ IN-FILE AT END 1TO SW.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WRITE OUT-FROM IN-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ADD 1 TO NO-OF-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">IF THE IN-FILE CONTAIN 1000 RECORDSWHAT VALUE WILL BE DISPLAYED AFTER THE PERFORM IS OVER<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">A. 1000<span style=""> </span>B.1001<span style=""> </span>C 1<span style=""> </span>D.NONE OF THE ABOVE SINCE THERE IS A SYNTAX ERROR<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">11. STUDY THE FOLLOWING RECORD DEFINITION AND ANSWER THE QUESTION GIVEN BELOW;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(1)<span style=""> </span>01<span style=""> </span>ORDER-RECORD.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02<span style=""> </span>OUR-HEADER<span style=""> </span>PIC<span style=""> </span>X(50)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02<span style=""> </span>ITEM-COUNT<span style=""> </span>PIC<span style=""> </span>99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02<span style=""> </span>OUT-ITEM<span style=""> </span>PIC<span style=""> </span>X(20)<span style=""> </span><span style=""> </span>OCCURS 1TO 12<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>TIME DEPENDING ON ITEM-COUNT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(2)<span style=""> </span>01<span style=""> </span>NAME-AMD-ADDRESS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02<span style=""> </span>N-AND-A-LINE<span style=""> </span>OCCURS 5 TIMES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>03<span style=""> </span>LLINE-LENGTH<span style=""> </span>PIC 99<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 2.5in; text-indent: -1.5in;"><!--[if !supportLists]--><span style=""><span style="">02<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">N-AND-A-CHARCTER PIC X OCCURS 1 TO 2<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 2.5in; text-indent: -1.5in;"><!--[if !supportLists]--><span style=""><span style="">03<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">DESPENDING ON LINE – LENGTH<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(3) <span style=""> </span>01<span style=""> </span>SALES-LIST<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02<span style=""> </span>SALESMAN-COUNT<span style=""> </span>PIC 99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02<span style=""> </span>SALES<span style=""> </span>PIC (6)1 TO 10 DEPENDING ON SALESMAN-COUNT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(4) <span style=""> </span>01<span style=""> </span>ORDER-RECORD<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02 NO-OF-BRANDS<span style=""> </span>PIC<span style=""> </span>99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02 BRAND-PURCHASED<span style=""> </span>OCCURS 1 TO 14 TIMES DEPENDING ON NO-OF-BRANDS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>03<span style=""> </span>BRNAME<span style=""> </span>PIC<span style=""> </span>X(10)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>03<span style=""> </span>BRQTY<span style=""> </span>PIC<span style=""> </span>9(6)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">WHICH OF THE FOLLOWING STATEMENTS IS TRUE;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">A.<span style=""> </span>(1) AND (2) ARE VALID<span style=""> </span>B.<span style=""> </span>(1) AND (4) ARE VALID<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">C.<span style=""> </span>(1) (3) AND (4) ARE VALID<span style=""> </span>D. ALL ARE VALID<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">12. CONSIDER THE FOLLOWING DATA DIVISION ENTRIES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>77<span style=""> </span>FIELDS-1<span style=""> </span>PIC<span style=""> </span>X(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>77<span style=""> </span>FIELDS-2<span style=""> </span>PIC<span style=""> </span>X(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>77<span style=""> </span>FIELDS-3<span style=""> </span>PIC<span style=""> </span>X(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>77<span style=""> </span>DATA-FIELD<span style=""> </span>PIC<span style=""> </span>X(12) VALUE IS ABCDEFGHIJKL”<span style=""> </span>WHAT WILL BE THE CONTENTS OF FIELD-1 FIELD-2 AND FIELD-3 RESPECTIVELY AFTER EXECUTION OF THE FOLLOWING OF THE FOILLOWING STATEMENTS;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>UNSTRING DATA-FIELD DELIMITED BY “C” INTO FIELD-1, FIELD-2, FIELD-3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A) Abbbb, DEFGB, HIJKB<span style=""> </span>(B)Abbbb, DEFGH, bbbbb<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">( C ) ABCDE, FGHIJ, KLbbb<span style=""> </span>(D) UNPREDICTABLE BECAUSE OF ERROR IN STATEMENT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">13. GIVEN THE FOLLOWING SORT FILE DESCRIPTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>SD ANY-SORT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>BLOCK CONTAINS 10 RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>RECORDS CONTAINS 200 CHARACTERS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>LABNEL RECORDS ARE STANDARD.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">WHILCH OF THE STARTEMENT GIVEN BELOW IS TRUE;<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.25in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">BLOCK CONTAINS CLAUSE IS INVALILD<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.25in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">BLOCK CONTAINS AND RECORD CONTAINS CLAUSE ARE INALID<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.25in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">BLOCK CONTAINS AND TABLE LABEL RECORDS CLAUSES ARE INVALID <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.25in; text-indent: -0.5in;"><!--[if !supportLists]--><span style=""><span style="">(D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">ALL CLAUSES ARE INVALID<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">14. C1, C2 AND C3 ARE THREE CONDITIONS WHOSE STATUS IS AS FOLLOWS;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">C1-TRUE<span style=""> </span>C2-FALSE<span style=""> </span>C3-TRUE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">THE FOLLOWING FOUR EXPRESSIONS INVOLVE A COMBINATION OF THESE CONDITIION AS FOLLOWS. STUDY THEM, AND CJHOOSE WHICH OF THE STATEMENTS FOLLOWING THEM IS TRUE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">C1 AND ( NOT C2 ) OR C3<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">( NOT C1 ) OR ( NOT C2 AND NOT C3) <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">(C 1 OR C2 ) AND C3<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">C1 AND C2 OR C3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">A. A,B AND C ARE TRUE,<span style=""> </span><span style=""> </span>B. A,C AND D ARE TRUE <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">C. ALL STATEMENTS ARE TRUE<span style=""> </span>D. ONLY C AND D ARE TRUE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">15. GIVEN BELOW ARE PORTIONS OF TWO PROGRAMS;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">1<sup>ST</sup> PROGRAM;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROGRAM-ID<span style=""> </span>CHANGE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>……………<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>……………<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>LINJKAGE SESCTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01 OK-STRING<span style=""> </span>PIC X(80)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROCEDURE DIVISION USING OK-STRING<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DO-THIS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>INSPECT OK-STRING REPLACING ALL “WITH”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY<span style=""> </span>OK-STRING.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DO-THAT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>EXIT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">2<sup>ND</sup> PROGRAM;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROGRAM-ID. UPD<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>……………<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>……………<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WORKING-STORAGE SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>INPUT-STRING <span style=""> </span>PIC X(80)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>OUTPUT-STRING<span style=""> </span>PIC X(80)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>BEGIN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>DISPLAY “TYPE A STRING (MAX 30 CHARACTERS)”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ACCEPT INPUT-STRILNG<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">`<span style=""> </span>MOVE INPUT-STRING TO OUTPUT –STRILNG<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>CALL “CHANGE” USING OUTPUT-STRING<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY “OLD STRING IS”INPUT-STRING<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>STOP RUN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">WHICH OF THE FOLLOWING IS TRUE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THSE PARAMENTERS IN THE CALL VERB SHJOUOD BE OK-STRILNG.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE PARAMETER IN THE CALL VERB MUST BE INPUT-STRING<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">MORE THAN ON PARAMETER MUST APPEAR IN THE CALL STATEMENT<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE CALL STATEMENT SYNTAX IS CORRECT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">16. CONSIDER THE FOLLOWING <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>FD FILE-1 ………<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>01 REC-I<span style=""> </span><span style=""> </span>PIC X(80)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WORKING-STORAGE SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>WS-REC<span style=""> </span>PIC X(90)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>……………<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>READ FILE-1 INTO WS-REC AT END MOVE 1 TOEOF-FLAG <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">WHICH OF THE FOLLOWING IS TRUE WITH RESPECT TO THE ABOVES<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">REC-1 WILL CONTAIN NOTHING AND WS-RES WILL CONTAIN THE CONTENTS OF THE RECORD READ<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">REC-1 AND WS-REC WILL CONTAIN THE SAME SEST OF DATA<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">SYNTAX IS INVALID AND EXECUTION ERROR WILL HAPLPEN<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">REC-1 AND DW-REC MUST HAVE THE SAME SIZE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">17. SOME OF THE SELECTED PART OF A PROGRAM ARE SJHOWN BELOW;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">SSELECT SORT-FILE ASSIGN TO <device-name><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">SELECT CARD-FILE ASSIGN TO<device-name><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">…………..<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">…………..<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">FILE SECTION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">01 CARD-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>03<span style=""> </span>CARD-KEY<span style=""> </span>PIC X(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>03<span style=""> </span>CARD-INFO<span style=""> </span>PIC X(75)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>………..<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>……….<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">SD SORT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DATA RECORD IS SORT-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">01 SORT-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>03<span style=""> </span><span style=""> </span>SORT-KEY<span style=""> </span>PIC X(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>03<span style=""> </span>FILLER<span style=""> </span>PIC X(75)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">SORT-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>SORT SORT-FILE DESCENDING KEY SORT-KEY USING CARD-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>OUTPUT PROCEDURE IS PROCESS-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>…………<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>…………<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">PROCESS-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>…………<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">THE ABOVE PROGRAM SEGMENT IS <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">CORRECT<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">INCORRECT BECAUSE THE FILE CARD-FILE AND SORT-FILE ARE NOT OPENED BEFORE THE SORT STATEMENT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">INCORRECT BNECAUSE THE LABEL RECORDS CLAUSE IS OMITTED FOR THE SORT-FILE DECRYTION IN FILE SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">INCORRECT BECAUSE WHEN USING PHRASE IS USED THE GIVILNG PHRASSE MUST ALSO BE USED.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">18. THOUGH PERFORM AND CALL ACCOMPLISH FUNCTIONS WHICH ARE SIMILAR IN NATURE, THERE ARE DIFFERENCE BETWEEN THEM, WHICH ONE OF THE FOLLOWING STATEMENTSD IS NOT A CORRECT STATEMENT OF THE DIFFERENCE;<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">PERFORM DOES NOT ALLOW ANY PARAMETERS, WHEREAS CALL DOES,<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">PERFORM REFERS TO THE SAME PROGRAM WHEREAS CALL REFERS TO A SEPARATELY COMPILED SUB-PROGRAM. <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">PERFORM CAN REFER TO ANY ONE PARAGRAPHAT A TIME WHEREAS CALL REFERS TO A SUB-PROGRAM WITH ANY NUMBER OF PARAGYRAPHS. <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">PERFORM ALLOWS A PARAGRAPH TO BE REPEATED ANY NUMBER OF THE TIMES WHEREAS CALL INVOKES THE SUB-PROGRAM ANY ONCE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">19. THE USE OF INVALID KEY CLAUSE HELPS THE PROGRAMMER IN; <o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">CHECKING WHETHER THE KEY FIELD HAS THE CORRECT CONTENTS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">CHECKING FOR A DEVICE ERROR.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">CHECKING WHETHER A SPECIFIC FILE EXISTS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 36.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">CHECKING WHETHER A SPECIFIEDRECORD EXISTS IN A FILE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">20. WHEN A SEARCH STATEMENT ISEXCUTED<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE ILNDEX IS AUTOMATICALLY SET TO 1<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE SEARCHBEING WITH THE ELEMENT WHOSE OCCURRENCE NUMBER CORRESPONDS TO THE INDEX VALUE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE INDEX IS SET TO MAXIMUM NUMBER OFOCCURRENCE IN THE TABLE REFERENCED.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE ILNDEX NUMBER IS SSET TO ZERO<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">21. THE PROCEDUREDIVISION OF A PROGRAM CONTAINS THE STATEMENT;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">START MASTER-FILE KEY IS > REC-KEY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">THIS CLEARLY SUGGESTS THJAT THE SSELECT CLAUSE SPESCIFICATION FOR THE MASTER FILE MUST BE;<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">INDEXED SEQUENTIAL WITH ACCESS MODE RANDOM<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">INDEXED SSEQUENTIALWITH ACCESS MODE DYNAMIC<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">SEQUENTIALWITH ACCESS MODE SEQUENTIAL<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">SEQUENTIAL WITH ACCESS MODE RANDOM<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">22. AN OUTPUT FILEHAS THE FOLLOWING CLAUSE ILN THE FD PARAGRAPH;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>BLOCK CONTAINS 20 RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">THE TOTAL NUMBER OF OUTPUT RECORDS IS NOT AN EXACT MULTIPLE OF 20 WHICH ONE OF THE FOLLOWING STATYEMENTS DESCRILBES THESITUATIONCORRECTLY<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE LAST BLOCK WILL NEVER GEST WRITTEN OUT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE LAST BLOCK IS PLADDED WITH CONTENTS OF THE LAST RECORD TO FILLBLOCK BEFORE IT IS WRITTEN OUT<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE PROGRAM WILL GET ABORTED WITH ANEXECUTION ERROR<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE COBOL RUN-TIME SYSTEM FILLS UKP THE REMAINNINT PORTION OF THE BLOCKWITH A PADDINGCHARACTER AND NO SPECIAL ACTION NEED BE TAKEN BY THE PLROGRAMMER TOHANDLE THIS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">23.CONSIDER THE FOLLOWING DATA DIVISIONENTRIES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.75in; text-indent: -1in;"><!--[if !supportLists]--><span style=""><span style="">01<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">B<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.75in;"><span style="">05<span style=""> </span>B1<span style=""> </span>PIC<span style=""> </span>X(8)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.75in;"><span style="">05<span style=""> </span>B2<span style=""> </span>PIC<span style=""> </span>A(4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.75in;"><span style="">05<span style=""> </span>B3<span style=""> </span>PIC<span style=""> </span>Z(3)9.99<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.75in;"><span style="">05<span style=""> </span>B4<span style=""> </span>PIC<span style=""> </span>S9(5)V99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">INDICATE WHATWILL BE THE CONTENTS OF B1, B2,B3 AND B4 AFTER THE ECECURTED OF THE FOLLOWING STATEMENT;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">INITIALIZE B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>REPLACING NUMERIC DATA BY ZEROES<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>REPLACING NUMERIC-EDITED DATA BY 11.0<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>REPLACING A;PHANUMERIC DATA BY SPACES<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">A.<span style=""> </span>B1<span style=""> </span>bbbbbbbb,<span style=""> </span>B2 bbbb<span style=""> </span>B3bb11.0 AND B4 00000^00<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">B<span style=""> </span>B1<span style=""> </span>SPACE<span style=""> </span>B2 SPACE<span style=""> </span>B3 0011.0 AND B4<span style=""> </span>0.00<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">C<span style=""> </span>B1<span style=""> </span>SPACE <span style=""> </span>B2 SPACE<span style=""> </span>B3<span style=""> </span>bb11.0<span style=""> </span>AND<span style=""> </span>B4 0.0<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">24. IDENTIFY THE CORRECT DATA DIVISION ENTRY FROM THE FOLLOWING;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">A.<span style=""> </span>01<span style=""> </span>X<span style=""> </span>USAGE<span style=""> </span>IS<span style=""> </span>INDEX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">B.<span style=""> </span>01<span style=""> </span>X<span style=""> </span>PIC<span style=""> </span>9<span style=""> </span>USAGE<span style=""> </span>IS <span style=""> </span>INDEX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">C.<span style=""> </span>01<span style=""> </span>X<span style=""> </span>USAGE<span style=""> </span>IS<span style=""> </span>INDEX<span style=""> </span>PIC<span style=""> </span>9<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">25. EVALUTE TRANS-CODE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WHEN 1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WHEN 2<span style=""> </span>PERFORM ADD-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WHEN 3 THRU<span style=""> </span>PERFORM UPDATE-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WHEN OTHER<span style=""> </span>DISPLAY “ INVALID SENTRY”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">END-EVALUATE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">IDENTILFY THE ILNCCORRECT ONE FROM THJE FOLLOWING;<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">IF TRANS-CODE IS 1 OR 2 PERFORM AND-PARA WIL BE EXECUTED<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">IF TRANS-CODE IS 2 OR 4 PERFORM UPDATE-PARA WIL BE EXECUTED<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">IF TRANS-CODE IS ANY OTHER THEN DISPLAY “INVALID ENTRY” WILL BE EVALUATED<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">IF TRANS-CODE IS 1, NONE OF THE STATEMESNTS WILL BE EXECUTED<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">26. EVALUTE TRUE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WHEN TRANS-CODE =1OR2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM ADD-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WHEN TRANS-CODE=3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM UPDATE-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WHEN TRANS-CODE =4<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM DELETE-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WHEN OTHER <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORMERPARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">END –EVALULATE,<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">IDENTILFY THE ORRECT STATEMENT FROM THE FOLLOWING;<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">A.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE CONDITION TRANS-CODE =3 WILL BE TESTED ONLYIF THE JPREVIOUS CONDITION IS VALID.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">B.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE CONDITION TRANS-CODE=4 WILL BE TESTESD NOLY IF THE PREVIOUS TWO CONDITION ARE VALID<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">C.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE CONDITION TRANS-CODE=4 WILL BE TESTED ONLY IF THE JPREVIOUSCONDITION ARE INVALID.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 37.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style=""><span style="">D.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THEOTHER WILL BE EXECUTED ONLY IF ALLTHE PREVIOUS CONDITION ARE VALID.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">30. 01<span style=""> </span>SAMPLE-TABLE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.75in; text-indent: -1in;"><!--[if !supportLists]--><span style=""><span style="">02<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">TABLE-CELL OCCURS 100 TIMES PIC 9(5) V99VALUE ZERO<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">INDENTIFY THE CORRECT STATEMENTS;<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 2in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">IN THE 1974 VERSION OF COBOL WE CANNOT USSE THE OCCURS AND VALUE CLAUSESS TO ENTER THE SAMECONSTANT IN TO ALL OF THE POSITIONS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 2in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">THE ABOVE DECLARATION ISVALIDONLY ILN 1985 VERSION OF COBOL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 2in; text-indent: -0.25in;"><!--[if !supportLists]--><span style=""><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="">ONES CANNOT ASSIGN GLOBALLY A SINGLE VALUE TO ALL THE ENTRIES ILN A TABLE ILN THE 1974 VERSION OF COBOL<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.75in; text-indent: 0.25in;"><span style="">A<span style=""> </span>1AND 2 ARE CORRECT<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.75in; text-indent: 0.25in;"><span style="">B ONLY 1 IS CORRECT<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.75in; text-indent: 0.25in;"><span style="">C ALL ARE CORRECT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 1.75in; text-indent: 0.25in;"><span style="">D ONLY 2 AND 3 ARE CORRECT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">28. CALCULAARE THE RECORE LENGTH FOR A RECORD WJHOSEDESCRILPTION IS GIVEN BELOW;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><st1:address st="on"><st1:street st="on"><span style="">DEPT</span></st1:street><span style=""> </span><span style="">2</span></st1:address><span style=""> LETTERS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">NUMBER<span style=""> </span>5 DIGITS,COMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">MONTH<span style=""> </span>2 DIGITS,COMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">DAY <span style=""> </span>2 DIGITS,COMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">YEAR<span style=""> </span>2 DIGITS,COMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">GROSS<span style=""> </span>2 DIGITS,COMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">TOTAL<span style=""> </span>6 DIGITS,COMP(INCLUDES 2 DECIMAL PLACES & COMP-3)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">THE RECORD LENGTH (IN BYTES)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>19<span style=""> </span>(B)<span style=""> </span>14<span style=""> </span>(C)<span style=""> </span>16<span style=""> </span>(D)<span style=""> </span>17<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">29.<span style=""> </span>IDENTIFY THE VALID ENTRIES FROM THE FOLLOWING<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>01<span style=""> </span>RECORD-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FIELD-B2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10<span style=""> </span>FILLER<span style=""> </span>PIC<span style=""> </span>XX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10<span style=""> </span>FIELD-B2<span style=""> </span>PIC<span style=""> </span>S99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FIELD-B22<span style=""> </span>FIELD-B21<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10<span style=""> </span>FILLER<span style=""> </span>PIC<span style=""> </span>XX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(B)<span style=""> </span>01<span style=""> </span>RECORD-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FIELD-C23<span style=""> </span>PIC<span style=""> </span>S9999-COMP-3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FIELD-C24<span style=""> </span>REDEFINES<span style=""> </span>FIELD-C23<span style=""> </span>PIC<span style=""> </span>X(3)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(C)<span style=""> </span>01<span style=""> </span>RECORD-C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FIELD-C1<span style=""> </span>PIC<span style=""> </span>XX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FIELD-C3<span style=""> </span>REDEFINES<span style=""> </span>FIELD-C1<span style=""> </span>PIC<span style=""> </span>XX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FIELD-C4<span style=""> </span>REDEFINES<span style=""> </span>FIELD-C3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10<span style=""> </span>FILLER<span style=""> </span>PIC<span style=""> </span>XX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(D)<span style=""> </span>01<span style=""> </span>RECORD-C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FIELD-C1<span style=""> </span>PIC<span style=""> </span>XX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FIELD-C2<span style=""> </span>REDEFINES<span style=""> </span>FIELD-C1<span style=""> </span>PIC<span style=""> </span>9(2)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">30.<span style=""> </span>IDENTIFY THE VALID ARITHMATIC STATEMENTS FROM THE FOLLOWING<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>1)<span style=""> </span>ADD A TO B<span style=""> </span>GIVING C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>2)<span style=""> </span>SUBTRACT X Y FROM W.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>3)<span style=""> </span>MULTIPLY X BY Y<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>ON SIZE ERROR<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM<span style=""> </span>ERR-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>NOT ON SIZE ERROR<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY “MULTIPLICATION VALID”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>END-MULTIPLY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>4)<span style=""> </span>DIVIDE A INTO B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>ALL ARE VALID<span style=""> </span>(B)<span style=""> </span>1 AND 2 ARE VALID<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(C)<span style=""> </span>2 AND 3 ARE VALID<span style=""> </span>(D)<span style=""> </span>2 AND 4 ARE VALID<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">31.<span style=""> </span>CONSIDER THE FOLLOWING STATEMENTS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><st1:place st="on">PARA</st1:place>-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM PARA-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PARA-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>PERFORM PARA-C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PARA-C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>PERFORM <st1:place st="on">PARA</st1:place>-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span><span style=""> </span><span style=""> </span>PERFORM PARA-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">IDENTIFY THE CORRECT STATEMENT FROM THE FOLLOWING<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>COBOL PERMITS CYCLICAL (RECURSIVE) NESTING.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(B)<span style=""> </span>COBOL DOESN’T PERMIT CYCLICAL NESTING.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(C)<span style=""> </span>ONLY ANSI 1985 VERSION COBOL ALLOWS CYCLICAL NESTING.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(D)<span style=""> </span>BOTH ANSI 1974 AND 1985 VERSION ALLOW CYCLICAL NESTING.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">35.<span style=""> </span>01<span style=""> </span>NEW-RECORD<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 TODAYS-DATE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10 MONTH<span style=""> </span>PIC 99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10 YEAR<span style=""> </span>PIC 99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 LAST-PERIODS-DATE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10 MONTH<span style=""> </span>PIC 99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10 YEAR<span style=""> </span>PIC 99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10 TOTAL<span style=""> </span>PIC 99V99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">IDENTIFY THE VALID STATEMENTS FROM THE FOLLOWING<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>THE ABOVE DESCRIPTION IS VALID-ONLY IN ASNI 1974 VERSION OF COBOL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(B)<span style=""> </span>THE ABOVE DESCRIPTION IS VALID-BOTH IN 1974 AND 1985 VERSION OF COBOL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(C)<span style=""> </span>THE ABOVE DESCRIPTION NOT VALID IN BOTH VERSIONS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">33.<span style=""> </span>THE I-O STATUS CODE FOR SUCCESSFUL EXECUTION IS ‘00’. CONSIDER THE FOLLOWING ENVIRONMENT DIVISION<span style=""> </span>ENTRY.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>SELECT IN-FILE ASSIGN TO DISK<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ORGANIZATION IS SEQUENTIAL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>FILE-STATUS CODE IS F-CODE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>IDENTIFY THE VALID STATEMENTS FROM THE FOLLOWING<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""><span style=""> </span>(A)<span style=""> </span>IF THE FILE OPENED SUCCESSFULLY, THEN THE VALUE ‘00’ WILL BE MOVED IN TO THE FIELD F-CODE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""><span style=""> </span>(B)<span style=""> </span>IF FILE-READ IS SUCCESSFULLY, THEN ‘00’ WILL BE MOVE INTO F-CODE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""><span style=""> </span>(C)<span style=""> </span>IF FILE-WRITE IS SUCCESSFULLY, THEN ‘00’ WILL BE MVOED INTO THE FIELD F-CODE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(D)<span style=""> </span>ALL ABOVE STATEMENTS ARE VALID.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">1)<span style=""> </span>FD<span style=""> </span>READ-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style=""><span style=""> </span>BLOCK CONTAINS 800 CHARACTERS<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style=""><span style=""> </span>RECORD CONTAINS 80 CHARACTERS<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">2)<span style=""> </span>FD<span style=""> </span>READ-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style=""><span style=""> </span>BLOCK CONTAINS 10 RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style=""><span style=""> </span>RECORD CONTAINS 80 CHARACTERS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">CHOOSE THE VALID STATEMENT FROM BLEOW<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(A)<span style=""> </span>BOTH ARE VALID AND SAME<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(B)<span style=""> </span>BOTH ARE VALID AND NOT THE SAME<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(C)<span style=""> </span>ONLY 1 IS VALID<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(D)<span style=""> </span>ONLY 2 IS VALID.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">35.<span style=""> </span>IDENTIFY THE CORRECT FORMAT FROM THE FOLLOWING<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>1)<span style=""> </span>SORT FILENAME ON ASCENDING KEY1, KEY3 DESCENDING KEY3, KEY4 , KEY5 INPUT PROCEDURE IS PROCESS-1 USING IN-FILE<span style=""> </span>GIVING OUT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>2)<span style=""> </span>SORT FILEMANE ON ASCENDING KEY KEY1 KEY2 DESCENDING KEY3 USING INFILE OUTPUT PROCEDURE IS PORCESS-OUT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>3)<span style=""> </span>SORT FILEMANE ON ASCENDING KEY KEY1 INPUT PROCEDURE IS PROCESS OUTPUT PROCEDURE IS PROCESSOUT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>4)<span style=""> </span>SORT FILENAME ON DESCENDING KEY KEY1 INPUT PROCEDURE IS PROCESS1 GIVING OUT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(A) <span style=""> </span>1 AND 2 ARE VALID<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(B)<span style=""> </span>ALL ARE VALID.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(C)<span style=""> </span>ONLY 2 AND 4 ARE VALID.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(D)<span style=""> </span>2,3, AND 4 ARE VALID.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">36.<span style=""> </span>IDENTIFY THE VALID STATEMENT FROM THE FOLLOWING<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(A)<span style=""> </span>IN THE CASE OF AN INDEXED FILE DELETION OF A RECORD READ NOT BE PRECEDED BY A SUCCESSFUL READ.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(B)<span style=""> </span>REWRITE VERB IS NOT APPLICABLE FOR SEQUENTIAL FILE ORGANIZATION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(C)<span style=""> </span>WHEN AN ALTERNATIVE KEY DEFINED FOR AN INDEXED FILE, IT IS MANDATORY TO GIVE THE ‘WITH DUPLICATES’ CLAUSE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(D)<span style=""> </span>INDEXE SEQUENTIAL FILE ORGANIZATION ALLOWS A FILE TO BE OPENED IN THE EXTEND MODE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">37.<span style=""> </span>IDENTIFY THE VALID STATEMENT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(A)<span style=""> </span>WHEN AN ELEMENTARY DATA ITEM IS DESCRIBED WITH THE USAGE IS INDEX CLAUSE, THE PICTURE CLAUSE SHOULD BE GIVEN AS NUMERIC FOR SUCH AN ITEM<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(B)<span style=""> </span>THE OCCURS….DEPENDING ON OPTION CAN BE USED WHEN THE NUMBER OF ENTRIES TO BE INCLUDED IN A TABLE IS PREDETERMINED.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(C)<span style=""> </span>THE INTEGER SUBSCRIPT USED IN CONJUNCTION ITH A SUBSCRIPTED VARIABLE MAY BE A CONSTANT OR A VARIABLE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(D)<span style=""> </span>AN INDEX USED IN A SEARCH STATEMENT MAY BE INTIALIZED BY A MOVE STATEMENT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">38.<span style=""> </span>CONSIDER THE FOLLOWING DATA DIVISION ENTRY:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>W<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>WS-X<span style=""> </span>PIC S99<span style=""> </span>VALUE-11<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>WS-Y<span style=""> </span>REDEFINES WS-X PIC XX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>WS-Z<span style=""> </span>PIC S99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>IF THE FOLLOWING STATEMENT IS EXECUTED, WHAT WOULD BE THE VALUE STORED IN WS-Z<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE WS-Y TO WS-Z<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(A)<span style=""> </span>-11<span style=""> </span>(B)<span style=""> </span>1B<span style=""> </span>(C)<span style=""> </span>B1<span style=""> </span>(D)<span style=""> </span>11<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">39.<span style=""> </span>CONSIDER THE FOLLOWING PROCEUDRE DIVISION ENTRY:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>OPEN EXTEND IN-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>IDENTIFY THE CORRECT ONE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(A)<span style=""> </span>ORGANIZATION OF IN-FILE IS SEQUENTIAL AND RECORDS CAN BE ADDED IN THE BEGINNING,<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(B)<span style=""> </span>ORGANIZATION<span style=""> </span>OF IN-FILE IS SEQUENTIAL AND RECORDS CAN BE ONLY APPENDED AT END.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(C)<span style=""> </span>ORGANIZATION OF IN-FILE IS INDEXED, AND RECORDS CAN BE ONLY APPENDED AT END<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">40.<span style=""> </span>CONSIDER THE FOLLOWING STATEMENTS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>1)<span style=""> </span>IN COBOL ANSI-74 ONLY CALL BY REFERENCE IS POSSIBLE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>2)<span style=""> </span>IN COBOL ANSI-74 BOTH CALL BY REFERENCE AND CALL BY CONTENT POSSIBLE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>3)<span style=""> </span>IN ANSI-85<span style=""> </span>COBOL BOTH CALL BY REFERENCE AND CALL BY CONTENT POSSIBLE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>4)<span style=""> </span>IN ANSI-85<span style=""> </span>COBOL ONLY CALL BY REFERENCE IS POSSIBLE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>IDENTIFY THE CORRECT ONE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(A)<span style=""> </span>1 & 4 ARE CORRECT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>(B)<span style=""> </span>1 & 3 ARE CORRECT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(C)<span style=""> </span>2 & 3 ARE CORRECT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(D)<span style=""> </span>ALL ARE CORRECT<o:p></o:p></span></p> <span style="font-size: 12pt; font-family: "Times New Roman";">
<br /> </span> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt 3in;"><span style="">PAGE-14<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">1)<span style=""> </span>IDENTIFICATION DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROGRAM-ID <span style=""> </span>PROG-1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ENVIRONMENT DIVIISON<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>INPUT-OUTPUT<span style=""> </span>SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>FILE-CONTROL<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>SELECT IN-FILE ASSIGN TO DISK<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ORGANIZATION IS SEQUENTIAL<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ACCESS MODE IS SEQUENTIAL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>FILE STATUS IS WS-FS1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>SELECT OUT-FILE ASSIGN TO DISK<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>ORGANIZATION IS SEQUENTIAL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ACCESS MODE IS SEQUENTIAL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>FILE STATUS IS WS-FS2.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DATA DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>FD IN-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>RECORD CONTAINS 33 TO 1045 CHARACTERS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>BLOCK CONTAINS 10 RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>RECORDING MODE IS F.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>FS-EMP-REC-IN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FS-EMP-NO-IN<span style=""> </span>PIC-X(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FS-EMP-NAME-IN<span style=""> </span>PIC-X(20)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FS-EMP-SAL-IN<span style=""> </span>PIC 9(6) V 99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>FD<span style=""> </span>OUT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>RECORD CONTAINS 33 TO 1056 CHARACTERS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>RECORDING MODE IS F.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>FS-EMP-REC-OUT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FS-EMP-NO-OUT<span style=""> </span>PIC X(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>05<span style=""> </span>FS-EMP-NAME-OUT<span style=""> </span>PIC X(20)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>FS-EMP-SAL-OUT<span style=""> </span>PIC 9(6) V99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WORKING-STORAGE SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>WS-FS1<span style=""> </span>PIC X(2)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>WS-FS2<span style=""> </span>PIC X(2)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>WS-STATUS<span style=""> </span>PIC 9 VALUE 0<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>88 WS-EOF<span style=""> </span>VALUE 1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>0000-MAIN-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM OPEN-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM READ-PARA UNTIL WS-EOF<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>STOP RUN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>OPEN-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>OPEN<span style=""> </span>INPUT IN-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>OUTPUT OUT-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>READ IN-FILE AT END<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE 1 TO WS-STATUS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>IF NOT-WS-EOF<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM READ-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>READ-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>READ IN0FILE AT END<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE 1 TO WS-STATUS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>IF NOT WS-EOF<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM WRITE-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WRITE-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE FS-EMP-REC-IN TO FS-EMP-REC-OUT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WRITE FS-EMP-REC-OUT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(A)<span style=""> </span>WRITE THE SYNTAX AND COMPLIATION ERRORS IF ANY?<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt;"><span style="">(B)<span style=""> </span>IF THERE ARE 1,003 RECORDS IN INPUT FILE ()IN-FILE) HOW MANY RECORDS WILL BE WRITTEN IN OUTPUT FILE (OUT-FILE) ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style="">(C)<span style=""> </span>WRITE THE LOGICAL ERRORS IF ANY?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">2)<span style=""> </span>WHAT IS THE OUTPUT OF THE FOLLOWING PROGRAM<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>IDENTIFICATION DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROGRAM-ID PROG-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>ENVIRONMENT DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DATA DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>WORKING-STORAGE SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>WS-ARRAY1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-X<span style=""> </span>OCCURS<span style=""> </span>4<span style=""> </span>TIMES<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>10 WS-Y<span style=""> </span>OCCURS <span style=""> </span>5<span style=""> </span>TIMES<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>15 WS-SUB<span style=""> </span>PIC 9(3)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>WS-1<span style=""> </span>PIC 9<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>WS-J<span style=""> </span>PIC 9<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PEFORM 1000-FIRST-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY WS-SUB(1,1)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY WS-SUB(2,2)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY WS-SUB(3,3)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY WS-SUB(4,4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY WS-SUB(2,1)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY WS-SUB(3,1)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY WS-SUB(4,2)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>1000-FIRST-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 1500-ENTRY-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>VARYING WS-I FROM 1 BY 1 UNTIL WS-I > 4<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AFTER WS-J FROM 1 BY 1 UNTIL WS-J > 5<o:p></o:p></span></p> <div style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 1.5pt; padding: 0in 0in 1pt; margin-left: 0in; margin-right: 0.5in;"> <p class="MsoNormal" style="border: medium none ; padding: 0in;"><span style=""><span style=""> </span>1500-ENTRY-PARA<o:p></o:p></span></p> </div> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">PAGE-15<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">IDENTIFICATION DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">PROGRAM-ID<span style=""> </span>PROG-ID<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">ENVIRONMENT DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">INPUT-OUTPUT SECTION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">FILE-CONTROL<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>SELECT IN-FILE ASSIGN TO DISK<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ORGANIZATION IS SEQUENTIAL<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ACCESS MODE IS SEQUENTIAL<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>FILE STATUS IS WS-FS1<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>SELECT OUT-FILE ASSIGN TO DISK<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ORGANIZATION IS SEQUENTIAL<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ACCESS MODE IS SEQUENTIAL<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>FILE STATUS IS WS-FS2<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">DATA DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">FD IN-FILE<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>RECORD CONTAINS 33 TO 1045 CHARACTERS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>BLOCK CONTAINS 10 RECORDS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>RECORDING MODE IS F<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">01 FS-EMP-REC-IN<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 FS-EMP-NO-IN<span style=""> </span>PIC X(5)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 FS-EMP-NAME-IN<span style=""> </span>PIC X(20)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 FS-EMP-SAL-IN<span style=""> </span>PIC 9(6) V 99<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">FD OUT-FILE<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>RECORD CONTAINS 33 TO 1056 CHARACTERS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>RECORDING MODE IS F<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">01 FS-EMP-REC-OUT<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 FS-EMP-NO-OUT<span style=""> </span>PIC X(5)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 FS-EMP-NAME-OUT<span style=""> </span>PIC X(20)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 FS-EMP-SAL-OUT<span style=""> </span>PIC 9(6) V 99<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">WORKING STORAGE SECTION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">01<span style=""> </span>WS-FS1<span style=""> </span>PIC X(2)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">01<span style=""> </span>WS-FS2<span style=""> </span>PIC X(2)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">01<span style=""> </span>WS-STATUS<span style=""> </span>PIC 9 VALUE 0<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>88 WS-EOF<span style=""> </span>VALUE 1<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">0000-MAIN-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM OPEN-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM READ-PARA UNTIL WS-EOF<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>STOP RUN<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">OPEN-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>OPEN<span style=""> </span>INPUT IN-FILE<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>OUTPUT<span style=""> </span>OUT-FILE<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>READ IN-FILE AT END<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>MOVE 1 TO WS-STATUS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>IF NOT WS-EOF<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM READ-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">READ-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>READ IN-FILE AT END<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>MOVE 1 TO WS-STATUS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>IF NOT WS-EOF<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM WRITE-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">WRITE-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>MOVE FS-EMP-REC-IN TO FS-EMP-REC-OUT<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>WRITE FS-EMP-REC-OUT<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">------------------------------------------------------------------------------<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>(A)<span style=""> </span>WRITE THE SYNTAX AND COMPLIATION ERRORS IF ANY?<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>(B)<span style=""> </span>IF THERE ARE 1,003 RECORDS IN INPUT FILE(IN-FILE) HOW MANY RECORDS <o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>WILL BE WRITTEN IN OUTPUT FILE(OUT-FILE)?<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>(C)<span style=""> </span>WRITE THE LOGICAL ERRORS IF ANY?<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">2)<span style=""> </span>WHAT IS THE OUTPUT OF THE FOLLOWING PROGRAM<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>IDENTIFICATION DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PROGRAM-ID<span style=""> </span>PROG-2<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ENVIRONMENT DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>DATA DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>WORKING-STORAGE SECTION <o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 WS-ARRAY1<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05<span style=""> </span>WS-X<span style=""> </span>OCCURS<span style=""> </span>4<span style=""> </span>TIMES<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>10<span style=""> </span>WS-Y<span style=""> </span>OCCURS<span style=""> </span>5<span style=""> </span>TIMES<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>15<span style=""> </span>WS-SUB<span style=""> </span>PIC 9(3)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 WS-I<span style=""> </span><span style=""> </span>PIC9<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 WS-J<span style=""> </span>PIC9<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM 1000-FIRST-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM 2000-CAL-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>DISPLAY WS-SUB(1,1)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>DISPLAY WS-SUB(2,2)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>DISPLAY WS-SUB(3,3)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>DISPLAY WS-SUB(4,4)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>DISPLAY WS-SUB(2,1)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>DISPLAY WS-SUB(3,1)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>DISPLAY WS-SUB(4,2)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>1000-FIRST-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM 1500-ENTRY-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>VARYING WS-I FROM 1 BY 1 UNTIL WS-I > 4<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>AFTER WS-J FROM 1 BY 1 UNTIL WS-J > 5<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>1500-ENTRY-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>IF WS-I = WS-J<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>MOVE 100 TO WS-SUB(I,J)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ELSE<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>MOVE 1 TO WS-SUB(I,J)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>END-IF<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>2000-CAL-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM 2500-CALSET-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>VARYING WS-I FROM 1 BY 1 UNTIL WS-I > 4<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>AFTER WS-J FROM 1 BY 1 UNTIL WS-J > 5<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>2500-CALSET-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>IF WS-I = WS-J<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>MULTIPLY WS-SUB(I,J) BY 4<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>GIVING WS-SUB(I,J)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ELSE<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>MULTIPLY WS-SUB(I,J) BY 4<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>GIVING WS-SUB(I,J)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>END-IF<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">---------------------------------------------------------------------------------<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">3)<span style=""> </span>IDENTIFICATION DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PROGRAM-ID<span style=""> </span>PROG-3<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ENVIRONMENT DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>INPUT-OUTPUT SECTION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>FILE-CONTROL<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>SELECT IN-FILE ASSIGN TO DISK<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ORGANIZATION IS INDEXED.<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ACCESS MODE IS DYNAMIC<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>RECORD KEY IS FS-REC-KEY-IN<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>FILE STATUS IS WS-FS1<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>SELECT OUT-FILE ASSIGN TO DISK<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ORGANIZATION IS INDEXED <o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ACCESS MODE IS SEQUENTIAL<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>RECORD KEY IS FS-REC-KEY-OUT<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>FILE STATUS IS WS-FS2<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>DATA DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>FD IN-FILE<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>RECORD CONTAINS 33 TO 1045 CHARACTERS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>BLOCK CONTAINS 10 RECORDS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>RECORDING MODE IS F<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01<span style=""> </span>FS-EMP-REC-IN<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05<span style=""> </span>FS-REC-KEY-IN<span style=""> </span>PIC X<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>10 FS-KEY-IN<span style=""> </span>PIC X<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>10 FS-EMP-NO-IN<span style=""> </span><span style=""> </span>PIC X(4)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 FS-EMP-NAME-IN<span style=""> </span>PIC X(20)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 FS-EMP-SAL-IN<span style=""> </span>PIC 9(6) V 99<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>FD OUT-FILE<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>RECORD CONTAINS 33 TO 1056 CHARACTERS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>RECORDING MODE IS F<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 FS-EMP-REC-OUT<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05<span style=""> </span>FS-REC-KEY-OUT<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>10 FS-KEY-OUT<span style=""> </span>PIC X<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>10 FS-EMP-NO-OUT<span style=""> </span>PIC X(4)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 FS-EMP-NAME-OUT<span style=""> </span>PIC X(20)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 FS-EMP-SAL-OUT<span style=""> </span><span style=""> </span>PIC 9(6) V 99<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>WORKING STORAGE SECTION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 WS-REC-KEY<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 WS-KEY1<span style=""> </span>PIC X<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 WS-KEY2<span style=""> </span>PIC X(4) VALUE 0000<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 WS-FS1<span style=""> </span>PIC X(2)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>01 WS-FS2<span style=""> </span>PIC X(2)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 WS-A<span style=""> </span>PIC X<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 WS-STATUS<span style=""> </span>PIC X VALUE 'Y'<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>88 MORE-RECORDS<span style=""> </span>VALUE 'Y'<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>88 NO MORE-RECORDS<span style=""> </span>VALUE 'N'<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">----------------------------------------------------------------------------------<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">0000-MAIN-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM 1000-OPEN-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM 2000-INIT-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>STOP RUN<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">1000-OPEN-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>OPEN INPUT IN-FILE<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>OUTPUT OUT-FILE<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">2000-INIT-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>MOVE WS-A TO WS-KEY1<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>MOVE WS-REC-KEY TO FS-REC-KEY-IN<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>START IN-FILE KEY IS GREATER THAN OR EQUAL TO FS-REC-KEY-IN<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>INVALID KEY MOVE 'N' TP WS-STATUS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>DISPLAY 'NO RECORD EXISTS'<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>STOP RUN<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>NOT INVALID KEY MOVE 'Y' TO WS-STATUS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>END-START<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM 2005-READ-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM 2010-WRITE-PARA UNTIL NO-MORE-RECORDS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">2005-READ-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>READ IN-FILE NEXT RECORD AT END<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>MOVE 'N' TO WS-STATUS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>DISPLAY 'NO MORE RECORDS'<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>END-READ<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">2010-WRITE-PARA<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>MOVE FS-EMP-REC-IN TO FS-EMP-REC-OUT<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>WRITE FS-EMP-REC-OUT<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PEFORM 2005-READ-<st1:place st="on">PARA</st1:place><o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">CONSIDERING THE FOLLOWING DATA ANSWER THE QUESTIONS FOLLOWED<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">THE IN-FILE CONTAINS FOLLOWING NO OF RECORDS WITH THE VARIOUS ALPHABETS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">AS PERFIX (FS-KEY-IN) IN ITS <st1:place st="on"><st1:city st="on">RECORD KEY FIELD</st1:city> <st1:state st="on">AS</st1:state></st1:place><o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>A............440<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>B............340<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>C............240<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>D............101<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>H............10<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">1)IF 'A' IS MOVED TO WS-A HOW MANY RECORDS WILL BE WRITTEN INTO OUT-FILE?<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">2)IF 'D' IS MOVED TO WS-A HOW MANY RECORDS WILL BE WRITTEN INTO OUT-FILE?<span style=""> </span><o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">3)IF 'H' IS MOVED TO WS-A HOW MANY RECORDS WILL BE WRITTEN INTO OUT-FILE?<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">4)IF 'M' IS MOVED TO WS-A HOW MANY RECORDS WILL BE WRITTEN INTO OUT-FILE?<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">5)LIST OUT LOGICAL AND SYNTAX ERRORS IF ANY?<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">-----------------------------------------------------------------------------<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">4)<span style=""> </span>HOW MANY TIMES DOES THE FOLLOWING <st1:place st="on">PARA</st1:place>-A IS PERFORMED AND THE VALUE <o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>OF WS-SUM AFTER EXECUTION.<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><o:p> </o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><st1:place st="on">PARA</st1:place>-I<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>MOVE 0 TO WS-J<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>MOVE 5 TO WS-SUM<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PERFORM <st1:place st="on">PARA</st1:place>-A VARYING WS-I FROM WS-J BY 1 UNTIL WS-I ><o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>(WS-J + 10)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>STOP RUN<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><st1:place st="on">PARA</st1:place>-A<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>SUBTRACT 1 FROM WS-J<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ADD 5 TO WS-SUM<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";">5)<span style=""> </span>IDENTIFICATION DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>PROGRAM-ID<span style=""> </span>PROG-4<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>ENVIRONMENT DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>INPUT-OUTPUT SECTION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>FILE-CONTROL<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>SELECT CUST-FILE ASSIGN TO DISK<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>FILE STATUS IS WS-FS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>DATA DIVISION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>FILE SECTION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>FD CUST-FILE<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>BLOCK CONTAINS<span style=""> </span>2 TO 10 RECORDS<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>RECORD CONTAINS 10 TO 100 CHARACTERS <o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>RECORDING MODE IS F<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 FS-CUST-REC<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 FS-N<span style=""> </span>PIC 99<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 FILE-ARRAY OCCURS 2 TO 20 TIMES DEPENDING ON FS-N<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>10 FS-CUST-NO<span style=""> </span><span style=""> </span>PIC 9(3)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>10 FS-DISCT<span style=""> </span>PIC V99<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>WORKING-STORAGE SECTION<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 WS-CUST-REC<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 WS-N<span style=""> </span>PIC 9<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 WS-ARRAY OCCURS 2 TO 20 TIMES DEPENDING ON WS-N<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>10 WS-CUST-NO<span style=""> </span>PIC 9(3)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>10 WS-DISCT<span style=""> </span>PIC V99<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 WS-TMP-ARRAY<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>05 WS-ARRAY OCCURS 2 TO 20 TIMES DEPENDING ON WS-N<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>10 WS-PRICE<span style=""> </span>PIC 9(3)<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span><span style=""> </span>01 WS-N<span style=""> </span>PIC 9<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 WS-I<span style=""> </span>PIC 9<o:p></o:p></span></p> <p class="MsoPlainText" style="margin-right: 0.5in;"><span style="font-size: 12pt; font-family: "Times New Roman";"><span style=""> </span>01 WS-STATUS<span style=""> </span>PIC X VALUE 'Y'<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>88 MORE-RECORDS <span style=""> </span>VALUE ‘Y’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>88 NO-MORE-RECORDS<span style=""> </span>VALUE ‘N’<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PROCEDURE DIVISION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>0000-MAIN-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 1000-INIT-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>READ CUST-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AT END MOVE ‘N’ TO WS-STATUS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>END READ<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 2000 TABLE-ENTRY UTNIL NO-MORE-RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 3000 DISP-PARA UNTIL NO-MORE-RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>STOP RUN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">1000-INIT-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>OPEN INPUT CUST-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>INITIALIZE WS-ARRAY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">2000-TABLE-ENTRY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>MOVE FS-CUST-REC TO WS-CUST-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 2005-CALC-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>VARYING WS-I FROM 1 BY 1 UNTIL WS-I > WS-N<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>IF NOT NOT-MORE-RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>PERFORM 3000-DISP-PARA <o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>VARYING WS-I FROM I BY I UNTIL WS-I > WS-N<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>END-IF<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>READ CUST-FILE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AT END MOVE ‘N’ TO WS-STATUS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">2005-CLAC-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>COMPUTE WS-PRICE(WS-I) = 100 * WS-DISCT(WS-I)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">3000-DISP-PARA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY ‘CUSTOMER NO<span style=""> </span>:’ WS-CUST-NO<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>DISPLAY ‘CUSTOMER DISCOUNT<span style=""> </span>:’ WS-PRICE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>LIST OUT THE COMPILATION AND LOGICAL ERRORS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>AND CORRECT IT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(B)<span style=""> </span>AFTER THE TABLE HAS BEEN LOADED, YOU FIND 3000-DISP-PARA IS NOT PERFORMED. THAT IS COMPLIATION AND LOGICAL ERRORS ARE FOUND. THE RUN IS TERMINATED AFTER THE TABLE IS LOADED. FIND THE ERROR AND CORRECT IT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(C)<span style=""> </span>AFTER RECEIVING AN OBSCURE INTERRUPT YOU DISPLAY 3000-DISP-PARA-ENTRIES AND FIND THAT THE FEW,RECORDS, HAVE BEEN LOADED FIND THE ERROR CORRECT IT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(D)<span style=""> </span>AFTER 2000-TABLE-ENTRY EXECUTION. WILL 3000-DISP-PARA EXECUTE ? IF YES WHAT VALUES WILL IT DISPLAY?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(E)<span style=""> </span>IF MY INPUT FILE CONSISTS OF A RECORD STRUCTURE AS 0400120002100031000440’ AFTER CORRECTING ALL ERRORS WHAT IS OUTPUT?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">6)<span style=""> </span>HOW MANY BYTES DOES THE FOLLOWING RECORD STURCTURE OCCUPY?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">01<span style=""> </span>WS-RECORD<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-A<span style=""> </span>PIC X(3)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-B<span style=""> </span>PIC 9(4) COMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-C<span style=""> </span>PIC 9(5) COMP-5<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-D<span style=""> </span>PIC 9(4) V 99 COMP-3 SYNC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-E<span style=""> </span>COMP-1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-F<span style=""> </span>COMP-2 SYNC RIGHT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-G<span style=""> </span>PIC S9(4)V99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-H<span style=""> </span>PIC 9(4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-I<span style=""> </span>PIC X(6) RIGHT JUST<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-J<span style=""> </span>PIC 9(10) COMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">7)<span style=""> </span>HOW MANY BYTES DOES THE FOLLOWING WHOLE RECORD STURCTURE OCCUPY?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>WS-RECORD1<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>WS-A<span style=""> </span><span style=""> </span>PIC 9(4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>WS-B<span style=""> </span>PIC 9(4) COMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>WS-C<span style=""> </span>PIC 9(5) COMP-5<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>WS-D<span style=""> </span>PIC 9(4) V 99 COMP-3 SYNC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01 WS-RECORDS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>WS-E<span style=""> </span>PIC 9(2) COMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in; text-indent: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>WS-F<span style=""> </span>PIC X(4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>WS-G<span style=""> </span>PIC 9(3) COMP-3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>WS-RECORDS REDEFINES WS-RECORD2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>WS-H<span style=""> </span>PIC X(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>66<span style=""> </span>WS-RECORD4<span style=""> </span>RENAMES WS-C THRU WS-RECORD2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">8)<span style=""> </span>THE FOLLOWING IS RECORD STRUCTURE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>01<span style=""> </span>WS-RECORD<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span><span style=""> </span>02 WS-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-B <span style=""> </span>PIC X(3)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-C <span style=""> </span>PIC S9(5) COMP SYNC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-D <span style=""> </span>PIC 9(4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-E<span style=""> </span>REDEFINES WS-D<span style=""> </span>PIC 9(4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02 WS-F REDEFINES WS-A<span style=""> </span>PIC 9(12)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>02<span style=""> </span>WS-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05 WS-G<span style=""> </span>PIC 9(4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""><span style=""> </span>05<span style=""> </span>WS-H<span style=""> </span>PIC 9(4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">66<span style=""> </span>WS-I<span style=""> </span>RENAMES <span style=""> </span>WS-C THRU WS-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(A)<span style=""> </span>IF THE ABOVE RECORD STURCTURE VALID LIST OUT THE ERRORS AND CORRECT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">(B)<span style=""> </span>HOW MANY BYTES DOES WS-RECORD WS-A,WS-F,WS-I OCCUPY?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style="">9)<span style=""> </span>THE FACT THAT ONE OR MORE RECORDS TO BE WRITTEN IN A INDEXED FILE ARE NOT IN THE APPROPRIATE SEQUENCE IS DETECTED AND INDENTIFIED BY USING THE …………………… OPTION IN CONJUNCTION WITH THE WRITE STATEMENT.<o:p></o:p></span></p> <div style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 1pt; padding: 0in 0in 1pt; margin-left: 0in; margin-right: 0.5in;"> <p class="MsoNormal" style="border: medium none ; padding: 0in;"><span style="">10)<span style=""> </span>WHEN THE ALTERNATE RECORD KEY IS USED TO ACCESS A RECORD IN A FILE. THE FILE HAS TO BE SORTED ON THE BASIS OF THE (PRIME/ALTERNATE) KEY<o:p></o:p></span></p> </div> <h1 style="margin-right: 0.5in;"><span style="font-size: 12pt;">PAGE-21<o:p></o:p></span></h1> <p class="MsoNormal" style="margin-right: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-right: 0.5in;">1. What are the COBOL language option, which is used to specify the maximum no of entries in a table and name of index of index on which it is indexed </p> <p class="MsoNormal" style="margin-right: 0.5in;">2. DECIMAL-PINT is COMMA in …………. Paragraph is used in interchange the roles of comma and period as edit character</p> <p class="MsoNormal" style="margin-right: 0.5in;">3. P-based versions of COBOL should include the.clause with a SELECT statement.</p> <p class="MsoNormal" style="margin-right: 0.5in;">4. …………,……….and…………… tests can be performed using IF statement.</p> <p class="MsoNormal" style="margin-right: 0.5in;">5. Filename must be from one to …………..characters in length contain at least one ……….. and have no……</p> <p class="MsoNormal" style="margin-right: 0.5in;">6. A PICTURE<span style=""> </span>clause 9v9 indicates a ………….. position numeric data field </p> <p class="MsoNormal" style="margin-right: 0.5in;">7. List atleast 4 or more different type of usages in COBOL</p> <p class="MsoNormal" style="margin-right: 0.5in;">8. Statements are executed in the order ………unless……….</p> <p class="MsoNormal" style="margin-right: 0.5in;">9. …………&………….level number must not be used for REDEFINES clause</p> <p class="MsoNormal" style="margin-right: 0.5in;">10. Write the syntax of RENAMES clause.</p> <p class="MsoNormal" style="margin-right: 0.5in;">11. ………..number of storage positions must be allotted for a report item with PIC $ **** .99</p> <p class="MsoNormal" style="margin-right: 0.5in;">12. WRITE REC-1 AT END MOVE 1 TO EOF is a valid statement. ( T or F )</p> <p class="MsoNormal" style="margin-right: 0.5in;">13. All the RENAMES entries must be written only after last record description entry. (T or F)</p> <p class="MsoNormal" style="margin-right: 0.5in;">14. In non-numeric move higher-order non filled positions are replaced with spaces. (TorF)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">15. The value of a condition name can be changed using SET verb. </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">(TorF)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">16. READ ……INTO and WRITE……FROM statement cannot be used for variable length records. (TorF)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">17. ………..number of storage position are required for PIC </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">18. Which of the following usage will occupy main-storage position for PIC s9(1)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">COBOL PRACTICE TEST</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">(A) COMP (B) COMP-3<span style=""> </span>(C) DISPLAY<span style=""> </span>(D) ALL are equal.</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">19. The INPUT PROCEDURE is optional in METGE statement of COBOL (Turf) </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">20. What is the COBOL verb is used to perform binary search in a table </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">21. It is mandatory to specify the RELATIVER KEY IS for ALL access mode of relative files. (TorF) </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">22. In a SEARCH ALL statement WHEN condition can contain and of the compound operators (AND OR ) (Tor F) </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">23. ………….. option is used in SEARCH verb to search paralled tables.</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">24. A COBOL array can contains max ………. Nos. of subscripts</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">25. Condition names can be used in EVALUATE statement (TorF)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">26. In which access mode<span style=""> </span>START verb can be used </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">27. ………….Statement in main program enables to restore the initial stage of a subroutine or called program.</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">28. PERFORM <st1:place st="on">PARA</st1:place>-A 5 TIMES</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><st1:place st="on">PARA</st1:place>-A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>ADD 1TO WS-A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>How many<span style=""> </span>times the <st1:place st="on">PARA</st1:place>-a Will be executed</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">29. MOVE 7TO WS-A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>………………</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>………………</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><st1:place st="on">PARA</st1:place>-A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>ADD 1 TO WS-A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>How many times the PARA_A will execute</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">30. Before performing search using SEARCH ALL verb the dex<span style=""> </span>must set using SET verb. (TorF)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PAGE-22</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">1. ---------------- clause used in the DATA DIVISION to ensure that a field consisting of all zeros will print as blanks.</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">2. The minimum number of statements required for successfully compilation and execution of COBOL program are --------- & --------------</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">3. The process of testing a program to eliminate errors is called ----------</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">4. The COBOL 85 statement that sets the numeric fields to zero<span style=""> </span>numeric fields to spaces is ---------------</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">5. ------------ statement is used to transmit data to an index are to increase or decrease the value of index</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">6. A -------------- test performed to determine<span style=""> </span>if a numeric field is positive or negative</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">7. A----------- statement is used to condense input into more compact form.</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">8. The level number used to declare constant fields is ------------</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">9. It is possible to process records before they are sorted by using the -------- option in place of the -------option</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">10. a ------------ statement is used to join several fields together to form one field.</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">11. Write the syntax for INSPECT STATEMENTS </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">12. what is DE-EDITING.</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">13. What are the editing symbols used in COBOL</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">14. RETURN statement is used to write sorted record to an output file after they have been processed(Tor F)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">15. DIVIDE WS-A BY WS-B is valid statement (TorF)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">16. A SESARCH ALL statement is not used to perform serial search in a table (TorF)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">17. A file must be in sequence by key field to performs sequential update (TorF) </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">18. If the section names are used in the PROCEDURE DIVISION they should be followed by paragraph name (T orF)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">19. records<span style=""> </span>can be added to the end of a disk file if we code OPEN OUTPUT <filename> (TorF)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">20. Fill up the blanks.</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>SENDING FIELD<span style=""> </span>RECEVING FIELD</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PICTURE <span style=""> </span>CONTENTS<span style=""> </span>PICTURE<span style=""> </span><span style=""> </span>DEITED RESULT</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">1. S99V99<span style=""> </span>12^34<span style=""> </span>$ZZ.99CR<span style=""> </span><span style=""> </span>_______________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">2.S99<span style=""> </span>05<span style=""> </span>$zz.99DB<span style=""> </span><span style=""> </span>_______________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">3. 9(4)V99<span style=""> </span>0012^34<span style=""> </span><span style=""> </span>$****.99<span style=""> </span>_______________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">4. 9(6)<span style=""> </span>000092<span style=""> </span>Z (6)00<span style=""> </span><span style=""> </span>_______________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">5. X(6)<span style=""> </span>123456<span style=""> </span>XXXBBXXX _______________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PAGE-23</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">1. FIND OUT MINIMUM OF THREE ERRORS AND WRITECORRECTED STATEMENTS/PARAS PROCEDURE DIVISION</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">1000-MAIN-FILE</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>OPEN SALES-FILE</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><span style=""> </span>PRINT-FILE</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>PERFORM 2000-CALN-PARA UNTILARE-THERE-MORE-RECORDS=NO</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>CLOSE SALES-FILE</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><span style=""> </span>PRINT-FILE</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>2000-CALL-PARA</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>READ SALES-FILE</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>AT END MOVE ‘NO’TO ARE-THERE –MORE-RECORDS</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>MOVE SALES-FILE TO RPINT-FILE</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>WRITE PRINT-FILE</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">2. FIND OUT PICTURECLAUSESS FOR U & V</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>01 WS-A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05<span style=""> </span>WS-A1<span style=""> </span>PIC99</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 WS-A2<span style=""> </span>PIC 99</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 WS-A3<span style=""> </span>PIC 99</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>01<span style=""> </span>WS-B</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05<span style=""> </span>WS-A4<span style=""> </span>PIC X</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><span style=""> </span>05 WS-A5<span style=""> </span>PIC 99</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 WS-A6<span style=""> </span>PIC XX</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>66 U RENAMES WS-A1 THRU WS-A2</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><span style=""> </span>66 V RENAMES WS-A3 THRU WS-A6</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">3. WRIRTE THE RESULT <span style=""> </span>( ASSUME COBOL 74)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>01 GEN-ARRAY</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 VERTIVALOCCURS 3 TIMES</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><span style=""> </span>15 CHAR<span style=""> </span>PIC<span style=""> </span>X</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>01 ACTUAL-ARRAY REDEFINES GEN-ARAY PIC X(9) VALUE HAYOROWEU</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PROCEDUREDIVISION</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>MAIN-PARA</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>PERFORM <st1:place st="on">PARA</st1:place>-A VARYING WS-I FROM 1 BY 1 UNIT WS-A>3</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><st1:place st="on">PARA</st1:place>-A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>PERFORM PARA-B VARYING WS-J FROM 1 BY 1 UNTIL WS-A>3</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>PARA-B</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><span style=""> </span>DISPLAY CHAR (WS-J;WS-I)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">4. PRODUCE OUTPUT FOR THE BELOW PROGRAM</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">WORKING-STORASGE SECTION</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>01 WS-I<span style=""> </span>PIC 9</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>01WS-J<span style=""> </span>PIC9</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><span style=""> </span>01 WS-K<span style=""> </span> PIC 9</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PROCEDURE DIVISION</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">MAIN-PARA</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>PERFORM <st1:place st="on">PARA</st1:place>-A VARYING WS-I FROM 1 BY 1 UNITL WS-I>3</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><st1:place st="on">PARA</st1:place>-A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>PERFORM PARA-B VARUYING WS-J FROM 1 BY 1 UNTIL WS-J>3</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PARA-B</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>MULTIPLY WS-I BY WS-J GIVING WS-K</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">5. CONCATENATE THE IN-NAME AS LAST-NAME FIRST NAME MIDDLE NAME INTO NAME OUT AND EXTRA SPACES LEAVE AT END</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>01 IN-NAME</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 LAST-NAME<span style=""> </span>PIC X (15)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><span style=""> </span>05 FIRST-NAME<span style=""> </span>PIC X (15)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><span style=""> </span>05<span style=""> </span>MIDDLE-NAME<span style=""> </span>PIC X (15)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>01 NAME-OUT<span style=""> </span><span style=""> </span>PIC X (48)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">6. FINDOUT ERRORS</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>SD SORT-FILE</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>FLOCK CONTAINS 10 RECORDS</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>RECORD CONTAINS 200 CHARACTERS</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>LABEL RECORDS ARE STANDARD</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">7. GROUP ITEM CAN BE A RECORD KEY<span style=""> </span>TorF</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">8. FIND THE SEQUENCEFOR THE PARAGRAPHS TO BE EXECURTED FOR THE FOLLOWING PROGRAM </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PROCEDUREDIVISION</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>MAIN-PARA</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>PERFORM <st1:place st="on">PARA</st1:place>-A VARUYING WS-I FROM 1BY1 UNTIL WS-I >10</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>STOP RUN</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PARA-B</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>PERFORM PARA-E THRU PARA-F</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PARA-C</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">………..</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PARA-E</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">……..</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PARA-F</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">………</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">9. 01 PRICE-LIST</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 BRAND OCCURS 25 TIMES</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><span style=""> </span>15 PRICE PIC 999</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>15 DISCOUNT <span style=""> </span>PIC 99</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>IF THE ISt CHARACTER OF PRICE-LIST INPOSITION 1 WHAT CHARACTER POSITIONS DO THE</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">FOLLOWING OCCUPY DISCOUNT (1,4) BRAND (20)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">A) 19 TO 20<span style=""> </span>381<span style=""> </span>TO<span style=""> </span>400<span style=""> </span>B) 21 TO<span style=""> </span>22 ,<span style=""> </span>381<span style=""> </span>TO<span style=""> </span>400</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">C) 21<span style=""> </span>TO<span style=""> </span>22 ,<span style=""> </span>101<span style=""> </span>TO 120<span style=""> </span>D) 19 TO 20<span style=""> </span>,<span style=""> </span>101<span style=""> </span>TO <span style=""> </span>120</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">10. 77<span style=""> </span>FIELD-1<span style=""> </span>PIC<span style=""> </span>X(5)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>77 FIELD-2<span style=""> </span>PIC<span style=""> </span>X(5)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>77 FIELD-3<span style=""> </span>PIC<span style=""> </span>X (5)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>77 DATA-FIELD <span style=""> </span>PIC<span style=""> </span>X(15) VALUE ‘ABCDEFGHIJKL’</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">WHAT ARE THECONTENTS OF FIELD-1 FIELD-2 FIELD-3<span style=""> </span>AFTER UNSTRING<span style=""> </span>DATA-FIELD DELIMITED BY ‘C’INTOFIELD-1 FIELD-2 FIELD-3</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">A)ABbbbb , DEFGH, IJKbb<span style=""> </span>B) ABbbbb, DEFGH,<span style=""> </span>bbbbb<span style=""> </span>C)ABCDE, FGHIJ, KLbbb<span style=""> </span>D) ANCDE,FGHIJ,bbbbb</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">11. WHICH IS CORRECT</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">A)01 WS-K USAGE IS INDEX</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">B) 01 WS-K<span style=""> </span>PIC 9 USAGE IS INDEX</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">C)01 WS-K USAGE IS INDEX PIC 9</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">D)01WS-K IS INDEX</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">12. SEARCH ALL STATEMENT REQUIRES THAT A _________OR________CLAUSE BE SPECIFIEDALONGWITH THE OICCURS AND INDEXED BY CLAUSSES OF A TABLE.</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">13. FINDOUTERRORS IF ANY</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>A) 01 RECORD-B</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 FIELD-B2</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>10 FILER PIC XX</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>10 FIELD-B21 PIC S99</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><span style=""> </span>05 FIELD-B22<span style=""> </span>REDEFINES FIELD-B21</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span><span style=""> </span>10 FILLER<span style=""> </span>PIC<span style=""> </span>XX</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>B) 01 RECORD-C</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 FIELD-C1<span style=""> </span>PIC XX</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 FIELD-C3<span style=""> </span>REDEFINES FIELD-C1 PIC 99</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 FIELD-C4<span style=""> </span>REDEFINES FIELD-C3</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>10 FILLER PIC XX</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">14. 01 WS-A VALUE ‘123’</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 WS-A1<span style=""> </span>PIC<span style=""> </span>99</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 WS-A2<span style=""> </span><span style=""> </span>PIC<span style=""> </span>9<span style=""> </span>COMP</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>THE ABOVE DESCRIPTIONGIVES ANERROR, EXPLAIN YOUR ANSWER (BRIEFLY)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">15. 01<span style=""> </span>WS-X</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05<span style=""> </span>WS-A<span style=""> </span>PIC 9(4)V99</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05<span style=""> </span>WS-B<span style=""> </span>REDEFINES WS-A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>10 WS-C<span style=""> </span>PIC 99V9</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>10<span style=""> </span>WS-D<span style=""> </span>PIC 999</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">MOVE 12, 34<span style=""> </span>TO<span style=""> </span>WS-A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>WHICH IS CORRECT</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">A) C=001.D=234<span style=""> </span>B)C=123,D=400<span style=""> </span>C)C=012,D=340<span style=""> </span>D)C=002,D=340</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">16. INORDER FOR A ‘DB’ OR ‘CR’ TO BE INCLUDING JIN A EDITING THE VALUE ENTERED IN THAT FIELD MUST BE </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">A) GREATER OR EQUAL TO ZERO<span style=""> </span>B) NEGATIVE<span style=""> </span>C) NON-ZERO<span style=""> </span>D) POSITIVE FOR DbNEGATIVE FOR CR</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">17. 77 WS-A PIC<span style=""> </span>99 VALUE 24</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>77 WS-B<span style=""> </span>PIC<span style=""> </span>9</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>COMPUTE WS-B<span style=""> </span>WS-A/6</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">GO TO A1 B1, C1 DEPENDING ON WS-B</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">STOP RUN</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>RHE RESULT OF THE ABOVE EXPERTISE IS_______?</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">18. THE PICTURE CLAUSE OF A COMP ITEM SHJOULOD NOT CONTAIN ANY CHARACTER OTHER THAN ______1M</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">19. 01WS-A1</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 WS-A PIC<span style=""> </span>S99V99<span style=""> </span>VALUE+50.34</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 WS-B PIC<span style=""> </span>S99V99<span style=""> </span>VALUE +50.23</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 WS-C<span style=""> </span>PIC<span style=""> </span>S99V9<span style=""> </span>VALUE –12.3</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>WHAT WILL BE THE CONTENTS OF WS-C AFTER EXECUTING THE FOLLOWING ADD WS-A WS-B GIVING WS-C</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">ADD WS-C TO WS-A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>ADD WS-A WS-B GIVING WS-C SIZE ERROR DISPLAY “SIZE ERROR”</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">A)00.5<span style=""> </span>B)01.0<span style=""> </span>C)10.0<span style=""> </span>D) NONE</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">20. 01 SAMPLE ITEM</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 A<span style=""> </span>PIC<span style=""> </span>X(8)<span style=""> </span>VALUE ‘ABCDEFGH’</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>05 B<span style=""> </span>REDEFINES A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>10 C<span style=""> </span>PIC X(3)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>10 D<span style=""> </span>PIC X(2)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>10 E<span style=""> </span>PIC X(3)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>MOVE C TO E</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>,MOVE D TO E</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>MOVE E TO C</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>WHAT WILL BE THE CONTENTS OF A?</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">21. AFTER EXECUTING THE FOLLOWING STATEMENT WHAT WILL BE THE VALUE OF THE COUNTER</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">01 WS-X<span style=""> </span>PIC<span style=""> </span>X(20) VALUE’AVBGFTYUHAAAWESDAWES’</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">01 COUNTER <span style=""> </span>PIC<span style=""> </span>99<span style=""> </span>VALUE<span style=""> </span>08</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">UBWSOESCT<span style=""> </span>X TALLYING COUNTER FOR LEASING ‘A’</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">A) 13<span style=""> </span>B)10<span style=""> </span>C)21<span style=""> </span>D) 5<span style=""> </span>E)NONE</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">22. THE POROCESS OF ESTABLISHING CVONNECTI9ONS BETWEEN ACTUALAND FORMAL PARAMERTERS IS CALLED___________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">23. PROCEDURE DIVISION</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">0000-MAIN-PARA</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>PERFORM <st1:place st="on">PARA</st1:place>-A VASRYING WS-1 FROM 1BY 1 UNTIL WS-1=10</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><st1:place st="on">PARA</st1:place>-A</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>ADD 1 TO WS-1</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>HOW MANY TIMES <st1:place st="on">PARA</st1:place>-A WILL BE PERFORMED?</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">24.PERFORM <st1:place st="on">PARA</st1:place>-A WITH TEST AFTER VARYING WS-1 FROM 1BY1 UNTIL WS-1>4</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">AFTER WS-J FROM 0 BY –1 UNTIL WS-J<2</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">AFTER WS-K FROM 1BY2 UNTIL WS-K >8</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">HOW MANY TIME <st1:place st="on">PARA</st1:place>-A WILL BE PERFORMED?</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">25.SUBROUTINE SUBA</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>CALL ‘SUBB’USING A1,A2</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>SUBROUTINE SUBB</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>CALL’SUBC’USING B1,B2,B3</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>SUBROUTINE SUBC</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>CALL ‘SUBA’USING A1,A2</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>INDICATE THE ERROR</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PAGE-25</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">1. List out the difference between Inspect and examine.</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">2. Where does the START verb is used and why its used</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">3. Rewrite should be used in the ________-mode</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">4. Write down the difference between perform and goto statement</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">5. Delete used to delete the records from file<span style=""> </span>T/F</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">6.A sequential file can be accessed in a random fashion.</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">7. In the case of Rewrite …..Invalid key statement, Invalid key holds true when the record specified buy the Record key does not exist in the file<span style=""> </span>T/F</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">8. Write the pi8c clause of file status is_______</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">9. If a record can be accessed by more than one key the option to be used in indexed files is _________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">10. where does the linkage-section is used in the COBOL programs</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">Give an appropriate representation instate</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><span style=""> </span>Description<span style=""> </span>num<span style=""> </span>val<span style=""> </span>result</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">11.amt<span style=""> </span>pic<span style=""> </span>$9,999.99<span style=""> </span>2,350,22<span style=""> </span>__________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">12.amt<span style=""> </span>pic <span style=""> </span>$$,$$$,99<span style=""> </span><span style=""> </span>25,40<span style=""> </span>___________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">13.amt<span style=""> </span>pic<span style=""> </span>$$,$$$.$$99<span style=""> </span><span style=""> </span>0.002<span style=""> </span>___________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">14.amt3<span style=""> </span>pic<span style=""> </span>z99<span style=""> </span><span style=""> </span>25<span style=""> </span>____________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">15.amt4<span style=""> </span>pic<span style=""> </span>zzz.9<span style=""> </span> 25<span style=""> </span>____________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">16amt5<span style=""> </span>pic$$,$$z.zzz<span style=""> </span>0.001<span style=""> </span>____________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">17 amt6<span style=""> </span>pic$,$$9,99cr<span style=""> </span><span style=""> </span>-10.50</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">18 amt<span style=""> </span>pic<span style=""> </span>99.99<span style=""> </span>-10.25<span style=""> </span>_____________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">19bal<span style=""> </span>pic+++9.99<span style=""> </span><span style=""> </span>-.05<span style=""> </span>_____________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">20bal<span style=""> </span>pic<span style=""> </span>999.9+<span style=""> </span>35.2<span style=""> </span>_____________</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">21. Which of the following specification are correct</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">a. $$$$9(3).99cr<span style=""> </span>b. $zzz9.99<span style=""> </span>c.9(5).9z<span style=""> </span>d. zzzzzvzz</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">e.all the above.</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">22. In the absence of ELSE option when the conditions specfied in the IF clause is not met then program execution continues with</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">a. The statement that directly follows the IF</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">b. The next sentences</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">c. The next paragraph</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">23. The physical location of paragraphs in a program can be made explicit by assigning a numerical____________ to each paragraph name</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">24.As an alternative to the arithmetic verbs, arithmetic operators can be use in conjunction with the -------verb</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">25. The PERFORM…..THRU format permits the execution of _______procedures</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">a one</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">b. two</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">c.two or more</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">PAGE 16</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">1. ………….and…………are the only two compiler- directing statements in COBOL </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">2. What will be the content OLD-FIELD if the following statement is executed </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">01 DATA-FIELD<span style=""> </span>PIC X (11) VALUE ‘MATHEMATICS’</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">01 OLD-FILED<span style=""> </span>PIC<span style=""> </span>X(02)</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">MOVE DATA- FIELD<span style=""> </span>(4;2) TO OLD-FIELD</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">3. What will the content of DATA-FIELD after execution of the following statement if it was having “ABBREVIATE”initially</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">INSPECT DATA-FIELD CONVERTING “ABCDE”BY “EBCBA”</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">4.In COBOL 85 CASE is implemented by…………verb</p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">5. The ……………..phrase is to use with DISPLAY Statement such that the subsequent ACCEPT statement will read data from the next character position on the same line </p> <p class="MsoNormal" style="margin: 0in 0.5in 0.0001pt; text-indent: -0.5in;">6. Consider the following statement</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>PERFORM THE <st1:place st="on">LOOP</st1:place> WITH TEST BEFORE</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>VARYFING<span style=""> </span>KOUNT<span style=""> </span>FROM 1BY1 UNTIL KOUNT>30</p> <p class="MsoNormal" style="margin-right: 0.5in;">The perform is executed…………….times</p> <p class="MsoNormal" style="margin-right: 0.5in;">7. 02<span style=""> </span>a<span style=""> </span>PIC <span style=""> </span>PPP999</p> <p class="MsoNormal" style="margin-right: 0.5in;">MOVE 500 TO A</p> <p class="MsoNormal" style="margin-right: 0.5in;">What will be the value of A after execution of above statement?</p> <p class="MsoNormal" style="margin-right: 0.5in;">8. Attempting to add a field that contains blanks to another field will cause a to occur</p> <p class="MsoNormal" style="margin-right: 0.5in;">9. ………………,……………are the figurative constants other than ZERO SPACE HIGH-VALUES</p> <p class="MsoNormal" style="margin-right: 0.5in;">10. When LABEL RECORDS ARE STANDARD is specified header labels will be ……… on input files and trailer labets will be …………….on output files</p> <p class="MsoNormal" style="margin-right: 0.5in;">11.The dollar sign can be changed to the appropriate symbol for another monetary system by the use of an entry in the ………..paragraph……………..section</p> <p class="MsoNormal" style="margin-right: 0.5in;">12. The same storage location can be used in conjunction with 2 different data-names by use of ……….clause</p> <p class="MsoNormal" style="margin-right: 0.5in;">13. Consider the following DATA DIVISION entry</p> <p class="MsoNormal" style="margin-right: 0.5in;">77<span style=""> </span>A<span style=""> </span>PIC<span style=""> </span>X(5)<span style=""> </span>VALUE IS “ARRIE”</p> <p class="MsoNormal" style="margin-right: 0.5in;">A. Examine A TALLYING LEADING “R” will set to …………in Tally </p> <p class="MsoNormal" style="margin-right: 0.5in;">B. Examine A REPLLACING UNTILFIRST “1”by “P” will change the content of A to </p> <p class="MsoNormal" style="margin-right: 0.5in;">14. The SEARCH ALL statement requires that a ……………..clause be specified along with the OCCURS AND INDEXED by clauses of a table entry</p> <p class="MsoNormal" style="margin-right: 0.5in;">15. How many levels of OCCURS are permitted with COBOL 85?</p> <p class="MsoNormal" style="margin-right: 0.5in;">16. Which RESSERVED WORD IN COBOL IS USED to define areas within a record that will not be referenced individually during processing?</p> <p class="MsoNormal" style="margin-right: 0.5in;">17. Is the following valid or invalid? Specify reason.</p> <p class="MsoNormal" style="margin-right: 0.5in;">05 ITEM</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>10ITEMNO<span style=""> </span>PIC X(4)</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>PIC X(20)</p> <p class="MsoNormal" style="margin-right: 0.5in;">05 TOTAL<span style=""> </span>PIC<span style=""> </span>9(5)</p> <p class="MsoNormal" style="margin-right: 0.5in;">18.. ……………statement isussed to execute a sub-routine with the initial state rather than last used states</p> <p class="MsoNormal" style="margin-right: 0.5in;">19. In a nested PERFORM..VARYING……….executed first</p> <p class="MsoNormal" style="margin-right: 0.5in;">20. When two different RECORD KEYS result in the same relative location address it is said that a hashing has been produced</p> <p class="MsoNormal" style="margin-right: 0.5in;">21. Communication section is used when calling sub-programs to pass data to and from a subprogram<span style=""> </span>T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">22. A changed program can change another program including the one that changed it </p> <p class="MsoNormal" style="margin-right: 0.5in;">T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">23. The operands of the using phrase in the ROCEDURE DIVISION header of the calling program must be either 01 or77 level data items T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">24. MOVE TAX TO TOTAL</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>TAX<span style=""> </span>TOTAL</p> <p class="MsoNormal" style="margin-right: 0.5in;">PICTURE<span style=""> </span>CONTENTS<span style=""> </span>PICTURE</p> <p class="MsoNormal" style="margin-right: 0.5in;">S9(4) <span style=""> </span>.2345<span style=""> </span><span style=""> </span>X(5)</p> <p class="MsoNormal" style="margin-right: 0.5in;">(Sing leading sesperate)</p> <p class="MsoNormal" style="margin-right: 0.5in;">What will be the value of TOTAL after MOVE</p> <p class="MsoNormal" style="margin-right: 0.5in;">25. How many times <st1:place st="on">PARA</st1:place>-A performed?</p> <p class="MsoNormal" style="margin-right: 0.5in;">01<span style=""> </span>COUNTER<span style=""> </span>PIC 9</p> <p class="MsoNormal" style="margin-right: 0.5in;">PERFORM <st1:place st="on">PARA</st1:place>-A WITH TESST BEFORE VARYING</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>COUNTER FROM 1 BY 1 UNTIL COUNTER>2</p> <p class="MsoNormal" style="margin-right: 0.5in;"><st1:place st="on">PARA</st1:place>-A</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>MOVE A TO B</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>MOVE 13 TO COUNTER</p> <p class="MsoNormal" style="margin-right: 0.5in;">26. How many times prar-x performed?</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>01<span style=""> </span>J<span style=""> </span>PIC 9 VALUE 5</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>PERFORM PARA-X<span style=""> </span>J TIMES</p> <p class="MsoNormal" style="margin-right: 0.5in;">PARA-X</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span><span style=""> </span>MOVE 18 IT J</p> <p class="MsoNormal" style="margin-right: 0.5in;">27. 02 SAMPLE-1<span style=""> </span>PIC X(3) JUSTIFIED RIGHT</p> <p class="MsoNormal" style="margin-right: 0.5in;">02 SAMPLE-2<span style=""> </span>PIC X(8)<span style=""> </span></p> <p class="MsoNormal" style="margin-right: 0.5in;">02 SAMPLE-3<span style=""> </span>PIC<span style=""> </span>XX/XX</p> <p class="MsoNormal" style="margin-right: 0.5in;">What will be the content of SAMPLE-3 after execution of the following</p> <p class="MsoNormal" style="margin-right: 0.5in;">MOVE “PQRST”<span style=""> </span>TO SAMPLE-1</p> <p class="MsoNormal" style="margin-right: 0.5in;">MOVE SAMPLE-1 TO SAMPLE-2</p> <p class="MsoNormal" style="margin-right: 0.5in;">MOVE SAMPLE-2 TO SAMPLE-3</p> <p class="MsoNormal" style="margin-right: 0.5in;">28. Re- grouping of elementary items in a record can be done by……..clause</p> <p class="MsoNormal" style="margin-right: 0.5in;">29. Special reserved word DAY returns day in……….Format</p> <p class="MsoNormal" style="margin-right: 0.5in;">30. 01<span style=""> </span>O D-RECORD</p> <p class="MsoNormal" style="margin-right: 0.5in;">02<span style=""> </span>A<span style=""> </span>PIC<span style=""> </span>X(9)</p> <p class="MsoNormal" style="margin-right: 0.5in;">02<span style=""> </span>B<span style=""> </span>PIC<span style=""> </span>9(6) COMP SYNC</p> <p class="MsoNormal" style="margin-right: 0.5in;">02 C COMP-2</p> <p class="MsoNormal" style="margin-right: 0.5in;">02 D PIC 9(4) V99 COMP-3</p> <p class="MsoNormal" style="margin-right: 0.5in;">How many number of bytes will OLD-RECORD occupies</p> <p class="MsoNormal" style="margin-right: 0.5in;">31.01 VALUE-X</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>02 VALUE-1<span style=""> </span>PIV 9(5) VALUE 24008</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>02 VALUE-2<span style=""> </span>PIC 999 VALUE 987</p> <p class="MsoNormal" style="margin-right: 0.5in;">01 VALUE-Y</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>02 VALUE-3<span style=""> </span>PIC 9(3)9</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>02 VALUE-4<span style=""> </span>PIC9(5)</p> <p class="MsoNormal" style="margin-right: 0.5in;">MOVE VALUE-X TO VALUE-Y</p> <p class="MsoNormal" style="margin-right: 0.5in;">After the execution of the above statement what is the values of value 8 and value 4</p> <p class="MsoNormal" style="margin-right: 0.5in;">32. …………… clause specifies the number of buffers to be used for the sequential file</p> <p class="MsoNormal" style="margin-right: 0.5in;">33. Blocking cannot be used for variable length records T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">34. In SORT statement all keys must be specified as ascending or descending but not as combinations of Two T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">35. The same file names can be specified in the USILNG and GIVING phrases of s SORT statement T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">36. What are the paragraphs in INPUT-OUTPUT SECTION?</p> <p class="MsoNormal" style="margin-right: 0.5in;">37. The program-planning tool specifically designed for depicting the logic in a structured program is…………….</p> <p class="MsoNormal" style="margin-right: 0.5in;">38. 01 A PIC SSS999 99</p> <p class="MsoNormal" style="margin-right: 0.5in;">MOVE 123456 TO A</p> <p class="MsoNormal" style="margin-right: 0.5in;">What is the value of A</p> <p class="MsoNormal" style="margin-right: 0.5in;">39. 01 A<span style=""> </span>PIC……..9</p> <p class="MsoNormal" style="margin-right: 0.5in;">MOVE 12345 TO A</p> <p class="MsoNormal" style="margin-right: 0.5in;">What is the value of A</p> <p class="MsoNormal" style="margin-right: 0.5in;">40. If the table entries are not in any sequence<span style=""> </span>search is preferred</p> <p class="MsoNormal" style="margin-right: 0.5in;">41. An input field has PICTURE Clause S999 which value you have to keyed in input held to enter a value-329</p> <p class="MsoNormal" style="margin-right: 0.5in;">42. If multiple control breaks are used in a program the routine for producing the major level control<span style=""> </span>break would always begin by performing</p> <p class="MsoNormal" style="margin-right: 0.5in;">43. High- values refers t the largest value in the computers collating sequence<span style=""> </span>this is a character consisting of ………….in a single storages position</p> <p class="MsoNormal" style="margin-right: 0.5in;">44. …………. Is a verb used to find the erroneous characters</p> <p class="MsoNormal" style="margin-right: 0.5in;">45. In addition to write statement a …………..verb may be used to produce output </p> <p class="MsoNormal" style="margin-right: 0.5in;">46. With………… statement you can include prewritten entries in your program</p> <p class="MsoNormal" style="margin-right: 0.5in;">47. The CONTROL clause is defined in the ………..entry </p> <p class="MsoNormal" style="margin-right: 0.5in;">48. 01<span style=""> </span>price-list</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>03 BRANDOCCURS 25 TIMES</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>05 NRAND-SIZE<span style=""> </span>OCCURS<span style=""> </span>4 </p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>07<span style=""> </span>PRICE<span style=""> </span><span style=""> </span>PIC<span style=""> </span>999</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>07 DISCOUNT PIC 99</p> <p class="MsoNormal" style="margin-right: 0.5in;">Pick out the valid identifier form the following</p> <p class="MsoNormal" style="margin-right: 0.5in;">A. DISCOUNT (4.15)</p> <p class="MsoNormal" style="margin-right: 0.5in;">B. PRICE (4,3) OF PRICE-LIST</p> <p class="MsoNormal" style="margin-right: 0.5in;">C. PRICE OF PRICE-LIST (4,3)</p> <p class="MsoNormal" style="margin-right: 0.5in;">D. BRAND-SIZE (DISCOUNT (2,3) )</p> <p class="MsoNormal" style="margin-right: 0.5in;">49.<span style=""> </span>77 A PIC 99 VALUE 0</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>GO TO A1 B1 C1 DEPENDING ON A </p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>STOP RUN</p> <p class="MsoNormal" style="margin-right: 0.5in;">Which of the following will happen after the execution of the above statement</p> <p class="MsoNormal" style="margin-right: 0.5in;">A. GO TO A1<span style=""> </span>B. GO TO B1<span style=""> </span>C. GO TO C1<span style=""> </span>D. CONTROL GOES TO STOP RUN</p> <p class="MsoNormal" style="margin-right: 0.5in;">50. Segmentation of a COBOL program is resorted to essentially when</p> <p class="MsoNormal" style="margin-right: 0.5in;">a. There are more than Six files in a program</p> <p class="MsoNormal" style="margin-right: 0.5in;">b. When all the files are indexed files</p> <p class="MsoNormal" style="margin-right: 0.5in;">c. When the program is too large for the memory available</p> <p class="MsoNormal" style="margin-right: 0.5in;">d. When the procedure division exceeds 1000 statements</p> <p class="MsoNormal" style="margin-right: 0.5in;">51. PERFORM PARA-1</p> <p class="MsoNormal" style="margin-right: 0.5in;">VARYING A FRO 2 BY 3 UNTIL A GRATER THAN 9</p> <p class="MsoNormal" style="margin-right: 0.5in;">AFTER B FROM 4 BY –1 UNTIL B LESS THAN 2</p> <p class="MsoNormal" style="margin-right: 0.5in;">AFTER C FROM 2 BY 1 UNTIL C GRATER THAN 4</p> <p class="MsoNormal" style="margin-right: 0.5in;">Execution of perform statements ends with the following values for A BAND c</p> <p class="MsoNormal" style="margin-right: 0.5in;">A.<span style=""> </span>A=10<span style=""> </span>B=4<span style=""> </span>C=5</p> <p class="MsoNormal" style="margin-right: 0.5in;">B.<span style=""> </span>A=10<span style=""> </span>B=1<span style=""> </span>C=5</p> <p class="MsoNormal" style="margin-right: 0.5in;">C.<span style=""> </span>A=10<span style=""> </span>B=4<span style=""> </span>C=2</p> <p class="MsoNormal" style="margin-right: 0.5in;">D<span style=""> </span>None of the above</p> <p class="MsoNormal" style="margin-right: 0.5in;">52. Given the following SORT file description </p> <p class="MsoNormal" style="margin-right: 0.5in;">SD ANY-SORT-FILE</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>BLOCK CONTAINS 10 RECORDS</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>RECORD CONTAINS 200 CGARACTERS</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>LABEL RECORDS ARE STANDARD</p> <p class="MsoNormal" style="margin-right: 0.5in;">Which of the following statements given below are true</p> <p class="MsoNormal" style="margin-right: 0.5in;">a. BLOCK CONTAINS clause is invalid</p> <p class="MsoNormal" style="margin-right: 0.5in;">b. CLOCK CONTAINS and RECORD CONTAINS Clause are invalid</p> <p class="MsoNormal" style="margin-right: 0.5in;">c. BLOCK CONTAINS AND LABLE RECORDS clauses are invalid </p> <p class="MsoNormal" style="margin-right: 0.5in;">d. All clauses are invalid</p> <p class="MsoNormal" style="margin-right: 0.5in;">53. Indicate which one of the following is not true about the SET Verb</p> <p class="MsoNormal" style="margin-right: 0.5in;">a. The verb can be used to set one or more indexes to a particular value</p> <p class="MsoNormal" style="margin-right: 0.5in;">b. The verb can be used to move the current value of an index to line or more identifiers</p> <p class="MsoNormal" style="margin-right: 0.5in;">c. The verb can be used to increment one or more identifiers by a positive integral value</p> <p class="MsoNormal" style="margin-right: 0.5in;">d. The verb can be used to decrement one or more indexes by a positive integral value</p> <p class="MsoNormal" style="margin-right: 0.5in;">54. A COBOL program when compiled gives an error at the PROCEDURE DIVISION statement ADD 10 TO COUNTER</p> <p class="MsoNormal" style="margin-right: 0.5in;">Which of the following situati9ns could have caused the error?</p> <p class="MsoNormal" style="margin-right: 0.5in;">a. COUNTER HAS A PICTURE ZZZ9</p> <p class="MsoNormal" style="margin-right: 0.5in;">b. COUNTER is not initialized to zero in the Data Division</p> <p class="MsoNormal" style="margin-right: 0.5in;">c. COUNTER IS DECLARED IN FILE section and not in WORKING – STORAGE</p> <p class="MsoNormal" style="margin-right: 0.5in;">d. COUNTER has a PICTURE 999V9</p> <p class="MsoNormal" style="margin-right: 0.5in;">55. Which of the following is not a valid paragraph name</p> <p class="MsoNormal" style="margin-right: 0.5in;">a. ZZ-99<span style=""> </span>b. ALPHA-O<span style=""> </span>c.2222<span style=""> </span>d.NONE</p> <p class="MsoNormal" style="margin-right: 0.5in;">56.The term RELATIVE SUBSCRIPT</p> <p class="MsoNormal" style="margin-right: 0.5in;">a. Refers to the variables we use to track the next record position in a relative file </p> <p class="MsoNormal" style="margin-right: 0.5in;">b. Refers to a data name used as a mnemonic subscript instead of a variable like</p> <p class="MsoNormal" style="margin-right: 0.5in;">c. Refers to INDEX variables when they are used as subscripts</p> <p class="MsoNormal" style="margin-right: 0.5in;">d. Refers to an expression such as K-12 when used as a subscript</p> <p class="MsoNormal" style="margin-right: 0.5in;">57.Which of the following cannot help us to get the memory requirement reduced sequential files</p> <p class="MsoNormal" style="margin-right: 0.5in;">a. REDEFINES clause<span style=""> </span>b. SAME AREA clause</p> <p class="MsoNormal" style="margin-right: 0.5in;">c. RESERVE clause<span style=""> </span>d. None</p> <p class="MsoNormal" style="margin-right: 0.5in;">58. Relative or indexed files can be referenced in the USING and GIVING phrases of the SORT statement T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">59. When a library text is copied it should not have another COPY statement T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">PAGE-17</p> <p class="MsoNormal" style="margin-right: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-right: 0.5in;">1. THE REDEFINES CLAUSE CANNOT BE USED FOR LEVELS_________AND___________(1MARK)</p> <p class="MsoNormal" style="margin-right: 0.5in;">2. THEVARIOUS TYPES OF USAGES DEFINED ILN COBOL ARE ___________,____________-AND____________ (3MARK)</p> <p class="MsoNormal" style="margin-right: 0.5in;">3. A START VERB READS A SPECIFIC RECORD INTO STORAGE<span style=""> </span>T/F </p> <p class="MsoNormal" style="margin-right: 0.5in;">4. IF A FIELD IS NOT POSITIVE MUST BE NEGATIVE T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">5. THE DATA DIVISION STATEMENT IN WHICH RENAMES IS USED IS ALWAYS ASSIGNED THE LEVEL NUMBER</p> <p class="MsoNormal" style="margin-right: 0.5in;">_______________ </p> <p class="MsoNormal" style="margin-right: 0.5in;">6. WHEN ALPHANUMERIC DATA IS MOVED FROM A SENDING FIELD TO A RECILEVING FIELD ALIGNMENT <st1:street st="on"><st1:address st="on">TAKES PLACE</st1:address></st1:street> AT THE _______MARGIN</p> <p class="MsoNormal" style="margin-right: 0.5in;">7. AN ORDERING WHICH DEFINES THE RELATIVE RANK OF ALL CHARACTERS IN A COMPUTER SYSTEM IS CALLED__________</p> <p class="MsoNormal" style="margin-right: 0.5in;">8. DELETE IS USED TO DELETE RECORDS FROM A SEQUENTIAL FILE T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">9. REWRITE SHOULD BE USED IN THE _____MODE </p> <p class="MsoNormal" style="margin-right: 0.5in;">10. WHICH OF THE FOLLOWING ARE ELEMENTARY ITEMS </p> <p class="MsoNormal" style="margin-right: 0.5in;">A. 01<span style=""> </span>B.77<span style=""> </span>C.88<span style=""> </span>D66</p> <p class="MsoNormal" style="margin-right: 0.5in;">11. WHICH OF THESES IS A LEGITIMATE COBOOL DATANAME </p> <p class="MsoNormal" style="margin-right: 0.5in;">A. CONMPUTRE</p> <p class="MsoNormal" style="margin-right: 0.5in;">B. END-OF-FILE</p> <p class="MsoNormal" style="margin-right: 0.5in;">C. DATA OF BNIRTH</p> <p class="MsoNormal" style="margin-right: 0.5in;">D ALL</p> <p class="MsoNormal" style="margin-right: 0.5in;">12. WHICH OF THE FOLLOWING SPECIFICATIONS ARE </p> <p class="MsoNormal" style="margin-right: 0.5in;">A. $$$$9(3) 99CR<span style=""> </span>B. $ZZZ9.99<span style=""> </span>C. 9(5).9Z<span style=""> </span>D. ZZZZZVZZ</p> <p class="MsoNormal" style="margin-right: 0.5in;">E. ALL THE ABOVE CHOICES.</p> <p class="MsoNormal" style="margin-right: 0.5in;">13. 01 A PIC S9(9)V99<span style=""> </span>VALUE 3425.10</p> <p class="MsoNormal" style="margin-right: 0.5in;">WHICH OF THE FOLLOWING WILL DISPLAY $ 3425.10</p> <p class="MsoNormal" style="margin-right: 0.5in;">A. PIC$(9).99<span style=""> </span>B. PIC$Z(9).99<span style=""> </span>C. PIC $Z(8).99<span style=""> </span>D<span style=""> </span>PIC $(9).99</p> <p class="MsoNormal" style="margin-right: 0.5in;">14. 01 A PIC X(2)</p> <p class="MsoNormal" style="margin-right: 0.5in;">WHICH OF THE FOLLOWING ARE TRUE?</p> <p class="MsoNormal" style="margin-right: 0.5in;">A. 66 B REDEFINES A PIC X(2)</p> <p class="MsoNormal" style="margin-right: 0.5in;">B. 01 B REDEFINES A PIC X (1)</p> <p class="MsoNormal" style="margin-right: 0.5in;">C. 01 B REDEFINES A PIC X(2)</p> <p class="MsoNormal" style="margin-right: 0.5in;">D. 01 B REDEFINES A PIC X (3)</p> <p class="MsoNormal" style="margin-right: 0.5in;">15. 01 STATE-CODES PIC X (20) VALUE “NYALHALHSF;DLF LASDFG”</p> <p class="MsoNormal" style="margin-right: 0.5in;">01 ST-CD REDFINES STATE-CODES</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>05 STATE-CD PIC X (20) OCCURS 10 TIMES</p> <p class="MsoNormal" style="margin-right: 0.5in;">WHAT IS THE VALUE JOF JSTATES-CD (05)</p> <p class="MsoNormal" style="margin-right: 0.5in;">A.H<span style=""> </span>B.;<span style=""> </span>C. SF<span style=""> </span>D. HS</p> <p class="MsoNormal" style="margin-right: 0.5in;">16. PICTURE CLAUSE OF FILE STATUS IS ____________</p> <p class="MsoNormal" style="margin-right: 0.5in;">17. WHICH OF THE FOLLOFWING CORRECT? </p> <p class="MsoNormal" style="margin-right: 0.5in;">A.VARIABLE LENGTH ARRAY CANNOT BE INITALEZED</p> <p class="MsoNormal" style="margin-right: 0.5in;">B. ARITHMENTIC OPERATIONS CANNOT BE PERFORMED AT GROUP LEVEL</p> <p class="MsoNormal" style="margin-right: 0.5in;">C. VARIABNLE LENGTH ARRAY SHOULD BE DECLARED AT THE ENE OF THE WORKING STORAGE SECTION </p> <p class="MsoNormal" style="margin-right: 0.5in;">D. USIGNED VARIABLES CANNOT BE COMPARED WITH SIGNED VARIABLES.</p> <p class="MsoNormal" style="margin-right: 0.5in;">18. WHICH OF THE FOLLOWING ARE CORRECT?</p> <p class="MsoNormal" style="margin-right: 0.5in;">A. MOVE CORR OLE-REC TO NEW-REC</p> <p class="MsoNormal" style="margin-right: 0.5in;">B. ADD CORR OLD-REC TO NEW-REC</p> <p class="MsoNormal" style="margin-right: 0.5in;">C.SUBTRACT CORR OLD-REC TO NEW-REC</p> <p class="MsoNormal" style="margin-right: 0.5in;">D. MULTILPLY CORR OLD-REC TO NEW –REC</p> <p class="MsoNormal" style="margin-right: 0.5in;">19. __________ STATEMENT OF COBOL MOVE AS WELL AS WRITES THE CONTENTS OF THE RECORD</p> <p class="MsoNormal" style="margin-right: 0.5in;">20. THE CHARACTERS $ AND* SHOULD NOT APPEAR IN THE SAME PIC CLAUSES T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">21. DELETE STATEMENT PHYSICALLY REMOVES A RECORD FROM THE FILE</p> <p class="MsoNormal" style="margin-right: 0.5in;">22. THE COMMAND TO CHAGE THE DECIMAL POINT TO COMMA IN COBOL IS________</p> <p class="MsoNormal" style="margin-right: 0.5in;">GIVE AN APPRORIATE REPRESENTATION INSTORAGE</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>VALUE MOVED<span style=""> </span>PIC<span style=""> </span>VALUE STORED</p> <p class="MsoNormal" style="margin-right: 0.5in;">23 –12.34<span style=""> </span>$(4).99<span style=""> </span>___________</p> <p class="MsoNormal" style="margin-right: 0.5in;">24.<span style=""> </span>O<span style=""> </span>+++++<span style=""> </span>____________</p> <p class="MsoNormal" style="margin-right: 0.5in;">25.<span style=""> </span>+5<span style=""> </span>$ZZZ.99CR<span style=""> </span>______________</p> <p class="MsoNormal" style="margin-right: 0.5in;">26.<span style=""> </span>0<span style=""> </span>$$$$.99<span style=""> </span>_____________</p> <p class="MsoNormal" style="margin-right: 0.5in;">27.<span style=""> </span>CRDR<span style=""> </span>XXBBXX<span style=""> </span>_____________</p> <p class="MsoNormal" style="margin-right: 0.5in;">28.<span style=""> </span>16398<span style=""> </span>900909<span style=""> </span>___________</p> <p class="MsoNormal" style="margin-right: 0.5in;">29. HOW MANY BYTES OF STORAGE ARE REQUIRED </p> <p class="MsoNormal" style="margin-right: 0.5in;">TO HJOLD THE FOLLOWING RECORD ___________</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>01 IN-REC</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>05 IN –GROUP<span style=""> </span>OCCURS 12 TIMES</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>10 IN-BRANCH PIC 9(5) OCCUR 5 TIMES</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>10 FILLER<span style=""> </span>PIC X (5)</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>10 O-BRANCH PIC 9(5) OCCURS<span style=""> </span>5 TIMES</p> <p class="MsoNormal" style="margin-right: 0.5in;">30. A COMPOUND CONDITION CAN BE USED WITH </p> <p class="MsoNormal" style="margin-right: 0.5in;">SEARCH ALL PROVIDED IT HAS A -__________</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>CONNECTIVES ONLY</p> <p class="MsoNormal" style="margin-right: 0.5in;">31. RECORDS IN A FILE SHOULD NOT HAVE FIELDS OR GROPU ITEMS WITH OCCURSCLAUSES T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">32. THE VALUES OF THE PARAMENTERS PASSED BY A CALLING PROGRAM CAN BE CHANGED BY THE CALLED JPROGRAM IFTHE JPARAMENTERS ARE </p> <p class="MsoNormal" style="margin-right: 0.5in;">PASSED GY__________</p> <p class="MsoNormal" style="margin-right: 0.5in;">33. THE MAXIMUM NO OF DIMENSION A TABLE CAN HAVE IN COBOL IS ___________</p> <p class="MsoNormal" style="margin-right: 0.5in;">34. THE PICTURE CLAUSSE IS USED AT THE HIGHEST/LOWEST ________LEVEL A TABLE.</p> <p class="MsoNormal" style="margin-right: 0.5in;">35. PERFORM LISTING WITH TEST AFTER VARYING</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>1 FROM 1 BY 1 UNTIL<span style=""> </span>1>2AFTER J FROM</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>1 BY 1 UNTIL J>3</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>LISTING </p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>DISPLAY J</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>HOW MANY TIMES DOES LISTING GOT EXECUTED?</p> <p class="MsoNormal" style="margin-right: 0.5in;">36. IF A R4CORD CAN BE ACCESSED BY MORE THAN ONE KEY THEOIPOTION TO BE USED IN INDEXED IS _________</p> <p class="MsoNormal" style="margin-right: 0.5in;">37. THE START VERB CAN BE USEED WITH SEQUENTIAL </p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>FILES T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">38. THE ANSIVERSION OF COBOL SUPPORTED BY THE </p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>Visual Age COMPILER IS _______</p> <p class="MsoNormal" style="margin-right: 0.5in;">39. START AND READ NEXT VERBS NEED THE DATA FILE TO BE OPENED INTO THE RENDOM MODE T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">40. CONDITIONAL NAMES CANNOT BE USSED ILN AN EVALUATE ATEMENT T/F</p> <p class="MsoNormal" style="margin-right: 0.5in;">42. WHAT IS THE STATEMENT USED TO PUT A RECORD INTO A FILE FROM THE PROGRAM?<span style=""> </span></p> <p class="MsoNormal" style="margin-right: 0.5in;">43. WHAT IS THE LENGTH OF THE FIELD 9 (8)V99</p> <p class="MsoNormal" style="margin-right: 0.5in;">44. MATCH THE FOLLOWING</p> <p class="MsoNormal" style="margin-right: 0.5in;">A. CONDITION<span style=""> </span>1)</p> <p class="MsoNormal" style="margin-right: 0.5in;">B. PROGRAMMER DEFINED WORD<span style=""> </span>2) PERFORM …UNTIL</p> <p class="MsoNormal" style="margin-right: 0.5in;">C. REDEFINES<span style=""> </span>3) TERMINATION</p> <p class="MsoNormal" style="margin-right: 0.5in;">D. LOOPING<span style=""> </span>4) WS-END-FLAG=Y</p> <p class="MsoNormal" style="margin-right: 0.5in;">E. END OF A SENTENCE<span style=""> </span>5) PPLIES TO STORAGE INVOLVED ANDNOT TO THE DATA THAT’S STORED IN THAT AREA</p> <p class="MsoNormal" style="margin-right: 0.5in;">45. _________AND_____________CLAUSE CAN BE USED TO INITIALISE TABLES</p> <p class="MsoNormal" style="margin-right: 0.5in;">46. WHICH OF THE FOLLOWING ISCORRECT</p> <p class="MsoNormal" style="margin-right: 0.5in;">i) WORKING-STORAGE<span style=""> </span>SECTION</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>01 WS-SALARY <span style=""> </span>PIC 9(3) V99 VALUE IS ABC.ZA</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>LILNKAGE SECTION</p> <p class="MsoNormal" style="margin-right: 0.5in;">ii) LINKAGE SESCTION PIC 9(3) V99 VALUE IS 536.98</p> <p class="MsoNormal" style="margin-right: 0.5in;">A.i<span style=""> </span>B.ii<span style=""> </span>C.NONE<span style=""> </span>D.BOTH</p> <p class="MsoNormal" style="margin-right: 0.5in;">47. IN THE FOLLOWING SYNTAX</p> <p class="MsoNormal" style="margin-right: 0.5in;">01 WS-GRADE<span style=""> </span>PIC 99</p> <p class="MsoNormal" style="margin-right: 0.5in;"><span style=""> </span>88 FIRST-CLASS <span style=""> </span>PIC 99 VALUE IS 60 TJRI 70</p> <p class="MsoNormal" style="margin-right: 0.5in;">_____________CANNOT BE SPECIFIED</p> <p class="MsoNormal" style="margin-right: 0.5in;">48. 78. LLEVEL ITEM ISONLY USED FOR _________<span style=""><o:p></o:p></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-60438876941946767732008-07-17T22:45:00.000-07:002008-12-23T21:45:21.640-08:00Frequently Asked Questions For VSAM<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"></o:smarttagtype><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]><object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id="ieooui"></object> <style> st1\:*{behavior:url(#ieooui) } </style> <![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"Trebuchet MS"; panose-1:2 11 6 3 2 2 2 2 2 4; mso-font-charset:0; mso-generic-font-family:swiss; mso-font-pitch:variable; mso-font-signature:647 0 0 0 159 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} h1 {mso-style-next:Normal; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:1; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-font-kerning:0pt; mso-fareast-language:EN-US;} p.MsoHeader, li.MsoHeader, div.MsoHeader {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal" style=""><span style="font-size: 11pt; font-family: "Trebuchet MS";"><span style=""> </span><o:p>
<br /></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What are the types of VSAM Datasets?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Entry sequenced Datasets (ESDS), Key sequenced Datasets (KSDS) and relative record<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Dataset (RRDS), LDS (linear Data Set).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Why do VSAM take more disk space than other utilities?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">VSAM increases the disk space requirements of systems. This is because VSAM offers certain<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">capabilities like partial self-reorganization to make things more efficient in data sets that can be<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">modified.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What are the distinctive features of a KSDS, Key sequenced Dataset?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">The <b>index </b>and the <b>distributed free spac</b>e. CI and CA splits upon updates. Record length may<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">be changed during update. The records are accessed by a particular Key.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">How are records stored in an ESDS, entry sequenced Dataset?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">They are stored without respect to the contents of the records and in the order in which they are<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Included in the file.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What's a LDS (Linear Data Set) and what's it used for?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">LDS is a VSAM Dataset in name only. It has unstructured 4k (4096 bytes) fixed size CIs which do<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">not contain control fields. There is no free space, and no access from Cobol. LDS is essentially<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">a table of data maintained on disk. The 'table entries' must be created via a user program and<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">can only be logically accessed via a user program. When passed, the entire LDS must be<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">mapped into storage, then data is accessed via base and displacement type processing.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><b>In ESDS, do we have the facility of accessing the records randomly?<o:p></o:p></b></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">YES, Random access of records is possible<b>. </b>Records however cannot be delete<b>d. </b>We can do it<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">By referring the RBA (relative byte address).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Why is the space is kept in data component of the KSDS Dataset?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Free space specified during the allocation of the KSDS is left at regular intervals during the initial<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">load of the data set. This space helps keep the data component in physical sequence in spite of<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Random insertions.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the difference b/w the ESDS and KSDS?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">ESDS doesn’t have imbedded free space.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">The KEYS parameter has no meaning in the context of ESDS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">ESDS has no index component<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">An additional parameter, NONINDEXED is used to tell AMS that an ESDS is being allocated.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">How is LDS different from ESDS?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">An LDS is a data set; very similar to an ESDS without the control information .It has no records<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">and used for fast random access. It takes advantages of the computer’s very fast paging<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";">hardware for retrieval and storage and the bytes are implicitly divided into 4K blocks or pages,<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">and the paging hardware reads and writes blocks from disk. There is no free space, unused<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">space, control field in LDS.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is a CI, Control Interval?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">A Control Interval is the unit of information that VSAM transfers between virtual and auxiliary<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">storage.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is Control Interval <st1:city st="on"><st1:place st="on">Split</st1:place></st1:city>?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">A new record stored in same CI, only if there is enough space. If not VSAM locates the free CI<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">within the same CA, moves approximately half of the records to next CI and stores the new<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">record at the correct position. This is called Control Interval Split. Whenever CI split occurs the<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">sequence set is updated.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is a CA, control area?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">A group of Control Intervals makes up a control area.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">If the records are larger than the CI size, for ex. if a record extend CI boundary and<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">extends unto 3 CI, and there is still some space left in last i.e. third CI, will that be<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">used by other CI Datasets ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">NO. Some records are larger than the CI size, the records extend across CI boundaries (only for<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">ESDS and KSDS). A spanned record begins on a CI boundary and it occupies two or more CIs in<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">a CA. The unused space in the last CI can only be used to extend the record, it cannot<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">contain any other record i.e. a new record has to be added in a new CI.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is a sequence set?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">This is the part of the index that points to the CA and CI of the record being accessed.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is a cluster?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">A cluster is the combination of the index, sequence set and data portions of the Dataset. The<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">operating system gives program access to the cluster, i.e. to all parts of the Dataset<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">simultaneously.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the index set?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">This is the other part of the index. It has multiple levels with pointers that ultimately reach to the<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">sequence set.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is a Catalog?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">The catalog contains the names of all Datasets, VSAM and non-VSAM. It is used to access these<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Datasets.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is an alternate index?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">An AIX is a file that allows access to a VSAM Dataset by a Key other than the primary one. The<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";">Alternate Key-pointer pair records are stored in an index cluster. This index cluster is known as<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Alternate index. The alternate Key-pointer pair records are loaded into the alternate index cluster<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">by the command BLDINDEX.AIX can be built over a KSDS and ESDS, but not over an RRDS.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What could be the maximum number of the AIXs per base cluster?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">There can be a maximum of 253 AIXs per base cluster. It is not advisable to have more than 5<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">AIXs per base cluster because of additional overhead during updates and retrievals.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Can AIX be defined over an ESDS, which does not have any Key?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Although an ESDS does not have a primary Key, an AIX can be defined over an ESDS. In the<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">case of an ESDS it is the relative byte address of the corresponding record in the base cluster<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">that is stored.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Can we access records in VSAM only by a single Key, i.e. primary Key?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">It is also possible to access the records in a sequence other than that of the primary Key. Such<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Keys are called alternate Keys and they can be non-unique.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">For Example, in a pay-roll system where employee number is the unique primary Key and the<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Employee name as alternate Key.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the 'verify' command in the VSAM files?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">This command is used to close those files that are kept open after the abnormal termination of<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">the file. It also brings the index component in sync with the data components and updates the<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">catalog.<o:p></o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is a path?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">A path is a file that allows you to access a file by alternate index - the path provides an<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">association between the AIX and the base cluster.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the upgrade set?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">The upgrade set is the list of all AIXs that VSAM must maintain for a specific base cluster, so that<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">when data in the base cluster is updated, the AIX files are also updated.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is free space?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Free space is reserved within the data component of a KSDS to accommodate inserting new<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">records.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is IDCAMS? and what is the purpose of it?.<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">IDCAMS, also known as Access Method Services, is used to perform the following tasks:<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Create a VSAM data set, VSAM alternate index, or catalog.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">List a catalog entry for a data set, Dataset/catalog contents.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Copy a Dataset or catalog.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Convert non-VSAM to VSAM data set.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Load a VSAM Dataset from VSAM records<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";">Rename VSAM data sets.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is a VSAM split?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">If there isn't enough space in the Control Interval VSAM performs a Control Interval split by<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">moving some records to the free Control Intervals. If there isn't a free Control Interval VSAM<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">performs a control area split by allocating a new control area and moving half of the Control<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Intervals to it.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the base cluster?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">The base cluster consists of the data component and the index component for the primary index<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">of a KSDS.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What will happen if there is no secondary allocation made for Datasets?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">VSAM will inform COBOL program of the problem and terminate the processing of the program.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Why CI and CA splits are not possible in ESDS and RRDS?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">In ESDS the new record is added at the end of last record. And no imbedded free space is<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">allocated at the time of Dataset definition. In the case of RRDS the slots for the records are pre-allocated and so the CI and CA split is not possible.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Do primary Key values have to be unique? Do alternate Key values have to be<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Unique?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Primary Key values must be unique; alternate Key values need not be.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">In the COBOL SELECT statement what is the ORGANIZATION for a KSDS?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">The ORGANIZATION is INDEXED.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">In the COBOL SELECT statement for a KSDS what are the three possibilities for<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">ACCESS?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">ACCESS can be SEQUENTIAL, RANDOM or DYNAMIC.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the COBOL RECORD KEY clause?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">The RECORD KEY in the SELECT clause identifies the files primary Key as it will be known to<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">the program.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the purpose of the FILE STATUS clause in the SELECT statement?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">The FILE STATUS field identifies the field that VSAM uses to provide information about each I/O<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Operation for the file.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">If you wish to use the REWRITE command how must the VSAM file be opened?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">It must be opened I/O mode.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Explain the meaning and syntax for the START command?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">The START command is used to read other than the next VSAM record. A value must be<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">moved into the RECORD KEY. The KEY clause is optional, but it can be used to specify a<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">relational (equal, less than, etc.) operator.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the meaning of dynamic processing?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">It means one program uses both sequential and random processing for a VSAM KSDS file. It's<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">rarely used.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Name some common VSAM error conditions and codes?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">They are end of file (10), duplicate Key (22), record not found (23), Out of space condition is<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">raised (28) ,VSAM logic error (90), open problem (92) and space problem (93).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the VSAM-code field?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">It is a COBOL II enhancement to VSAM batch processing expanding the FILE STATUS field. It is<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">defined in WORKING - STORAGE as a six byte group item with three two byte elements, the<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">normal return code, the function code and the feedback code.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is a VSAM slot?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">A relative record Dataset (RRDS) consists of a specified number of areas called slots. Each slot<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">is identified by a relative record number (RRN) which indicates its relative position in the file.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the utility program closely associated with VSAM?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">IDCAMS, the access method services utility.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">There are at least seven IDCAMS commands; name and explain each of them?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">ALTER modifies information for a catalog, alternate index, cluster or path.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">BLDINDEX builds the alternate index, of course.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">DEFINE is used for ALTERNATEINDEX, CLUSTER or PATH.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">DELETE removes the catalog entry for a catalog, cluster, alternate index or path. LISTCAT lists<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Information about the Dataset.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">PRINT prints the Dataset contents.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">REPRO copies records from one file to another.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What are the three levels of definition for the VSAM DEFINE?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">They are DEFINE CLUSTER, DATA and INDEX.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the significance of the SHAREOPTIONS parameter?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">It specifies how the file may be shared between jobs and between batch and CICS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Environments.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the meaning of the DEFINE MODEL parameter?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">It specifies whether the MODEL parameter allows you to model your cluster by modelling it<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">after an existing cluster.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">How do you fix the problem associated with VSAM out of space condition?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">1. Define new VSAM Dataset allocated with more space.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">2. Use IDCAMS to REPRO the old VSAM file to new VSAM Dataset.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">3. Use IDCAMS to ALTER / rename the old VSAM Dataset or set IDCAMS to DELETE the<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><span style=""> </span>old VSAM Dataset.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">4. Use IDCAMS to ALTER / rename the new VSAM Dataset to the name of the original<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">VSAM Dataset.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">In how many ways can you load the data in a VSAM cluster?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">1. Using the REPRO command.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">2. Using COBOL program<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is the REPRO command?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">While a new cluster is created using IDCAMS, cluster will be empty. By using the REPRO<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">command, we can load records into the cluster.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">REPRO is used to:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Copy Datasets (VSAM or NON-VSAM), copy catalogs.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Convert sequential and index sequential Datasets to VSAM format<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Convert VSAM and Index sequential Datasets to sequential format<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Backup VSAM catalog<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Read a backup copy of VSAM catalogs.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Is it slower if you access a record through ALTERNATIVE INDEX as compared to<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Primary INDEX?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">YES. Because the alternate Key would first locate the primary Key, which in turn locates the<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">actual record. Needs twice the number of I/Os.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is RECOVERY and SPEED parameters in DEFINE CLUSTER command?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">RECOVERY (default) and SPEED are mutually exclusive. Recovery pre-formats the control areas<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">during the initial DataSet load, if the job fails, you can restart but you must have a recovery<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">routine already written to restart the job. SPEED does not pre-format the CAs. It is recommended<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">that you specify SPEED to speed up your initial data load.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What is a SHAREOPTIONS parameter (SHR) in Define Cluster command.<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">It defines the cross-region and cross-system sharing capabilities of the DataSet. Syntax is SHR<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">(CRvalue CSvalue)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">1 means multiple read OR single write (read integrity)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">2 means multiple read AND single write (Write integrity)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">3 means Multiple read AND multiple write<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">4 is same as 3, which refreshes the buffer with every random access. Default is SHR (1 3).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What are the optional parameters to the input DataSet While loading the empty cluster<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">with the data records?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">i) Skip and Count<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Syntax:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">SKIP(2)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">COUNT(4)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">In this case, the first two records are skipped and the next four records are printed. The<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";">default for SKIP is 0, and for COUNT will be printing records from beginning to end.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">ii) FromKey and ToKey<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">PRINT -<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">INDATASET (CUSTOMER.KSDS.CLUSTER) -<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">FROMKEY (111111) -<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">TOKEY (444444)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Will print all records with Key value ranging from 111111 to 444444.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">iii) FROMADDRESS and TOADDRESS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">iv) FROMNUMBER and TONUMBER<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What does GDG mean in VSAM?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Generation Data Group<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Is a delete operation possible in an ESDS? Is rewrite operation possible in ESDS ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">No. Delete operation is not possible in VSAM ESDS. Yes, rewrite operation is possible in an<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">ESDS.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">Can VSAM files be deleted with the DELETE option of the DISPOSITION parameter of<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">JCL?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">No, you have to give a separate DELETE command in the VSAM cluster.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">How many buffers are allocated to VSAM KSDS and ESDS?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">2 data buffers by default for ESDS. For KSDS it allots 2 data buffers and 1 index buffers. Each<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">buffer is about 4k.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">What are the codes returned by the AMS (Access Method Services) command during<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-size: 10pt; font-family: "Trebuchet MS";">the execution?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Every AMS command issues a condition code. If multiple commands are being executed<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Successively, there might be a requirement to execute or bypass certain commands on the<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">Success or failure of a previous command.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">The normal condition codes returned by AMS commands are :<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">0 - The function was executed successfully<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">4 - A problem was encountered while executing the function, WARNING<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">8 - The requested function was executed, but major specifies were unavoidably bypassed,<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";"><span style=""> </span>ERROR<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">12 - The requested command could not be performed because of a logical error, SEVERE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 10pt; font-family: "Trebuchet MS";">16 - A severe error occurred causing the remainder of the command stream to be<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><span style=""> </span>bypassed., FATAL.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";">**************************************** The End*******************************************************<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 10pt; font-family: "Trebuchet MS";"><o:p> </o:p></span></p> <h1>VSAM</h1> <p class="MsoNormal">What are the 3 types of VSAM files ? </p> <p class="MsoNormal">1-ESDS (Entry sequenced dataset). DB2 uses a special type of ESDS.</p> <p class="MsoNormal">2-RRDS (Relative record dataset). Records are accessed using a relative number.</p> <p class="MsoNormal">3-KSDS (Key sequenced dataset) is the most common type encountered. The record sequence is determined by a unique key field. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">How do you create a VSAM file ? </p> <p class="MsoNormal">You use the IDCAMS utility with the DEFINE CLUSTER option. </p> <p class="MsoNormal">How do you copy to a VSAM cluster ? </p> <p class="MsoNormal">You use the IDCAMS utility with the REPRO option. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">What is an alternate index ? </p> <p class="MsoNormal">An alternate index is another file related to the cluster, but sorted using an alternate key that can have duplicates. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">How do you create an alternate index ? </p> <p class="MsoNormal">You use the IDCAMS utility with the DEFINE AIX option after you build the cluster and then do another IDCAMS with the BLDINDEX option to populate the alternate index. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">What parameter in the DEFINE AIX option is used to determine the maximum number of duplicate keys allowable ? </p> <p class="MsoNormal">The RECORDSIZE parameter. There are 2 numbers that follow this: the 1st is the average and the 2nd is the maximum. The values are equal to 5 + (cluster key length) + N*(alternate key length), where N is the allowable number of duplicates. </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Name a few common VSAM status codes. </p> <p class="MsoNormal">00-OK</p> <p class="MsoNormal">02-READ a duplicate alternate key</p> <p class="MsoNormal">10-end of file reached while doing a READ</p> <p class="MsoNormal">22-trying to WRITE a duplicate primary key</p> <p class="MsoNormal">23-record not found while doing a READ</p> <p class="MsoNormal">97-file integrity verified, do an IDCAMS VERIFY </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">What is buffering and how does it apply to VSAM files ? </p> <p class="MsoNormal">When large blocks of data are used, more main storage is required than when smaller blocks are used, but large blocks save CPU time and disk space. Additionally, extra buffers may save elapsed time since the program does not have to wait for an I/O to complete for it to continue processing.</p> <p class="MsoNormal">In the JCL, you specify BUFNI (number of index buffers) and BUFND (number of data buffers) as subparameters of the AMP parameter.</p> <p class="MsoNormal">For random access, the BUFNI is one more than the number of index levels and a BUFND of 2 is fine.</p> <p class="MsoNormal">For sequential access, a BUFNI of 1 and a minimum of 5 for BUFND is fine.</p> <p class="MsoNormal">For dynamic access, the values of each is the higher of the numbers for either random or sequential. </p> <p class="MsoNormal"><span style="font-family: "Trebuchet MS";"><o:p> </o:p></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-61579806540896467302008-07-03T04:14:00.001-07:002008-12-23T21:45:21.640-08:00QUESTION BANK For MAINFRAMEs<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:宋体; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:SimSun;} h1 {mso-style-next:Normal; margin:0in; margin-bottom:.0001pt; mso-pagination:none; page-break-after:avoid; mso-outline-level:1; text-autospace:none; font-size:14.0pt; font-family:"Courier New"; mso-font-kerning:0pt;} p.MsoHeader, li.MsoHeader, div.MsoHeader {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:SimSun;} p.MsoFooter, li.MsoFooter, div.MsoFooter {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:SimSun;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-page-numbers:1; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:-2; mso-list-type:simple; mso-list-template-ids:-1;} @list l0:level1 {mso-level-start-at:0; mso-level-text:*; mso-level-tab-stop:none; mso-level-number-position:left; margin-left:0in; text-indent:0in;} @list l0:level1 lfo1 {mso-level-number-format:bullet; mso-level-numbering:continue; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol; mso-bidi-font-family:Symbol;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal" style="text-align: center;" align="center"><b><u><span style="font-family: "Courier New";">
<br /><o:p></o:p></span></u></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 14pt; font-family: "Courier New";">COBOL</span></b><b><span style="font-family: "Courier New";"><o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">1.Name the divisions in a COBOL program. - GS</span></b><span style="font-family: "Courier New";"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATA DIVISION, PROCEDURE DIVISION.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">2.What are the different data types available in COBOL?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Alpha-numeric (X), alphabetic (A) and numeric (9).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">3.What does the INITIALIZE verb do?<span style=""> </span>- GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Numeric, Numeric edited items set to ZERO.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">FILLER , OCCURS DEPENDING ON items left untouched.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">4.What is 77 level used for ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">5.What is 88 level used for ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">For condition names.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">6.What is level 66 used for ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">For RENAMES clause.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">7.What does the IS NUMERIC clause establish ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">IS NUMERIC can be used on alphanumeric items, signed numeric & packed decimal items and unsigned numeric & packed decimal<span style=""> </span>items. IS NUMERIC returns TRUE if the item only consists of 0-9. However, if the item being tested is a signed<span style=""> </span>item, then it may contain 0-9,<span style=""> </span>+ and - .<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">8.How do you define a table/array in COBOL?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">01<span style=""> </span>ARRAYS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">05<span style=""> </span>ARRAY1<span style=""> </span>PIC X(9) OCCURS 10 TIMES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">05<span style=""> </span>ARRAY2<span style=""> </span>PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">9.Can the OCCURS clause be at the 01 level?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">10.What is the difference between index and subscript? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Subscript refers to the array occurrence while index is the displacement (in no of bytes) from the beginning of the array. An index can only be modified using PERFORM, SEARCH & SET.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Need to have index for a table in order to use SEARCH, SEARCH ALL.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">11.What is the difference between SEARCH and SEARCH ALL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">SEARCH - is a serial search.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">SEARCH ALL - is a binary search & the table must be sorted ( ASCENDING/DESCENDING KEY clause to be used & data loaded in this order) before using SEARCH ALL.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">12.What should be the sorting order for SEARCH ALL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">It can be either ASCENDING or DESCENDING.<span style=""> </span>ASCENDING is default.<span style=""> </span>If you want the search to be done on an array sorted in descending order, then while defining the array, you should give DESCENDING KEY clause. (You must load the table in the specified order).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">13.What is binary search?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Search on a sorted array.<span style=""> </span>Compare the item to be searched with the item at the center.<span style=""> </span>If it matches, fine else repeat the process with the left half or the right half depending on where the item lies.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">14.My program has an array defined to have 10 items.<span style=""> </span>Due to a bug, I find that even if the program access the 11th item in this array, the program does not abend.<span style=""> </span>What is wrong with it?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Must use compiler option SSRANGE if you want array bounds checking. Default is NOSSRANGE.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">15.How do you sort in a COBOL program?<span style=""> </span>Give sort file definition, sort statement syntax and meaning. - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Syntax:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">SORT file-1 ON ASCENDING/DESCENDING KEY key....<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">USING file-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">GIVING file-3.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">USING can be substituted by INPUT PROCEDURE IS para-1 THRU para-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">GIVING can be substituted by OUTPUT PROCEDURE IS para-1 THRU para-2.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">file-1 is the sort workfile and must be described using SD entry in FILE SECTION.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">file-2 is the input file for the SORT and must be described using an FD entry in FILE SECTION and SELECT clause in FILE CONTROL. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">file-3 is the outfile from the SORT and must be described using an FD entry in FILE SECTION and SELECT clause in FILE CONTROL.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>file-1, file-2 & file-3 should not be opened explicitly.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">INPUT PROCEDURE is executed before the sort and records must be RELEASEd to<span style=""> </span>the sort work file from the input procedure.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">OUTPUT PROCEDURE is executed after all records have been sorted. Records from the sort work file must be RETURNed one at a time to the output procedure.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">16.How do you define a sort file in JCL that runs the COBOL program?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Use the SORTWK01, SORTWK02,..... dd names in the step. Number of sort datasets depends on the volume of data being sorted, but a minimum of 3 is required.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">17.What are the two ways of doing sorting in a COBOL program?<span style=""> </span>Give the formats. - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">See question 16.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">18.Give the format of USING and GIVING in SORT statement.<span style=""> </span>What are the restrictions with it? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">See question 16. Restrictions - Cannot massage records, canot select records to be sorted.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">19.What is the difference between performing a SECTION and a PARAGRAPH? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Performing a SECTION will cause all the paragraphs that are part of the section, to be performed. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Performing a PARAGRAPH will cause only that paragraph to be performed.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">20.What is the use of EVALUATE statement? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Evaluate is like a case statement and can be used to replace nested Ifs. The difference between EVALUATE and case is that no 'break' is required for EVALUATE i.e. control comes out of the EVALUATE as soon as one match is made.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">21.What are the different forms of EVALUATE statement?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">EVALUATE <span style=""> </span>VALUATE SQLCODE ALSO FILE-STATUS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">WHEN A=B AND C=D<span style=""> </span>WHEN 100 ALSO '00'<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">WHEN (D+X)/Y = 4<span style=""> </span>WHEN -305 ALSO '32'<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">WHEN OTHER<span style=""> </span>WHEN OTHER<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">END-EVALUATE<span style=""> </span><span style=""> </span>END-EVALUATE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">EVALUATE SQLCODE ALSO A=B<span style=""> </span>EVALUATE SQLCODE ALSO TRUE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">WHEN 100 ALSO TRUE<span style=""> </span>WHEN 100 ALSO A=B<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">WHEN -305 ALSO FALSE<span style=""> </span>WHEN -305 ALSO (A/C=4)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">END-EVALUATE<span style=""> </span>END-EVALUATE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">22.How do you come out of an EVALUATE statement? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">After the execution of one of the when clauses, the control is automatically passed on to the next sentence after the EVALUATE statement.<span style=""> </span>There is no need of any extra code.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">23.In an EVALUATE statement, can I give a complex condition on a when clause?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">24.What is a scope terminator?<span style=""> </span>Give examples.</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Scope terminator is used to mark the end of a verb e.g. EVALUATE, END-EVALUATE; IF, END-IF.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">25.How do you do in-line PERFORM? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">PERFORM ... <until> ... <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><sentences><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span>END PERFORM<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">26.When would you use in-line perform?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-family: "Courier New";">When the body of the perform will not be used in other paragraphs. If the body of the perform is a generic type of code (used from various other places in the program), it would be better to put the code in a separate para and use PERFORM paraname rather than in-line perform.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">27.What is the difference between CONTINUE & NEXT SENTENCE ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">CONTINUE is like a null statement (do nothing) , while NEXT SENTENCE transfers control to the next sentence (!!) (A sentence is terminated by a period)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">28.What does EXIT do ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">Does nothing ! If used, must be the only sentence within a paragraph.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">29.Can I redefine an X(100) field with a field of X(200)?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Yes. Redefines just causes both fields to start at the same location. For example:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">01 WS-TOP PIC X(1)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">01 WS-TOP-RED REDEFINES WS-TOP PIC X(2).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">If you MOVE '12' to WS-TOP-RED, <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DISPLAY WS-TOP will show 1 while <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DISPLAY WS-TOP-RED will show 12. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">30.Can I redefine an X(200) field with a field of X(100) ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">30.What do you do to resolve SOC-7 error? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Basically you need to correcting the offending data.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Many times the reason for SOC7 is an un-initialized numeric item. Examine that possibility first.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Many installations provide you a dump for run time abends ( it can be<span style=""> </span>generated also by calling some subroutines or OS services thru<span style=""> </span>assembly language).<span style=""> </span>These dumps provide the offset of the last<span style=""> </span>instruction at which the abend occurred.<span style=""> </span>Examine the compilation <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">output XREF listing to get the verb and the line number of the source<span style=""> </span>code at this offset.<span style=""> </span>Then you can look at the source code to find the<span style=""> </span>bug.<span style=""> </span>To get capture the runtime dumps,<span style=""> </span>you will have to define some<span style=""> </span>datasets (SYSABOUT etc ) in the JCL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">If none of these are helpful,<span style=""> </span>use judgement and DISPLAY to localize<span style=""> </span>the source of error.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Some installtion might have batch program debugging tools.<span style=""> </span>Use them.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">31.How is sign stored in Packed Decimal fields and Zoned Decimal fields?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">Packed Decimal fields:<span style=""> </span>Sign is stored as a hex value in the last nibble (4 bits ) of the storage.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">Zoned Decimal fields:<span style=""> </span>As a default, sign is over punched with the numeric value stored in the last bite.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">32.How is sign stored in a comp-3 field? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">It is stored in the last nibble. For example if your number is +100, it stores hex 0C in the last byte, hex 1C if your number is 101, hex 2C if your number is 102, hex 1D if the number is -101, hex 2D if the number is -102 etc...<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">33. How is sign stored in a COMP field ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">In the most significant bit. Bit is on if -ve, off if +ve.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">34.What is the difference between COMP & COMP-3<span style=""> </span>?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">COMP is a binary storage format while COMP-3 is packed decimal format.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">35.What is COMP-1? COMP-2?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">COMP-1<span style=""> </span>- Single precision floating point. Uses 4 bytes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">COMP-2 - Double precision floating point. Uses 8 bytes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">36.How do you define a variable of COMP-1?<span style=""> </span>COMP-2?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">No picture clause to be given. Example 01 WS-VAR USAGE COMP-1.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">37.How many bytes does a S9(7) COMP-3 field occupy ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Will take 4 bytes. Sign is stored as hex value in the last nibble.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">General formula is INT((n/2) + 1)), where n=7 in this example.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">38.How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Will occupy 8 bytes (one extra byte for sign).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">39.How many bytes will a S9(8) COMP field occupy ?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">4 bytes. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">40.What is the maximum value that can be stored in S9(8) COMP?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">99999999<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">41.What is COMP SYNC?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Causes the item to be aligned on natural boundaries. Can be SYNCHRONIZED LEFT or RIGHT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">For binary data items, the address resolution is faster if they are located at word boundaries in the memory.<span style=""> </span>For example, on main frame the memory word size is 4 bytes.<span style=""> </span>This means that each word will start from an address divisible by 4.<span style=""> </span>If my first variable is x(3) and next one is s9(4) comp, then if you do not specify the SYNC clause, S9(4) COMP will start from byte 3 ( assuming that it starts from 0 ).<span style=""> </span>If you specify SYNC, then the binary data item will start from address 4. You might see some wastage of memory, but the access to this computational field is faster.<span style=""> </span><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">42.What is the maximum size of a 01 level item in COBOL I?<span style=""> </span>in COBOL II?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">In COBOL II: 16777215<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">43.How do you reference the following file formats from COBOL programs:</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Fixed Block File<span style=""> </span>- Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK CONTAINS 0 .<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Fixed Unblocked - Use ORGANISATION IS SEQUENTIAL. Use RECORDING<span style=""> </span>MODE IS F, do not use BLOCK CONTAINS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Variable Block File - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, BLOCK CONTAINS 0. Do not code the 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Variable Unblocked - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, do not use BLOCK CONTAINS. Do not code 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">ESDS VSAM file - Use ORGANISATION IS SEQUENTIAL. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">KSDS VSAM file - Use ORGANISATION IS INDEXED, RECORD KEY IS, ALTERNATE RECORD KEY IS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">RRDS File - Use ORGANISATION IS RELATIVE, RELATIVE KEY IS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Printer File - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK CONTAINS 0. (Use RECFM=FBA in JCL DCB).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">44.What are different file OPEN modes available in COBOL?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Open for INPUT, OUTPUT, I-O, EXTEND.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">45.What is the mode in which you will OPEN a file for writing? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">OUTPUT, EXTEND<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">46.In the JCL, how do you define the files referred to in a subroutine?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Supply the DD cards just as you would for files referred to in the main program. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">47.Can you REWRITE a record in an ESDS file?<span style=""> </span>Can you DELETE a record from it?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Can rewrite(record length must be same), but not delete.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">48.What is file status 92? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Logic error. e.g., a file is opened for input and an attempt is made to write to it.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">49.What is file status 39 ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL pgm & the JCL (or the dataset label). You will get file status 39 on an OPEN.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">50.What is Static,Dynamic linking ?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">In static linking, the called subroutine is link-edited into the calling program , while in dynamic linking, the subroutine & the main program will exist as separate load modules. You choose static/dynamic linking by choosing either the DYNAM or NODYNAM link edit option. (Even if you choose NODYNAM, a CALL identifier (as opposed to a CALL literal), will translate to a DYNAMIC call).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">A statically called subroutine will not be in its initial state the next time it is called unless you explicitly use INITIAL or you do a CANCEL. A dynamically called routine will always be in its initial state.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">51.What is AMODE(24), AMODE(31), RMODE(24) and RMODE(ANY)?<span style=""> </span>( applicable to only MVS/ESA Enterprise Server).<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">These are compile/link edit options.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">AMODE<span style=""> </span>- Addressing mode. RMODE - Residency mode.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";">AMODE(24) - 24 bit addressing. AMODE(31) - 31 bit addressing. AMODE(ANY) - Either 24 bit or 31 bit addressing depending on RMODE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";">RMODE(24) - Resides in virtual storage below 16 Meg line. Use this for 31 bit programs that call 24 bit programs. (OS/VS Cobol pgms use 24 bit addresses only).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">RMODE(ANY) - Can reside above or below 16 Meg line.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">52.What compiler option would you use for dynamic linking?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">DYNAM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">53.What is SSRANGE, NOSSRANGE ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">These are compiler options w.r.t subscript out of range checking. NOSSRANGE is the default and if chosen, no run time error will be flagged if your index or subscript goes out of the permissible range.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">54.How do you set a return code to the JCL from a COBOL program?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Move a value to RETURN-CODE register. RETURN-CODE should not be declared in your program.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">55.How can you submit a job from COBOL programs?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";">Write JCL cards to a dataset with <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";">//xxxxxxx SYSOUT=(A,INTRDR) where 'A' is output class, and dataset should be opened for output in the program. Define a 80 byte record layout for the file.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">56.What are the differences between OS VS COBOL and VS COBOL II?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">OS/VS Cobol pgms can only run in 24 bit addressing mode, VS Cobol II pgms can run either in 24 bit or 31 bit addressing modes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Report writer is supported only in OS/VS Cobol.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>USAGE IS POINTER is supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>Reference modification eg: WS-VAR(1:2) is supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>EVALUATE is supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>Scope terminators are supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>OS/VS Cobol follows ANSI 74 stds while VS COBOL II follows ANSI 85 stds.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Under CICS Calls between VS COBOL II programs are supported.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">57.What are the steps you go through while creating a COBOL program executable?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DB2 precompiler(if embedded sql used), CICS translator (if CICS pgm), Cobol compiler, Link editor.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>If DB2 program, create plan by binding the DBRMs.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">58.Can you call an OS VS COBOL pgm from a VS COBOL II<span style=""> </span>pgm ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-family: "Courier New";">In non-CICS environment, it is possible. In CICS, this is not possible.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 14pt; font-family: "Courier New";">VSAM</span></b><b><span style="font-family: "Courier New";"><o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">1.What are the different types of VSAM files available?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">ESDS:<span style=""> </span>Entry Sequence Data Set<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">KSDS:<span style=""> </span>Key Sequence Data Set<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">RRDS:<span style=""> </span>Relative Data Set<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">2.What is IDCAMS ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">IDCAMS is the Access Method Services program. You run the IDCAMS program and supply AMS commands thru SYSIN. (examples of AMS commands are DELETE, DEFINE, REPRO etc..).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">3.Can AMS commands be run from the TSO prompt ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Yes<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">4.Syntax of<span style=""> </span>AMS modal commands ?</span></b><span style="font-family: "Courier New";"> <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Note: these can be used only under IDCAMS and not from the TSO prompt.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">IF LASTCC(or MAXCC)<span style=""> </span>>(or <,= etc..) value - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">THEN - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DO - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span>command set (such as DELETE, DEFINE etc..) <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">ELSE - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DO - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span>command set <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">LASTCC<span style=""> </span>- Condition code from the last function(such as delete) executed<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">MAXCC - Max condition code that was returned by any of the prev functions<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">SET is also a valid AMS command. SET LASTCC (or MAXCC) = value<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">The maximum condition code is 16. A cond code of 4 indicates a warning. A cond code of 8 is usually encountered on a DELETE of a dataset that is not present.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">5.Under IDCAMS , multiple functions can be executed, each of which returns a cond code. What will be the condition code returned to the operating system ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">The maximum condition code generated is returned as the condition code of the IDCAMS step. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">6.What is Control Interval, Control Area</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Control Interval is analogous to a physical block for QSAM files. It is the unit of i/o. Must be between 512 bytes to 32 k. Usually either 2K or 4K. A larger control interval increases performance for sequential processing while the reverse is true for random access. Under CICS when a record is locked, the entire CI gets locked.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Control area is a group of control intervals. CA is used during allocation. CA size is calculated based on the allocation type (cyl, tracks or records) and can be max of 1 cylinder<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">7.What is FREESPACE ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Coded in the DEFINE as FREESPACE(ci ca) where ci is the percentage of each control interval to be left free for insertions, ca is the percentage of control intervals in each control area to be left empty.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">8.How do you decide on optimum values for CI, FREESPACE etc...</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">CI size should be based on record length, type of processing. Usually CI is 4K. If record length is larger(>1K), chose 6K or 8K. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">FREESPACE should be large if more number of insertions are envisaged. Usual values are (20 20) when heavy updates are expected. CI size can be calculated.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">9.Would you specify FREESPACE for an ESDS?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">No. Because you cannot insert records in an ESDS, also when you rewrite a record, it must be of the same length. Thus putting any value for freespace does not make any sense.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">10.What is SHAREOPTS ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">SHAREOPTS is a parameter in the DEFINE and specifies how an object can be shared among users. It is coded as SHAREOPTS(a b), where a is the cross region share option ie how two or more jobs on a single system can share the file, while b is the cross system share option ie how two or more jobs on different MVSes can share the file. Usual value is (2 3).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">11.What is the meaning of each of the values in SHAREOPTS(2 3)?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Value of 2 for cross region means that the file can be processed simultaneously by multiple users provided only one of them is an updater. Value of 3 for cross system means that any number of jobs can process the file for input or output (VSAM does nothing to ensure integrity).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">12.How do you define a KSDS ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DEFINE CLUSTER(cluster name) with the INDEXED parameter. Also specify the ds name for the DATA component & the ds INDEX component. Other important parms are RECORDSIZE, KEYS, SHAREOPTIONS.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">13.How do you define an ALTINDX ? How do you use ALTINDXs in batch, CICS pgms ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">DEFINE ALTERNATEINDEX. Important paramters are RELATE where you specify the base cluster name, KEYS, RECORDSIZE,SHAREOPTIONS,UNIQUEKEY(or NONUNIQUEKEY), DATA(ds name for the data component), INDEX(ds name for the index component).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Then DEFINE PATH. Important paramters are NAME (ds name for the path), PATHENTRY (ds name of the alternate index name), UPDATE(or NOUPDATE) which specifies whether an alt index is updated when a update to the base cluster takes place.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Then BLDINDEX. Parameters are INDATASET(ds name of base cluster), OUTDATASET(ds name of AIX).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Using alternate indexes in batch pgms:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">In the JCL, you must have DD stmts for the cluster and for the path(s). In the cobol pgm, SELECT .. ASSIGN TO ddname for base cluster RECORD KEY IS... ALTERNATE RECORD KEY IS..<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Using alternate indexes in CICS pgms:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">FCT entries must be created for both base cluster & the path. To read using the alternate index, use the dd name of the path in CICS file control commands.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">14.What happens when you open an empty VSAM file in a COBOL program for input?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">A VSAM file that has never contained a record is treated as unavailable. Attempting to open for input will fail. An empty file can be opened for output only. When you open for output, COBOL will write a dummy record to the file & then delete it out.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">15.How do you initialize a VSAM file before any operation? a VSAM with alternate index?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Can write a dummy program that just opens the file for output & then closes it. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">16.What does a file status of 02 on a VSAM indicate?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Duplicate alternate key . Happens on both input and output operation<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">17.How do you calculate record size of an alternate cluster?<span style=""> </span>Give your values for both unique and non-unique.</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Unique Case:<span style=""> </span>5 + ( alt-key-length + primary-key )<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Nonunique Case: 5 + ( alt-key-length + n * primary-key )<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><span style=""> </span><span style=""> </span>where n = # of duplicate records for the alternate key<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">???? Ramesh - can you explain ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">18.What is the difference between sequential files and ESDS files?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Sequential(QSAM) files can be created on tape while ESDS files cannot.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Also, you can have ALTINDEX for an ESDS while no such facility exists for QSAM files.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">19.How do you load a VSAM data set with records ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Using the<span style=""> </span>REPRO command. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">20.How do you define a GDG ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Use the DEFINE GENERATIONDATAGROUP command. In the same IDCAMS step, another dataset must be defined whose DCB parameters are used when new generations of the GDG are created. This dataset is known as the model dataset. The ds name of this model dataset must be the same as that of the GDG, so use a disp of keep rather than catlg and also specify space=(trk,0)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">21.Do all versions of the GDG have to be of the same record length ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">No,<span style=""> </span>the DCB of the model dataset can be overridden when you allocate new versions.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">22.How are different versions of GDG named ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">base-file-name.GnnnnnV00 where nnnn= generation number (upto 255).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">nnnn will be 0000 for the 1st generation.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">23.Suppose 3 generations of a GDG exist. How would you reference the<span style=""> </span>1 st generation in the JCL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use GDG name(-2).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">24.Suppose a generation of GDG gets created<span style=""> </span>in a particular step of a proc. How would you refer the current<span style=""> </span>generation in a subsequent step? What would be the disposition of<span style=""> </span>this generation now? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Relative generation numbers are updated only at the end of the job, not at the end of a step. To allocate a new generation, we would be using (+1) with a DISP of<span style=""> </span>(NEW,CATLG,DELETE). To refer to this in a subsequent step in the same job, we would again use (+1) but with a DISP of SHR or OLD.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">25.What more info you should give in the DD statement while defining the next generation of a GDG? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Give (+1) as the generation number, give (new,catlg) for disp, give space parameter, can give the dcb parameter if you want to override the dcb of the model dataset.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">26.Assuming that the DEFINE jcl is not available, how do you get info about a VSAM file's organisation ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Use the LISTCAT command.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">27.During processing of a VSAM file, some system error occurs and it is subsequently unusable . What do you do ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Run VERIFY. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 14pt; font-family: "Courier New";">JCL</span></b><b><span style="font-family: "Courier New";"><o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">1.What is primary allocation for a dataset?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">The space allocated when the dataset is first created.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">2.What is the difference between primary and secondary allocations for a dataset?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Secondary allocation is done when more space is required than what has already been allocated. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">3.How many extents are possible for a sequential file ? For a VSAM file?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -0.25in;"><span style="font-family: "Courier New";">16 extents on a volume for a sequential file and 123 for a VSAM file.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">4.What does a disposition of (NEW,CATLG,DELETE) mean? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">That this is a new dataset and needs to be allocated,<span style=""> </span>to CATLG the dataset if the step is successful and to delete the dataset if the step abends.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">5.What does a disposition of (NEW,CATLG,KEEP) mean? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">That this is<span style=""> </span>a new dataset and needs to be allocated, to CATLG the dataset if the step is successful and to KEEP but not CATLG the dataset if the step abends. Thus if the step abends, the dataset would not be catalogued and we would need to supply the vol. ser the next time we refer to it.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">6.How do you access a file that had a disposition of KEEP? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Need to supply volume serial no. VOL=SER=xxxx.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">7.What does a disposition of (MOD,DELETE,DELETE) mean ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">The MOD will cause the dataset to be created (if it does not exist),<span style=""> </span>and then the two DELETEs will cause the dataset to be deleted whether the step abends or not. This disposition is used to clear out a dataset at the beginning of a job. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">8.What is the DD statement for a output file?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Unless allocated earlier, will have the foll parameters:<span style=""> </span>DISP=(NEW,CATLG,DELETE), UNIT , SPACE & DCB .<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">9.What do you do if you do not want to keep all the space allocated to a dataset? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Specify the parameter<span style=""> </span>RLSE ( release ) in the SPACE e.g. SPACE=(CYL,(50,50),RLSE)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">10.What is DISP=(NEW,PASS,DELETE)?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">This is a new file and create it, if the step terminates normally, pass it to the subsequent steps and if step abends, delete it.<span style=""> </span>This dataset will not exist beyond the JCL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">11.How do you create a temporary dataset?<span style=""> </span>Where will you use them?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Temporary datasets can be created either by not specifying any DSNAME or by specifying the temporary file indicator as in DSN=&&TEMP. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">We use them to carry the output of one step to another step in the same job. The dataset will not be retained once the job completes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">12.How do you restart a proc from a particular step? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">In job card, specify RESTART=procstep.stepname<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">where procstep = name of the jcl step that invoked the proc <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">and stepname = name of the proc step where you want execution to start<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">13.How do you skip a particular step in a proc/JOB? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Can use either condition codes or use the jcl control statement IF (only in ESA JCL)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">14.A PROC has five steps.<span style=""> </span>Step 3 has a condition code.<span style=""> </span>How can you override/nullify this condition code? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Provide the override on the EXEC stmt in the JCL as follows:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">//STEP001 EXEC procname,COND.stepname=value<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">All parameters on an EXEC stmt in the proc such as COND, PARM have to be overridden like this.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">15.How do you override a specific DDNAME/SYSIN in PROC from a JCL?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">//<stepname.dd><span style=""> </span>DSN=...<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">16.What is NOTCAT 2 - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">This is an MVS message indicating that a duplicate catalog entry exists. E.g., if you already have a dataset with dsn = 'xxxx.yyyy' and u try to create one with disp new,catlg, you would get this error. the program open and write would go through and at the end of the step the system would try to put it in the system catalog. at this point since an entry already exists the catlg would fail and give this message. you can fix the problem by deleting/uncataloging the first data set and going to the volume where the new dataset exists(this info is in the msglog of the job) and cataloging it.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">17.What is 'S0C7' abend? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Caused by invalid data in a numeric field.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">18.What is a S0C4 error ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Storage violation error - can be due to various reasons. e.g.: READING a file that is not open, invalid address referenced due to subscript error.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">19.What are SD37, SB37, SE37 abends?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">All indicate dataset out of space. SD37 - no secondary allocation was specified. SB37 - end of vol. and no further volumes specified.<span style=""> </span>SE37 - Max. of 16 extents already allocated.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">20.What is S322 abend ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Indicates a time out abend. Your program has taken more CPU time than the default limit for the job class. Could indicate an infinite loop.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">21.Why do you want to specify the REGION parameter in a JCL step? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">To override the REGION defined at the JOB card level.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">REGION specifies the max region size. REGION=0K or 0M or omitting REGION means no limit will be applied.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">22.What does the TIME parameter signify ? What does TIME=1440 mean ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">TIME parameter can be used to overcome S322 abends for programs that genuinely need more CPU time. TIME=1440 means no CPU time limit is to be applied to this step.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">23.What is COND=EVEN ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Means execute this step even if any of the previous steps, terminated abnormally.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">24.What is COND=ONLY ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Means execute this step only if any of the previous steps, terminated abnormally.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">25.How do you check the syntax of a JCL without running it?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">TYPERUN=SCAN on the JOB card or use JSCAN.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">26.What does IEBGENER do?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Used to copy one QSAM file to another. Source dataset should be described using SYSUT1 ddname. Destination dataset should be decribed using SYSUT2. IEBGENR can also do some reformatting of data by supplying control cards via SYSIN.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">27.How do you send the output of a COBOL program to a member of<span style=""> </span>a PDS?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Code the DSN as pds(member) with a DISP of SHR. The disp applies to the pds and not to a specific member.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">28.I have multiple jobs ( JCLs with several JOB cards ) in a member.<span style=""> </span>What happens if I submit it?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Multiple jobs are submitted (as many jobs as the number of JOB cards). <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">29.I have a COBOL program that ACCEPTs some input data.<span style=""> </span>How do you code the JCL statment for this? ( How do you code instream data in a JCL? )</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">//SYSIN DD*<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">input data<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">input data<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">/*<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">30.Can you code instream data in a PROC ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">31. How do you overcome this limitation ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">One way is to code SYSIN DD DUMMY in the PROC, and then override this from the JCL with instream data.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">32.How do you run a COBOL batch program from a JCL?<span style=""> </span>How do you run a COBOL/DB2 program?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">To run a non DB2 program,<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">//STEP001 EXEC PGM=MYPROG<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">To run a DB2 program,<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">//STEP001 EXEC PGM=IKJEFT01<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">//SYSTSIN DD *<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">DSN SYSTEM(....)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">RUN PROGRAM(MYPROG)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">PLAN(.....)<span style=""> </span>LIB(....)<span style=""> </span>PARMS(...)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">/*<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">33.What is STEPLIB, JOBLIB?<span style=""> </span>What is it used for? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Specifies that the private library (or libraries) specified should be searched before the default system libraries in order to locate a program to be executed.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">STEPLIB applies only to the particular step, JOBLIB to all steps in the job.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">34.What is order of searching of the libraries in a JCL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">First any private libraries as specified in the STEPLIB or JOBLIB, then the system libraries such as SYS1.LINKLIB. The system libraries are specified in the linklist. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">35.What happens if both JOBLIB & STEPLIB is specified ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">JOBLIB is ignored.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">36.When you specify mutiple datasets in a JOBLIB or STEPLIB, what factor determines the order? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">The library with the largest block size should be the first one.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">37.How to change default proclib ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">//ABCD<span style=""> </span>JCLLIB ORDER=(ME.MYPROCLIB,SYS1.PROCLIB)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><b><span style="font-family: "Courier New";">38.The disp in the JCL is MOD and the<span style=""> </span>program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";">Records will be written to end of file (append) when a WRITE is done in both cases.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><b><span style="font-family: "Courier New";">39.What are the valid DSORG values ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">PS - QSAM, PO - Partitioned, IS - ISAM<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">40.What are the differences between JES2 & JES3 ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-family: "Courier New";">JES3 allocates datasets for all the steps before the job is scheduled. In JES2, allocation of datasets required by a step are done only just before the step executes. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-family: "Courier New";">????? Can anyone add more<o:p></o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <h1>DB2</h1> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">1.How would you find out the total number of rows in a table? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use SELECT COUNT(*) ...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">2.How do you eliminate duplicate values in SELECT? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use SELECT DISTINCT ...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">3.How do you select a row using indexes? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Specify the indexed columns in the WHERE clause.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">4.What are aggregate functions?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Bulit-in mathematical functions for use in SELECT clause.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">5.How do you find the maximum value in a column? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use SELECT MAX(...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">6.Can you use MAX on a CHAR column?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">YES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">7.My SQL statement SELECT AVG(SALARY) FROM EMP yields inaccurate results. Why?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Because SALARY is not declared to have NULLs and the employees for whom the salary is not known are also counted.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">8.How do you retrieve the first 5 characters of FIRSTNAME column of EMP table?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SELECT SUBSTR(FIRSTNAME,1,5) FROM EMP;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">9.How do you concatenate the FIRSTNAME and LASTNAME from EMP table to give a complete name?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SELECT FIRSTNAME || ' ' || LASTNAME FROM EMP;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">10.What is the use of VALUE function?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">1. Avoid -ve SQLCODEs by handling nulls and zeroes in computations<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">2. Substitute a numeric value for any nulls used in computation<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">11.What is UNION,UNION ALL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">UNION : <span style=""> </span>eliminates duplicates<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">UNION ALL: <span style=""> </span>retains duplicates<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Both these are used to combine the results of different SELECT statements.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">12.Suppose I have five SQL SELECT statements connected by UNION/UNION ALL, how many times should I specify UNION to eliminate the duplicate rows? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Once.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">13.What is the restriction on using UNION in embedded SQL?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">It has to be in a CURSOR.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">14.In the WHERE clause what is BETWEEN and IN? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">BETWEEN supplies a range of values while IN supplies a list of values.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">15.Is BETWEEN inclusive of the range values specified? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">16.What is 'LIKE' used for in WHERE clause? What are the wildcard characters? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">LIKE is used for partial string matches.<span style=""> </span>'%' ( for a string of any character ) and '_' (for any single character ) are the two wild card characters.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">17.When do you use a LIKE statement?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">To do partial search e.g. to search employee by name, you need not specify the complete name; using LIKE, you can search for partial string matches.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">18.What is the meaning of underscore ( '_' ) in the LIKE statement? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Match for any single character.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">19.What do you accomplish by GROUP BY ... HAVING clause? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">GROUP BY partitions the selected rows on the distinct values of the column on which you group by.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">HAVING selects GROUPs which match the criteria specified<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">20.Consider the employee table with column PROJECT nullable.<span style=""> </span>How can you get a list of employees who are not assigned to any project?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SELECT EMPNO <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">FROM EMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">WHERE PROJECT IS NULL;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">21.What is the result of this query if no rows are selected:<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">SELECT SUM(SALARY)<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">FROM EMP<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">WHERE QUAL='MSC';</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">NULL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">22.Why SELECT * is not preferred in embedded SQL programs?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">For<span style=""> </span>three reasons:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: "Courier New";">If the table structure is changed ( a field is added ), the program will have to be modified<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: "Courier New";">Program might retrieve the columns which it might not use, leading on I/O over head.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: "Courier New";">The chance of an index only scan is lost.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">.What are correlated subqueries? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">A subquery in which the inner ( nested ) query refers back to the table in the outer query. Correlated subqueries must be evaluated for each qualified row of the outer query that is referred to.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">23.What are the issues related with correlated subqueries? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">24.What is a cursor? why should it be used? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Cursor is a programming device that allows the SELECT to find a set of rows but return them one at a time.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Cursor should be used because the host language can deal with only one row at a time.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">25.How would you retrieve rows from a DB2 table in embedded SQL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Either by using the single row SELECT statements,or by using the CURSOR.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">26.Apart from cursor, what other ways are available to you to retrieve a row from a table in embedded SQL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Single row SELECTs.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">27.Where would you specify the DECLARE CURSOR statement? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">See answer to next question.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">28.How do you specify and use a cursor in a COBOL program? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use DECLARE CURSOR statement either in working storage or in procedure division(before open cursor), to specify the SELECT statement.<span style=""> </span>Then use OPEN, FETCH rows in a loop and finally CLOSE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">29.What happens when you say OPEN CURSOR?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">If there is an ORDER BY clause, rows are fetched, sorted and made available for the FETCH statement.<span style=""> </span>Other wise simply the cursor is placed on the first row.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">30.Is DECLARE CURSOR executable?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">31.Can you have more than one cursor open at any one time in a program ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">32.When you COMMIT, is the cursor closed?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">33.How do you leave the cursor open after issuing a COMMIT?<span style=""> </span>( for DB2 2.3 or above only )</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use WITH HOLD option in DECLARE CURSOR statement.<span style=""> </span>But, it has not effect in psuedo-conversational CICS programs.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">34.Give the COBOL definition of a VARCHAR field.</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">A VARCHAR column REMARKS would be defined as follows:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">...<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">10 REMARKS.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>49 REMARKS-LEN<span style=""> </span>PIC S9(4) USAGE COMP.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>49 REMARKS-TEXT<span style=""> </span>PIC X(1920).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">35.What is the physical storage length of each of the following DB2 data types: <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";"><span style=""> </span>DATE, TIME, TIMESTAMP?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DATE: <span style=""> </span>4bytes<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">TIME: <span style=""> </span>3bytes<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">TIMESTAMP: <span style=""> </span>10bytes<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">36.What is the COBOL picture clause of the following DB2 data types:<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";"><span style=""> </span>DATE, TIME, TIMESTAMP?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DATE: <span style=""> </span>PIC X(10)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">TIME : <span style=""> </span>PIC X(08)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">TIMESTAMP: <span style=""> </span>PIC X(26)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">37.What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PIC S9(9)V99 COMP-3.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Note: In DECIMAL(11,2), 11 indicates the size of the data type and 2 indicates the precision.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">38.What is DCLGEN ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DeCLarations GENerator: used to create the host language copy books for the table definitions. Also creates the DECLARE table.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">39.What are the contents of a DCLGEN? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">1. EXEC SQL DECLARE TABLE statement which gives the layout of the table/view in terms of DB2 datatypes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">2. A host language copy book that gives the host variable definitions for the column names.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">40.Is it mandatory to use DCLGEN? If not, why would you use it at all? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">It is not mandatory to use DCLGEN. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Using DCLGEN, helps detect wrongly spelt column names etc. during the pre-compile stage itself ( because of the DECLARE TABLE ).<span style=""> </span>DCLGEN being a tool, would generate accurate host variable definitions for the table reducing chances of error.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">41.Is DECLARE TABLE in DCLGEN necessary? Why it used?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">It not necessary to have DECLARE TABLE statement in DCLGEN.<span style=""> </span>This is used by the pre-compiler to validate the table-name, view-name, column name etc., during pre-compile.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">42.Will precompile of an DB2-COBOL program bomb, if DB2 is down?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No.<span style=""> </span>Because the precompiler does not refer to the DB2 catalogue tables.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">43.How is a typical DB2 batch pgm executed ?</span></b><span style="font-family: "Courier New";"> <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">1. Use DSN utility to run a DB2 batch program from native TSO.<span style=""> </span>An example is shown:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">DSN SYSTEM(DSP3)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><span style=""> </span>RUN PROGRAM(EDD470BD) PLAN(EDD470BD) LIB('EDGS01T.OBJ.LOADLIB')<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">END<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">2. Use IKJEFT01 utility program to run the above DSN command in a JCL. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">44.Assuming that a site's standard is that pgm name = plan name, what is the easiest way to find out which pgms are affected by change in a table's structure ?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Query the catalogue tables SYSPLANDEP and SYSPACKDEP.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">45.Name some fields from SQLCA.</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SQLCODE, SQLERRM, SQLERRD<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">46.How can you quickly find out the # of rows updated after an update statement?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Check the value stored in SQLERRD(3).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">47.What is EXPLAIN? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">EXPLAIN is used to display the access path as determined by the optimizer for a SQL statement.<span style=""> </span>It can be used in SPUFI (for single SQL statement ) or in BIND step (for embedded SQL ).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">48.What do you need to do before you do EXPLAIN?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Make sure that the PLAN_TABLE is created under the AUTHID.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">49.Where is the output of EXPLAIN stored? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">In userid.PLAN_TABLE <span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">50.EXPLAIN has output with MATCHCOLS = 0.<span style=""> </span>What does it mean? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">a nonmatching index scan if ACCESSTYPE = I.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">51.How do you do the EXPLAIN of a dynamic SQL statement?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">1. Use SPUFI or QMF to EXPLAIN the dynamic SQL statement<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">2. Include EXPLAIN command in the embedded dynamic SQL statements<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">52.How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause.)</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Use a question mark in place of a host variable ( or an unknown value ). e.g.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">SELECT EMP_NAME<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">FROM EMP<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">WHERE EMP_SALARY > ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">53.What are the isolation levels possible ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">CS:<span style=""> </span>Cursor Stability<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">RR:<span style=""> </span>Repeatable Read<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">54.What is the difference between CS and RR isolation levels?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">CS:<span style=""> </span>Releases the lock on a page after use<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">RR:<span style=""> </span>Retains all locks acquired till end of transaction<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">55.Where do you specify them ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">ISOLATION LEVEL is a parameter for the bind process.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">56.When do you specify the isolation level? How?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">During the BIND process.<span style=""> </span>ISOLATION ( CS/RR )...<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">57.I use CS and update a page.<span style=""> </span>Will the lock be released after I am done with that page?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">58.What are the various locking levels available?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PAGE, TABLE, TABLESPACE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">59.How does DB2 determine what lock-size to use?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">1. Based on the lock-size given while creating the tablespace<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">2. Programmer can direct the DB2 what lock-size to use<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">3. If lock-size ANY is specified, DB2 usually choses a lock-size of PAGE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">60.What are the disadvantages of PAGE level lock?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Hig resource utilization if large updates are to be done<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">61.What is lock escalation?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Promoting a PAGE lock-size to table or tablespace lock-size when a transaction has aquired more locks than specified in NUMLKTS.<span style=""> </span>Locks should be taken on objects in single tablespace for escalation to occur.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">62.What are the various locks available?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SHARE, EXCLUSIVE, UPDATE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">63.Can I use LOCK TABLE on a view?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No.<span style=""> </span>To lock a view, take lock on the underlying tables.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">64.What is ALTER ? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SQL command used to change the definition of DB2 objects.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">65.What is a DBRM, PLAN ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DBRM: DataBase Request Module, has the SQL statements extracted from the host language program by<span style=""> </span>the pre-compiler.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PLAN: A result of the BIND process.<span style=""> </span>It has the executable code for the SQL statements in the DBRM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">66.What is ACQUIRE/RELEASE in BIND?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Determine the point at which DB2 acquires or releases locks against table and tablespaces, including intent locks.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">67.What else is there in the PLAN apart from the access path? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PLAN has the executable code for the SQL statements in the host program<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">68.What happens to the PLAN if index used by it is dropped?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Plan is marked as invalid. The next time the plan is accessed, it is rebound.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">69.What are PACKAGES ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">They contain executable code for SQL statements for one DBRM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">70.What are the advantages of using a PACKAGE?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">1. Avoid having to bind a large number of DBRM members into a plan<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">2. Avoid cost of a large bind<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">3. Avoid the entire transaction being unavailable during bind and automatic rebind of a plan<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">4. Minmize fallback complexities if changes result in an error.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">71.What is a collection?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">a user defined name that is the anchor for packages.<span style=""> </span>It has not physical existence.<span style=""> </span>Main usage is to group packages.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">72.In SPUFI suppose you want to select max. of 1000 rows , but the select returns only 200 rows. What are the 2 sqlcodes that are returned? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">100 ( for successful completion of the query ), 0 (for successful COMMIT<span style=""> </span>if AUTOCOMMIT is set to Yes).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">73.How would you print the output of an SQL statement from SPUFI? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Print the output dataset.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">74.How do you pull up a query which was previously saved in QMF ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">??<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">75.Lot of updates have been done on a table due to which indexes have gone haywire.<span style=""> </span>What do you do? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Looks like index page split has ocured.<span style=""> </span>DO a REORG of the indexes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">76.What is dynamic SQL? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Dynamic SQL is a SQL statement created at program execution time.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">77.When is the access path determined for dynamic SQL? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">At run time, when the PREPARE statement is issued.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">78.Suppose I have a program which uses a dynamic SQL and it has been performing well till now.<span style=""> </span>Off late, I find that the performance has deteriorated.<span style=""> </span>What happened? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Probably RUN STATS is not done and the program is using a wrong index due to incorrect stats.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Probably RUNSTATS is done and optimizer has chosen a wrong access path based on the latest statistics.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">79.How does DB2 store NULL physically?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">as an extra-byte prefix to the column value. physically, the nul prefix is Hex '00' if the value is present and Hex 'FF' if it is not.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">80.How do you retrieve the data from a nullable column? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use null indicators. Syntax ... INTO :HOSTVAR:NULLIND<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">81.What is the picture clause of the null indicator variable? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">S9(4) COMP.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">82.What does it mean<span style=""> </span>if the null indicator has -1, 0, -2? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">-1<span style=""> </span>: the field is null<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">0 <span style=""> </span>: the field is not null<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">-2<span style=""> </span>: the field value is truncated<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">83.How do you insert a record with a nullable column?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">To insert a NULL, move -1 to the null indicator<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">To insert a valid value, move 0 to the null indicator<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">84.What is RUNSTATS? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">A DB2 utility used to collect statistics about the data values in tables which can be used by the optimizer to decide the access path. It also collects statistics used for space management.<span style=""> </span>These statistics are stored in DB2 catalog tables.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">85.When will you chose to run<span style=""> </span>RUNSTATS?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">After a load, or after mass updates, inserts, deletes, or after REORG.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">86.Give some example of statistics collected during RUNSTATS?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"># of rows in the table<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Percent of rows in clustering sequence<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"># of distinct values of indexed column<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">#<span style=""> </span>of rows moved to a nearby/farway page due to row length increase<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">87.What is REORG?<span style=""> </span>When is it used?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">REORG reorganizes data on physical storage to reclu<u><span style="color: blue;">t</span></u>ser rows, positioning oveflowed rows in their proper sequence, to reclaim space, to restore free space.<span style=""> </span>It is used after heavy updates, inserts and delete activity and after segments of a segmented tablespace have become fragemented.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">88.What is IMAGECOPY ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">It is full backup of a DB2 table which can be used in recovery.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">89.When do you use the IMAGECOPY? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">To take routine backup of tables<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">After a LOAD with LOG NO<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><u><span style="font-family: "Courier New"; color: blue;">After REORG with LOG NO<o:p></o:p></span></u></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">90.What is COPY PENDING status?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">A state in which, an image copy on a table needs to be taken,<span style=""> </span>In this status, the table is available only for queries.<span style=""> </span>You cannot update this table.<span style=""> </span>To remove the COPY PENDING status, you take an image copy or use REPAIR utility.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">91.What is CHECK PENDING ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">When a table is LOADed with ENFORCE NO option, then the table is left in CHECK PENDING status.<span style=""> </span>It means that the LOAD utility did not perform constraint checking.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">92.What is QUIESCE?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">A QUIESCE flushes all DB2 buffers on to the disk. This gives a correct snapshot of the database and should be used before and after any IMAGECOPY to maintain consistency.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">93.What is a clustering index ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Causes the data rows to be stored in the order specified in the index. A mandatory index defined on a partitioned table space.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">94.How many clustering indexes can be defined for a table?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Only one.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">95.What is the difference between primary key & unique index ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Primary : a relational database constraint.<span style=""> </span>Primary key consists of one or more columns that uniquely identify a row in the table.<span style=""> </span>For a normalized relation, there is on<u><span style="color: blue;">e</span></u> designated primary key.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Unique index: a physical object that stores only unique values.<span style=""> </span>There can be one or more unique indexes on a table.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">96.What is sqlcode -922 ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Authorization failure<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">97.What is sqlcode -811?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SELECT statement has resulted in retrieval of more than one row.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">98.What does the sqlcode of -818 pertain to? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">This is generated when the consistency tokens in the DBRM and the load module are different.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">99.Are views updatable ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Not all of them.<span style=""> </span>Some views are updatable e.g. single table view with all the fields or mandatory fields. Examples of non-updatable views are views which are joins, views that contain aggregate functions(such as MIN), and views that have GROUP BY clause.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">100.If I have a view which is a join of two or more tables, can this view be updatable? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">101.What are the 4 environments which can access DB2 ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">TSO, CICS, IMS and BATCH<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">102.What is<span style=""> </span>an inner join, and an outer join ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Inner Join:<span style=""> </span>combine information from two or more tables by comparing all values that meet the search criteria in hte designated column or columns of on etable with all the calues in corresponding columns of the other table or tables.<span style=""> </span>This kind of join which involve a match in both columns are called inner joins.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Outer join is one in which you want both matching and non matching rows to be returned. DB2 has no specific operator for outer joins, it can be simulated by combining a join and a correlated sub query with a UNION.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">103.What is FREEPAGE and PCTFREE in TABLESPACE creation?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PCTFREE: percentage of each page to be left free <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">FREEPAGE: Number of pages to be loaded with data between each free page<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">104.What are simple, segmented and<span style=""> </span>partitioned table spaces ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Simple Tablespace:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Can contain one or more tables<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Rows from multiple tables can be interleaved on a page under the DBAs control and maintenance<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Segmented Tablespace: <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Can contain one or more tables<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Tablespace is divided into segments of 4 to 64 pages in increments of 4 pages.<span style=""> </span>Each segment is dedicated to single table.<span style=""> </span>A table can occupy multiple segments<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Partitioned Tablespace:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Can contain one table<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Tablespace is divided into parts and each part is put in a separate VSAM dataset.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">105.What is filter factor?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">one divided by the number of distinct values of a column.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">106.What is index cardinality? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">The number of distinct values a column or columns contain.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">107.What is a synonym ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Synonym is an alternate name for a table or view used mainly to hide the leading qualifier of a table or view.. A synonym is accessible only by the creator.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">108.What is the difference between SYNONYM and ALIAS?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">SYNONYM: is dropped when the table or tablespace is dropped. Synonym is available only to the creator.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">ALIAS: is retained even if table or tablespace is dropped.<span style=""> </span>ALIAS can be created even if the table does not exist.<span style=""> </span>It is used mainly in distributed environment to hide the location info from programs. Alias is a global object & is available to all.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">109.What do you mean by NOT NULL WITH DEFAULT?<span style=""> </span>When will you use it?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">This column cannot have nulls and while insertion, if no value is supplied then it wil have zeroes, spaces or date/time depending on whether it is numeric, character or date/time.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use it when you do not want to have nulls but at the same time cannot give values all the time you insert this row.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">110.What do you mean by NOT NULL?<span style=""> </span>When will you use it?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">The column cannot have nulls.<span style=""> </span>Use it for key fields.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">111.When would you prefer to use VARCHAR?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">When a column which contains long text, e.g. remarks, notes, may have in most cases less than 50% of the maximum length.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">112.What are the disadvantages of using VARCHAR?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">1. Can lead to high space utilization if most of the values are close to maimum.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">2. Positioning of VARCHAR column has to be done carefully as it has performance implications.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">3. Relocation of rows to different pages can lead to more I/Os on retrieval.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">113.How do I create a table MANAGER ( EMP#, MANAGER) where MANAGER is a foreign key which references to EMP# in the same table?<span style=""> </span>Give the exact DDL.</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">First CREATE MANAGER table with EMP# as the primary key.<span style=""> </span>Then ALTER it to define the foreign key.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">114.When is the authorization check on DB2 objects done - at BIND time or run time?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">At run time.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">115.What is auditing?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Recording SQL statements that access a table.<span style=""> </span>Specified at table creation time or thru alter.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-size: 14pt; font-family: "Courier New";">CICS</span></b><b><span style="font-family: "Courier New";"><o:p></o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">1.How do you place the cursor on a particular position on the screen? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Move -1 to the length attribute of the field and use the CURSOR option. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Define the field with IC in the BMS map.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use CURSOR(n m)??<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">2.What are the two outputs<span style=""> </span>created as a result of generation of a map? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">The map copybook and the load module.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">3.What is the difference between physical map and symbolic map? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">The physical map is the load module and the symbolic map is the data structure.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">4.How do you protect a field from being overlaid? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">5.What is the attribute byte? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Defines the display/transmission of field. most cases is an output field from the program.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">6.How do you use extended attributes ?</span></b><span style="font-family: "Courier New";"> <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Define EXTATT=YES and the correct terminal type.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">7.What are the 3 working storage fields used for every field on the map? - GS<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Length, attribute and input/output field.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">8.What is MDT? What are FSET, FRSET ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Modified Data Tag. Bit in the attribute byte indicating modification of field on screen. Happens on an input operation. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">FSET. Sets MDT on to ensure field is transmitted. Happens on an output operation.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">FRSET. Resets MDT. Until this happens, field continues to be sent.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">9.What is the use of DSECT parameter in BMS?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Is the parameter to generate a symbolic map.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">10.Do you receive the attribute byte in the symbolic map?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">On EOF yes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">11.How do you make your BMS maps case sensitive?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Use ASIS???<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">12.What is effect on RECEIVE MAP when<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: "Courier New";">PF key is pressed? Data transmission may happen,<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: "Courier New";">PA key is pressed? Data transmission will not happen.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">13.What are SEND MAP MAPONLY & SEND MAP DATAONLY ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">14.What is the difference between a PF key & a PA key ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PF keys wake up the task and transmit modified data, PA keys only wake up the task.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">15.Name the macros used to define the following:</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">MAP<span style=""> </span>MAPSET <span style=""> </span>FIELD<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DFHMSD<span style=""> </span>DFHMDI<span style=""> </span>DFHMDF<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">16.Can you use OCCURS in a BMS map?<span style=""> </span>If you do, what are the issues related with its use?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes. cannot use group by clause???<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">17.Can you define multiple maps in a BMS mapset?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">18.How is the storage determined in the symbolic map, if you have multiple maps?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Storage for maps redefine the first. This means largest map has to be the first.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">19.What is the meaning of BMS length of field = 0?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Data was not entered in the field<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">20.Can you simply check if length = 0 for checking if a field was modified?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No, not if ERASE EOF was used.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">21.What do you do if you do not want characters entered by the user to be folded to uppercase ?</span></b><span style="font-family: "Courier New";"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use ASIS option on RECEIVE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">22.What does the BUFFER option in RECEIVE mean ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Brings the entire datastream from the terminal buffer.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">23.What are the steps you go through to a create a BMS executable?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Assemble to create CSECT and Link<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">24.When you compile a CICS program, the (pre)compiler puts an extra chunk of code.<span style=""> </span>Where does it get included and that is it called?</span></b><span style="font-family: "Courier New";"><span style=""> </span>What is its length? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DFHEIBLK, DFHCOMMAREA.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">25.List all the CICS tables and explain their contents. - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PPT<span style=""> </span>SIT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PCT<span style=""> </span>JCT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">FCT<span style=""> </span>SNT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DCT<span style=""> </span>SRT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">RCT<span style=""> </span>TCT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">26.I have written a CICS program.<span style=""> </span>What tables should I setup to run this program? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PPT, PCT, (FCT, DCT, RCT (if needed)).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">27.In which table would you make an entry for a BMS map? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">PPT<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">28.What is the content of the PPT entry? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Length, Source, Use count, Lang, Res count DFHRPL number<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">29.For a CICS-DB2 program, how is the plan referenced? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Uses a RCT table.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">30.How is dynamic memory allocated within a CICS application program? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Use a GETMAIN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">31.What are the restrictions while using GETMAIN and FREEMAIN? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">33.What is the use of a TDQ, TSQ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Temporary data stores.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">34.How do you read from a TSQ? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Temp storage read command<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">35.If I create a TSQ from one transaction, can I read it from another transaction? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes. As long as they run in the same region.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">36.What are extra partition & intra partition TDQs?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Extra partition TDQs are datasets used for communication b'n CICS and other CICS/Batch regions. Intrapartition TDQs are queues for communication within regn.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">37.What is trigger level in the context of TDQs?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">For intrapartition TDQs specify the # records at which ATI happens. not applicable for extra partition TDQs.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">38.How do you fire a batch job from a CICS txn ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Define an extrapartition TDQ as an internal reader and write the JCL to it. Terminate the JCL with /*EOF.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">39.What is ATI? What kind of TDQ can be used?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Automatic Task Initiation. Intra partition TDQ.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">40.Do you require a table entry for a TSQ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">If recovery is needed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">41.Is there any entry for TSQs in CICS tables?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes in the DFHTST.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">42.What is the use of DCT?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Destination Control Table used to define TDQs<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">43.What is ENQ, DEQ ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Task control commands to make resources serially reusable.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">44.I have TSQ with 15 items.<span style=""> </span>I want to delete the 10th item.<span style=""> </span>How do I do that?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">45.Can you issue SQL COMMIT from a CICS program? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">46.What is the other way of terminating a transaction? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><span style=""> </span>EXEC CICS SYNCPOINT. Assuming it is a LUW. This will not end the Xn.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">47.What is an ASRA abend ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Any data exception problem SOC7, SOC4 etc.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">48.What is an AEY9 abend ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">DB2/IDMS not up.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">49.What are the situations under which<span style=""> </span>NEWCOPY is required ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">When a program has been used in CICS atleast once and then changed and recompiled.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">50.What is 2 phase commit?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">51.What is EXEC CICS RETRIEVE ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Used by STARTed tasks to get the parameters passed to them.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">52.Name some important fields in the EIB block ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">EIBRESP, EIBCALEN, EIBRRCDE, EIBTASK, EIBDATE, EIBTIME<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">53.Can you use DYNAMIC calls in CICS ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Yes, the called routine must be defined in PPT and the calling program must use CALL identifier..<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">54.How do you handle errors in CICS pgms ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Check EIBRESP after the call or use the HANDLE condition.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">55.Suppose pgm A passes 30 bytes to pgm B thru commarea and pgm B has defined its DFHCOMMAREA to be 50 bytes . Is there a problem ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes, if B tries to access bytes 31-50.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><b><span style="font-family: "Courier New";">56.When an XCTL is done, does the tranid change ? Is a new task created ? Does it cause an implicit SYNCPOINT to be issued ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";">No, No, Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">57.How do you execute a background CICS txn ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">With a START or ATI.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">58.Can a CICS region be attached to more than one DB2 subsystem ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">59.What determines the DB2 subsystem to which a particular CICS region is attached ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">60.What is the DSNC transaction used for ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">61.How do you handle error in a CICS program?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Same as 36.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">62.What is the difference between START and XCTL ?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">START is used to start a new task. It is a interval control command. XCTL is used to pass control to a program within the same task. It is a program control command.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">63.What is the usage of language in the PPT entry?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Language interface and call parameters???<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">64.Can you have CICS code in a copybook?<span style=""> </span>If yes, what happens during compilation?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Yes. Needs to be preprocessed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">65.What is an AICA abend?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Runaway Task.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">66.How would you resolve an ASRA abend?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">In COBOL II start with CEBR, and get the offset/instruction.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">67.I invoke a transaction from CICS.<span style=""> </span>The program has a code: MOVE DFHCOMMAREA TO WS-AREA.<span style=""> </span>What happens to this transaction?<span style=""> </span>What happens to the other transactions?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Junk may get moved in. Will cause Storage violation. ????<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">68.How do I find the name of the CICS region inside my COBOL program?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">69.When you do a START, what will the value of EIBCALEN?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Zero.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">70.How are VSAM files Read in CICS pgms? - GS</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">File Control Commands. Random, Sequential, forward and backward.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">71.How will you access a VSAM file using an alternate index?<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Thru the path. Define path as an FCT and use normal File control commands.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">72.How do you rollback data written to an ESDS file?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">Define the file as recoverable. in cases where records have been inserted into the file, you may need to run a batch program to logically delete the inserted records.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><b><span style="font-family: "Courier New";">73.I have done a START BROWSE on a VSAM dataset.<span style=""> </span>Can I do another START BROWSE without doing an END BROWSE?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">74.Can you access QSAM (seq ) files from CICS ?</span></b><span style="font-family: "Courier New";"><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><b><span style="font-family: "Courier New";">75.Can you access ESDS files from CICS ?<o:p></o:p></span></b></p> <p class="MsoNormal" style=""><span style="font-family: "Courier New";">Yes.<o:p></o:p></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-7205083159433766412008-07-17T23:09:00.003-07:002008-12-23T21:45:21.639-08:00CICS QUESTIONNAIRE<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:none; mso-layout-grid-align:none; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:SimSun; mso-ansi-language:EN-GB;} p.MsoHeader, li.MsoHeader, div.MsoHeader {margin:0in; margin-bottom:.0001pt; mso-pagination:none; tab-stops:center 207.65pt right 415.3pt; mso-layout-grid-align:none; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:SimSun; mso-ansi-language:EN-GB;} p.MsoFooter, li.MsoFooter, div.MsoFooter {margin:0in; margin-bottom:.0001pt; mso-pagination:none; tab-stops:center 207.65pt right 415.3pt; mso-layout-grid-align:none; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:SimSun; mso-ansi-language:EN-GB;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:-2; mso-list-type:simple; mso-list-template-ids:-105327576;} @list l0:level1 {mso-level-start-at:0; mso-level-number-format:bullet; mso-level-text:*; mso-level-tab-stop:none; mso-level-number-position:left; margin-left:0in; text-indent:0in;} @list l0:level1 lfo1 {mso-level-start-at:1; mso-level-numbering:continue; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.5in; mso-level-legacy-space:0in; margin-left:1.0in; text-indent:-.5in; font-family:Symbol;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal" style="text-align: center;" align="center"><b><u><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">
<br /></span></u></b><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.1<span style=""> </span><b>What happens to resources supplied to a transaction when an XCTL command is executed?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>With an XCTL, the working storage and procedure division of the program issuing XCTL are released. The I/O areas, the GETMAIN areas and the chained Linkage Section areas (Commarea from a higher level) remain. All existing locks and queues also remain in effect. With a LINK, however program storage is also saved, since the transaction expects to return and use it again.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.2<span style=""> </span><b>What CICS command do you need to obtain the user logon-id?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You must code EXEC CICS ASSIGN with OPERID option.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.3<span style=""> </span><b>What is a resident program?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>A program or map loaded into the CICS nucleus so that it is kept permanently in main storage and not deleted when CICS goes "short on storage."<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.4<span style=""> </span><b>What is some of the information available in the EIB area?</b><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The cursor position in the map are :<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Transaction id<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Terminal id<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Task number<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Length of the communication area<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Current date and time<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Attention identifier<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.5<span style=""> </span><b>What information can be obtained from the EIBRCODE?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The EIBRCODE tells the application program if the last CICS command was executed successfully and if not, why not.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.6<span style=""> </span><b>What is the effect of including the TRANSID in the EXEC CICS RETURN command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>Next time the end user presses an attention key, CICS will start the transaction specified in the TRANSID option.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.7<span style=""> </span><b>What is the function of the EXEC CICS HANDLE CONDITION command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>To specify the paragraph or program label to which control is to be passed if the "handled condition" occurs.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.8<span style=""> </span><b>How many conditions can you include in a single HANDLE CONDITION command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>No more than 16 in a single handle condition. If you need more, then you must code another HANDLE CONDITION command.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.9<span style=""> </span><b>What is the EXEC CICS HANDLE ABEND?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>It allows the establishing of an exit so cleanup processing can be done in the event of abnormal task termination.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.10<span style=""> </span><b>What is the difference between an EXEC CICS HANDLE CONDITION and an EXEC CICS IGNORE command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>A HANDLE CONDITION command creates a "go-to” environment. An IGNORE command does not create a go-to environment; instead it gives control back to the next sequential instruction following the command causing condition. They are opposites.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.11<span style=""> </span><b>What happens when a CICS command contains the NOHANDLE option?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>No action is going to be taken for any exceptional condition occurring during the execution of this command.<span style=""> </span>The abnormal condition that occurred will be ignored even if an EXEC CICS HANDLE condition exists.<span style=""> </span>It has the same effect as EXEC CICS IGNORE condition except that it will not cancel the previous HANDLE CONDITION for any other command.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.12<span style=""> </span><b>What happens when a CICS command contains the RESP option?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A.<span style=""> </span>No action is going to be taken for any exceptional condition occurring during the execution of this command. When an abnormal condition occurs, the CICS response code is a field in the program work area and can be checked later (usually at the next sequential instruction).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.13<span style=""> </span><b>Suppose that an application program uses the HANDLE AID ENTER (main-logic) and the HANDLE CONDITION ERROR(abort-rtn) command. If the program issued a RECEIVE MAP and a MAPFAIL condition occurred, which process will take control : main-logic or abort-rtn?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>Main-logic will receive control because Handle Aid has priority over Handle Condition.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.13<span style=""> </span><b>When the task suspends all handle conditions via. the PUSH command, how does the task re-activate all the handle conditions?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>By coding an EXEC CICS POP HANDLE command.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.14<span style=""> </span><b>What is the difference between the INTO and the SET option in EXEC CICS RECEIVE MAP commands?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The INTO option moves information in the TIOA into the reserved specified area, while the SET option simply returns the address of TIOA to the specified BLL cell or "address-of" a linkage section.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.15<span style=""> </span><b>Define the function of Basic Mapping System (BMS).</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>BMS allows the application to be device-independent. It translates the formatted data stream, thus enabling the application to reference data by symbolic labels.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.16<span style=""> </span><b>Suppose you have a field in a map named ACCTID and you want it bright. Explain how can you do this during the execution of application?<o:p></o:p></b></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>By moving either DHFBMBRY to the ACCTIDA field in symbolic map (bright only) or DFHBMASB to the ACCTIDA field in the symbolic map (askip bright).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.17<span style=""> </span><b>What are the three ways available for a program to position the cursor on the screen ?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>1. Static positioning. Code the insert cursor (IC) in the DHFMDF BMS macro.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">2. Relative positioning. Code the CURSOR option with a value relative to zero (position 1,1 is zero).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">3. Symbolic positioning. Move high values or -1 to the field length in the symbolic map (and code CURSOR on the SEND command).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.18<span style=""> </span><b>Reducing the data traffic is a very important factor in an on-line environment. Explain the difference between the MAPONLY and DATAONLY options in the EXEC CICS SEND MAP.</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>A vast majority of the maps are defined as input/output. Therefore, to reduce data transmission first time a map is sent, you should use MAPONLY because this will set up the initial template on screen. After that the application needs to be sent only variable data in the symbolic map (DATAONLY).<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.19<span style=""> </span><b>What is the Modified Data Tag (MDT)?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The MDT is a 1-bit attribute character of a BMS field. When it is set on, CICS will transmit the data contained in the associated map field.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.20<span style=""> </span><b>Name three ways the Modified Data Tag can be set on?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A:<span style=""> </span>The Modified Data Tag can be set on :<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">1. When the user enters data into the field<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">2. When the application program moves the DFHBMSFSE to the attribute character<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">3. By defining it in the BMS macro definition<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.21<span style=""> </span><b>How do you specify in your program which fields are not to be sent to a map (terminal)?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>By filling the fields with low values.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.22<span style=""> </span><b>What happens if neither MAPONLY nor DATAONLY are specified?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The data from the physical map and the data from the symbolic map are merged, causing an increase in the data transmission.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.23<span style=""> </span><b>What is a mapset?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>A mapset is a collection of BMS maps link-edited together.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.24<span style=""> </span><b>What is the function of the DFHMDF BMS macro?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The DFHMBF macro defines fields, literal and characteristics of a field.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.25<span style=""> </span><b>The DFHMDF is a subset (a subdivision) of which BMS macro?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>DFHMDF is a BMS macro that is a part of the DHFMDI macro.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.26<span style=""> </span><b>What is the function of Terminal Control Table (TCT)?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The TCT defines the characteristics of each terminal with which CICS can communicate.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.27<span style=""> </span><b>When an application program issues an EXEC CICS RECEIVE MAP command and there is no data sent back to the application program, what exceptional condition will occur?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in -1in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>A MAPFAIL condition will occur.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: -1in; text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in -1in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.28<span style=""> </span><b>What does it mean when EIBCALEN is equal to zeros?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>When the length of communication area (EIBCALEN) is equal to zeros, it means that no data was passed to the application.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-right: -1in; text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin: 0in -1in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in -1in 0.0001pt 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><b><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.30<span style=""> </span>Which CICS system program is responsible for handling automatic task initialization?</span></b><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A:<span style=""> </span>The Transient Data Program(TDP).<o:p></o:p></span></p> <p class="MsoNormal" style="margin: 0in -1in 0.0001pt 0.3in; text-align: justify; text-indent: -0.3in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.31<span style=""> </span><b>What are the differences between a Temporary Storage Queue (TSQ) and Transient Data Queue (TDQ)?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The differences between a Temporary Storage Queue (TSQ) and Transient Data Queue (TDQ) are :<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Temporary Storage Queue name are dynamically defined in the application program, while Temporary Data Queues must first be defined in the DCT (Destination Control Table).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">When a TDQ contains a certain amount of records (trigger level), a CICS transaction can be started automatically. This does not happen when using a TSQ.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">TDQ (extrapartition) may be used by batch by batch application; TSQ cannot be accessed in-batch. The Transient Data Queue is actually a QSAM file.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">You may update an existing item in a TSQ. A record in a TDQ cannot be updated.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Records in TSQ can be read randomly. The TDQ can be read only sequentially.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Records in Temporary Storage can be read more than once, while records stored in Temporary Data Queues cannot. With TDQs it is “one read” only.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.32<span style=""> </span><b>What will happen if a task issues an EXEC CICS DELETEQ TD against an Extrapartition Transient Data Queue?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>An invalid request exceptional condition will occur. The default action is that the task will be terminated.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.33<span style=""> </span><b>In an in-line environment, how can you prevent more than one user from accessing the same Transient Data Queue at the same time?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>By issuing an EXEC CICS ENQ against the resource. When processing is completed a DEQ should be executed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.44<span style=""> </span><b>Is there any way of releasing a resource previously enqueued by a task other than by issuing an EXEC CICS DEQ command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A:<span style=""> </span>You can issue a SYNCPOINT command.<span style=""> </span>You can also RETURN control to CICS, as CICS automatically release a resource when a task is terminated.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.45<span style=""> </span><b>When an application is invoked via. the EXEC CICS START command with the FROM option, how does the application gain access to the common area?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>An EXEC CICS RETRIEVE command will access the common area.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.46<span style=""> </span><b>What happens when an EXEC CICS SYNCPOINT is issued?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The Logical Unit of Work (LUW) is terminated. Everything on the Deferred Work Element (DWE) chain is cleaned up. If Dynamic Transaction Backout (DTB) is on, everything is committed. GETMAIN areas are freed. File locks are released. I/O areas and linkage sections are released.<span style=""> </span>Browses are terminated. Working storage is not affected.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.47<span style=""> </span><b>What is a Logical Unit of Work?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A:<span style=""> </span>A Logical Unit of Work is all the processing that takes place between two "sync points."<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.48<span style=""> </span><b>The DFHCOMMAREA is used to pass information from one application to another.<span style=""> </span>What are some other ways that this<span style=""> </span>function can be accomplished?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You can also pass information in the following ways :<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">By using a Temporary Storage Queue<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">By using an intrapartition TDQ<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">By using the Task Work Area<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">By using TCTUA<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Through a file<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.49<span style=""> </span><b>How do you define a Task Work Area?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A.<span style=""> </span>By defining it in on the PCT (the Program Control Table).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.50<span style=""> </span><b>What is stored in the Temporary Storage Table?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The TST contains the names of Temporary Storage Queues that are to be recovered in the event of an abend.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.51<span style=""> </span><b>What information do you get when an EXEC ASSIGN STARTCODE is issued?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A:<span style=""> </span>You will be able to determine if the application was started by :<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">a transient data trigger level (QD)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">a START command (S,SD)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">user (U) or terminal input (TD)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Distributed Program Link (D, DS)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.52<span style=""> </span><b>Which CICS command must be issued by the application in order to gain access to the Common Work Area (CWA)?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>EXEC CICS ADDRESS with CWA option.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.53<span style=""> </span><b>In which CICS table would you specify the length of TASK WORK AREA (TWA)?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>In the Program Control Table (PCT).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.54<span style=""> </span><b>Explain the function performed by the Program Control Table (PCT)?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The PCT defines relationship between a transaction and an application program.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.55<span style=""> </span><b>When a data table is loaded into memory using the EXEC LOAD command, how does the application program free that memory when the table is no longer needed?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>By coding an EXEC CICS RELEASE command with the program option.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.56<span style=""> </span><b>What is the function of HOLD option in the EXEC CICS LOAD command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>When a program is loaded from the CICS DFHRPL concatenation library (into main storage), the HOLD option will result in the program remaining in memory after the task terminates.<span style=""> </span>When this option is not specified, main storage is automatically released by CICS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.57<span style=""> </span><b>Explain the function of the File Control Program (FCP)?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A.<span style=""> </span>The FCP provides the application program with the ability to read, browse, add, delete, and update records in a file defined in the FCT.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.58<span style=""> </span><b>What is the function of File Control Table?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>It defines the file and contains characteristics of the dataset.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.59<span style=""> </span><b>If an application has a VSAM/KSDS file READ command with the update option and it finds that the update is no longer required, how does the application release the exclusive control of the record read?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>By executing an EXEC CICS UNLOCK command with the File or Dataset option. A SYNCPOINT will also release the exclusive control.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.60<span style=""> </span><b>What is a deadlock?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>Deadlock (also known as a "deadly embrace") occurs when a task is waiting for a resource held by another task which in turn is waiting for a resource held by the first task.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.61<span style=""> </span><b>Which CICS program is responsible for the management of DSA (the Dynamic Storage Area)?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The storage Control Program (SCP).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.62<span style=""> </span><b>What happens when an application issues an EXEC CICS GETMAIN command to obtain main storage and SHARED option is specified?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A:<span style=""> </span>There is no automatic release of the obtained storage at the end of task which requested it.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.63<span style=""> </span><b>How can an application release main storage acquired by an EXEC CICS GETMAIN command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>By coding an EXEC CICS FREEMAIN command with the data. SYNCPOINT will also release the storage area.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.64<span style=""> </span><b>What is the function of the REQID in the EXEC CICS STARTBR command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>When you have multiple browse operations at the same time on the same file, the REQID must be coded on the READ Next/Prev command to distinguish one browse from the other.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.65<span style=""> </span><b>Which CICS command must the application program issue to terminate a browse?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>An EXEC CICS ENDR command. SYNCPOINT also ends the browse.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.66<span style=""> </span><b>What is the function of the EXEC CICS RESETBR Command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>To reposition the browse (with VSAM files this can be done just by altering the RIDFLD) and to change the characteristics specified on the STARTBR command without ending the browse.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.67<span style=""> </span><b>When debugging a CICS application, why would you use the CEBR command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>To view the contents of the TSQ or TDQ.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.68<span style=""> </span><b>Mention some of the most common operations you can perform with the CEMT CICS transaction?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>Create a new copy of an application program<span style=""> </span></span><span style="font-size: 9pt; font-family: Arial;" lang="EN-GB">CEMT S PR(prgname) NEW</span><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Close a file from CICS<span style=""> </span></span><span style="font-size: 9pt; font-family: Arial;" lang="EN-GB">CEMT S DA(filename) CLO UNE</span><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Disable a transaction<span style=""> </span></span><span style="font-size: 9pt; font-family: Arial;" lang="EN-GB">CEMT S TRANS(transid) Dis</span><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.69<span style=""> </span><b>What is the function of the CEDA transaction?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>It is used to perform the Resource Definition on-line operation (RDO). It adds, deletes, and changes table entries.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.70<span style=""> </span><b>What CICS command does the application have to issue to update an existing record in a VSAM/KSDS file?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The EXEC CICS REWRITE command.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.71<span style=""> </span><b>What CICS command does the application have to issue to update an existing record in a TS queue?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The EXEC CICS WRITE command with the rewrite option and the item number.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.72<span style=""> </span><b>What is the purpose of CICS BIF DEEDIT?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A.<span style=""> </span>To remove all characters other than digits from an alphanumeric field. Remaining digits will be right-justified and padded with zeros as necessary.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.73<span style=""> </span><b>What is the Base Locator for Linkage (BLL) used for?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The BLL is used to address storage outside the working-storage section of the application program. A set of BLL cells is also known as the parameter list. It is not used (explicitly) in COBOI II, although the BLL cells can be found in the TGT of a COBOL II program.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.74<span style=""> </span><b>Explain the term "transaction routing".</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>Transaction routing is a CICS "mode" of intercommunication which allows a terminal connected to local CICS to execute another transaction owned by a remote CICS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.75<span style=""> </span><b>Explain the term "function request shipping".</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>Function request shipping is one of the CICS modes of intercommunication which allows an application program in a local CICS to access resources owned by a remote CICS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.76<span style=""> </span><b>Explain the term "MRO" (Multi-Region Operation)?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A:<span style=""> </span>MRO is the mechanism by which different CICS address spaces within the same CPU can communicate and share resources.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.77<span style=""> </span><b>If, when executing a "READ INTO" command, the length of actual (variable) length record exceeds the length specified in LENGTH option, what will happen (if anything)?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You will get a LENGERR.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.78<span style=""> </span><b>When a second READ WITH UPDATE is given against the same file in the stripe task prior to releasing the file, what will happen?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>An INVREQ will take place.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.79<span style=""> </span><b>How could you prevent such an error?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>After the first read and prior to the second read you could :<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span lang="EN-GB">________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________stright </span><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Execute a REWRITE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Execute a SYNCPOINT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.80<span style=""> </span><b>Name one condition that would result in the inability to execute a backward browse?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>If you issue a STARTBR with a generic key, a backward browse will not work.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.81<span style=""> </span><b>Name one condition that would result in the inability to execute a backward browse?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>If you issue a STARTBR with a generic key, a backward browse will not work.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.82<span style=""> </span><b>You have duplicate keys and you have loaded an alternate index into RIDFLD. What would happen if you issued a READNEXT after switching from a direct retrieval read?<o:p></o:p></b></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You would<b> </b>get the same record twice.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.83<span style=""> </span><b>You are doing a mass delete using a generic key. What could you do to determine the number of records that have been deleted?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You would use the NUMREC (data area) option with the generic key. Upon completion of the mass delete, the data area would contain a count of the number of records that were deleted.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.84<span style=""> </span><b>How should the data area used with the NUMREC option be defined?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>S9(4) COMP.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.85<span style=""> </span><b>Which command will terminate a VSAM mass insert operation?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>An UNLOCK command.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.86<span style=""> </span><b>Which command(s) will deblock DAM files?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>DEBKEY will deblock by key.<span style=""> </span>DEBREC will deblock by relative record number.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.87<span style=""> </span><b>What could cause you to get an INVREQ when building a logical message to a screen?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You have changed the disposition specified while building a logical message.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.88<span style=""> </span><b>What could cause you to get a MAPFAIL when issuing a RECEIVE MAP command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You would get a MAPFAIL if no data was transferred from the screen.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.89<span style=""> </span><b>What command would you issue if you wanted to discontinue building a logical message?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You would issue a PURGE MESSAGE command.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.90<span style=""> </span><b>Can you intermix a SEND TEXT and a SEND MAP when building portions of a logical message?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>No, you cannot intermix these two commands.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.91<span style=""> </span><b>How do you release page buffers?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>By issuing a FREEMAIN command.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.91<span style=""> </span><b>What do you have to do to determine if data was sent (from a screen) from a specific (single) field?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You have to check the MDT for that field.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.92<span style=""> </span><b>Which command would you issue to get data in a task that was started by a START command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You would issue a RETRIEVE command.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.93<span style=""> </span><b>What would happen if you issued a READNEXT TS command and there were no more data in the queue?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You would get an ITEMERR.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.94<span style=""> </span><b>You have a DL/I file and you want to issue a READPREV. Will it work correctly?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You can issue a READPREV only against a VSAM file.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.95<span style=""> </span><b>Can you issue a BROWSE command in a CICS program that is pseudo conversational?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>Yes, but the BROWSE will terminate at the end of each task in the session, it will not carry over.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.96<span style=""> </span><b>What are the two ways to "set up” a browse starting with the first record in the file?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>You can :<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Set the complete key equal to hex zeros (the default option is GTEQ).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">You can specify KEYLENGTH(0) and GENERIC options.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.97<span style=""> </span><b>In a VSAM file, when you want to do a mass delete, the file has to be unprotected. How can you specify to the system that a file is unprotected?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>In the FCT you set LOG = NO.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.98<span style=""> </span><b>When you are sending your first data screen to the terminal, it is recommended that you specify the ERASE option.<span style=""> </span>Why?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>If you do not include the ERASE option, the screen size will be the same as the previous screen size setting ... and this may not be correct. There may also be material on the screen which would remain if not overlaid by fields of your map.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.99<span style=""> </span><b>Which key, if depressed by the terminal operator, will set the screen size to its default size?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The CLEAR key.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.100<span style=""> </span><b>Does a HANDLE CONDITION command take precedence over a HANDLE AID command?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>No, the HANDLE AID takes precedence.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.101<span style=""> </span><b>What does the BMS ROUTE command do?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The ROUT E command initiates the building of a logical message that will be scheduled for delivery to one or more terminals.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.102<span style=""> </span><b>What has happened if you abend with an “APCT"?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The program tried to execute a program that was either :<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Not defined in the PPT or active RDO group<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Disabled<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.103<span style=""> </span><b>What does the ERASEUP command do?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>The ERASEUP command includes :<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Clears all MDTs<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Unlocks the keyboard<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Erases all unprotected fields<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt; font-family: Symbol;" lang="EN-GB"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Positions the cursor at the first unprotected field<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.104<span style=""> </span><b>What will happen if you issue an XCTL or a LINK and the called program cannot be found?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A:<span style=""> </span>You will get a PGMIDERR.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">Q.105<span style=""> </span><b>What happens to the exception (HANDLE CONDITION, HANDLE ABEND, HANDLE AID) condition settings in a called routine once control has been transferred to the called routine?</b><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB">A<span style=""> </span>Once you are in the called routine, all condition settings are deactivated.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt; font-family: Arial;" lang="EN-GB"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-18545096330425242982008-07-17T23:10:00.000-07:002008-12-23T21:45:21.639-08:00COBOL Questionaire<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1; mso-endnote-numbering-style:arabic; mso-endnote-numbering-start:0;} /* List Definitions */ @list l0 {mso-list-id:-2; mso-list-type:simple; mso-list-template-ids:-1941036166;} @list l0:level1 {mso-level-start-at:0; mso-level-number-format:bullet; mso-level-text:*; mso-level-tab-stop:none; mso-level-number-position:left; margin-left:0in; text-indent:0in;} @list l0:level1 lfo1 {mso-level-numbering:continue; mso-level-text:; mso-level-tab-stop:none; mso-level-number-position:left; mso-level-legacy:yes; mso-level-legacy-indent:.25in; mso-level-legacy-space:0in; margin-left:0in; text-indent:0in; font-family:Symbol;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal" style="margin-left: 2in; text-indent: 0.5in;"><span style="font-family: Arial;">
<br /></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">1.Name the divisions in a COBOL program. - GS <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">IDENTIFICATION DIVISION, ENVIRONMENT DIVISION, DATA DIVISION, PROCEDURE DIVISION.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">2.What are the different data types available in COBOL?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Alpha-numeric (X), alphabetic (A) and numeric (9).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">3.What does the INITIALIZE verb do?<span style=""> </span>- GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><span style=""> </span>Alphabetic, Alphanumeric fields & alphanumeric edited items are set to SPACES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Numeric, Numeric edited items set to ZERO.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">FILLER , OCCURS DEPENDING ON items left untouched.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">4.What is level 66 used for ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">For RENAMES clause.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">5.What is 77 level used for ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Elementary level item. Cannot be subdivisions of other items (cannot be qualified), nor can they be subdivided themselves.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">6.What is 88 level used for ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">For condition names.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">7.What does the IS NUMERIC clause establish ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">IS NUMERIC can be used on alphanumeric items, signed numeric & packed decimal items and unsigned numeric & packed decimal items. (IS NUMERIC) returns TRUE if the item only consists of 0-9. However, if the item being tested is a signed item, then it may contain 0-9,<span style=""> </span>+ and -.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">8.How do you define a table/array in COBOL?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">01<span style=""> </span>ARRAYS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: Arial;">05<span style=""> </span>ARRAY1<span style=""> </span>PIC X(9) OCCURS 10 TIMES.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: Arial;">05<span style=""> </span>ARRAY2<span style=""> </span>PIC X(6) OCCURS 20 TIMES INDEXED BY WS-INDEX.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">9.Can the OCCURS clause be at the 01 level?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">No.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">10.What is the difference between index and subscript? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Subscript refers to the array occurrence number while index is the displacement (in no of bytes) from the beginning of the array. An index can only be modified using PERFORM, SEARCH & SET. But for subscript we can use ADD, MOVE statements. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">Need to have index for a table in order to use SEARCH, SEARCH ALL.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">11.What is the difference between SEARCH and SEARCH ALL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">SEARCH - is a serial search.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">SEARCH ALL - is a binary search & the table must be sorted<span style=""> </span>(ASCENDING/DESCENDING KEY clause to be used & data loaded in this order) before using SEARCH ALL.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">12.What should be the sorting order for SEARCH ALL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">It can be either ASCENDING or DESCENDING.<span style=""> </span>ASCENDING is default.<span style=""> </span>If you want the search to be done on an array sorted in descending order, then while defining the array, you should give DESCENDING KEY clause. (You must load the table in the specified order).<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">13.What is binary search?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Search on a sorted array.<span style=""> </span>Compare the item to be searched with the item at the center.<span style=""> </span>If it matches, fine else repeat the process with the left half or the right half depending on where the item lies.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">14.My program has an array defined to have 10 items.<span style=""> </span>Due to a bug, I find that even if the program access the 11th item in this array, the program does not abend.<span style=""> </span>What is wrong with it?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Must use compiler option SSRANGE if you want array bounds checking. Default is NOSSRANGE.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">15.How do you sort in a COBOL program?<span style=""> </span>Give sort file definition, sort statement syntax and meaning. - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-family: Arial;">Syntax:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">SORT file-1 ON ASCENDING/DESCENDING KEY key....<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">USING file-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">GIVING file-3.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">USING can be substituted by INPUT PROCEDURE IS para-1 THRU para-2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">GIVING can be substituted by OUTPUT PROCEDURE IS para-1 THRU para-2.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">file-1 is the sort workfile and must be described using SD entry in FILE SECTION.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">file-2 is the input file for the SORT and must be described using an FD entry in FILE SECTION and SELECT clause in FILE CONTROL. <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">file-3 is the outfile from the SORT and must be described using an FD entry in FILE SECTION and SELECT clause in FILE CONTROL.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">file-1, file-2 & file-3 should not be opened explicitly.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">INPUT PROCEDURE is executed before the sort and records must be RELEASEd to<span style=""> </span>the sort work file from the input procedure.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">OUTPUT PROCEDURE is executed after all records have been sorted. Records from the sort work file must be RETURNed one at a time to the output procedure.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">16.How do you define a sort file in JCL that runs the COBOL program?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Use the SORTWK01, SORTWK02,..... dd names in the step. Number of sort datasets depends on the volume of data being sorted, but a minimum of 3 is required.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">17.What are the two ways of doing sorting in a COBOL program?<span style=""> </span>Give the formats. - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">See question 16.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">18.Give the format of USING and GIVING in SORT statement.<span style=""> </span>What are the restrictions with it? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">See question 16. Restrictions - Cannot massage records, cannot select records to be sorted.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">19.What is the difference between performing a SECTION and a PARAGRAPH? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">Performing a SECTION will cause all the paragraphs that are part of the section, to be performed. <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Performing a PARAGRAPH will cause only that paragraph to be<span style=""> </span>Performed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">20.What is the use of EVALUATE statement? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Evaluate is like a case statement and can be used to replace nested Ifs. The difference between EVALUATE and case is that no 'break' is required for EVALUATE i.e. control comes out of the EVALUATE as soon as one match is made.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">21.What are the different forms of EVALUATE statement?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">EVALUATE<span style=""> </span>EVALUATE SQLCODE ALSO FILE-STATUS<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">WHEN A=B AND C=D<span style=""> </span>WHEN 100 ALSO '00'<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">WHEN (D+X)/Y = 4<span style=""> </span>WHEN -305 ALSO '32'<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">WHEN OTHER<span style=""> </span>WHEN OTHER<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">END-EVALUATE<span style=""> </span>END-EVALUATE<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">EVALUATE SQLCODE ALSO A=B<span style=""> </span>EVALUATE SQLCODE ALSO TRUE<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">WHEN 100 ALSO TRUE<span style=""> </span>WHEN 100 ALSO A=B<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">WHEN -305 ALSO FALSE<span style=""> </span>WHEN -305 ALSO (A/C=4)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span>imperative stmt<span style=""> </span>imperative stmt<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">END-EVALUATE<span style=""> </span>END-EVALUATE<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">22.How do you come out of an EVALUATE statement? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">After the execution of one of the when clauses, the control is automatically passed on to the next sentence after the EVALUATE statement.<span style=""> </span>There is no need of any extra code.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">23.In an EVALUATE statement, can I give a complex condition on a when clause?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Yes.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">24.What is a scope terminator?<span style=""> </span>Give examples.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Scope terminator is used to mark the end of a verb e.g. EVALUATE, END-EVALUATE; IF, END-IF; PERFORM, END-PERFORM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">25.How do you do in-line PERFORM? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">PERFORM ... <until> ... <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><sentences><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><span style=""> </span>END PERFORM<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">26.When would you use in-line perform?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">When the body of the perform will not be used in other paragraphs. If the body of the perform is a generic type of code (used from various other places in the program), it would be better to put the code in a separate para and use PERFORM paraname rather than in-line perform.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">27.What is the difference between CONTINUE & NEXT SENTENCE ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">CONTINUE is like a null statement (do nothing) , while NEXT SENTENCE transfers control to the next sentence (!!) (A sentence is terminated by a period)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">28.What does EXIT do ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">Does nothing ! If used, must be the only sentence within a paragraph.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">29.Can I redefine an X(100) field with a field of X(200)?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Yes. Redefines just causes both fields to start at the same location. For example:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">01 WS-TOP PIC X(1)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">01 WS-TOP-RED REDEFINES WS-TOP PIC X(2).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">If you MOVE '12' to WS-TOP-RED, <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">DISPLAY WS-TOP will show 1 while <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">DISPLAY WS-TOP-RED will show 12. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">30.Can I redefine an X(200) field with a field of X(100) ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Yes.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">31.What do you do to resolve SOC-7 error? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">Basically you need to correcting the offending data.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Many times the reason for SOC7 is an un-initialized numeric item. Examine that possibility first.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Many installations provide you a dump for run time abends (it can be generated also by calling some subroutines or OS services thru assembly language).<span style=""> </span>These dumps provide the offset of the last instruction at which the abend occurred.<span style=""> </span>Examine the compilation output XREF listing to get the verb and the line number of the source code at this offset.<span style=""> </span>Then you can look at the source code to find the bug.<span style=""> </span>To get capture the runtime dumps, you will have to define some datasets (SYSABOUT etc) in the JCL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">If none of these are helpful, use judgement and DISPLAY to localize the source of error.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">Some installation might have batch program debugging tools.<span style=""> </span>Use them.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">32.How is sign stored in Packed Decimal fields and Zoned Decimal fields?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Packed Decimal fields: Sign is stored as a hex value in the last nibble (4 bits) of the storage.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Zoned Decimal fields: As a default, sign is over punched with the numeric value stored in the last bite.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">33.How is sign stored in a comp-3 field? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">It is stored in the last nibble. For example if your number is +100, it stores hex 0C in the last byte, hex 1C if your number is 101, hex 2C if your number is 102, hex 1D if the number is -101, hex 2D if the number is -102 etc...<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">34.How is sign stored in a COMP field ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">In the most significant bit. Bit is on if -ve, off if +ve.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">35.What is the difference between COMP & COMP-3<span style=""> </span>?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">COMP is a binary storage format while COMP-3 is packed decimal format.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">36.What is COMP-1? COMP-2?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">COMP-1 - Single precision floating point. Uses 4 bytes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">COMP-2 - Double precision floating point. Uses 8 bytes.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">37.How do you define a variable of COMP-1?<span style=""> </span>COMP-2?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">No picture clause to be given. Example 01 WS-VAR USAGE COMP-1.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">38.How many bytes does a S9(7) COMP-3 field occupy ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">Will take 4 bytes. Sign is stored as hex value in the last nibble.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">General formula is INT((n/2) + 1)), where n=7 in this example.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">39.How many bytes does a S9(7) SIGN TRAILING SEPARATE field occupy ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">Will occupy 8 bytes (one extra byte for sign).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">40.How many bytes will a S9(8) COMP field occupy ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">4 bytes. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">41.What is the maximum value that can be stored in S9(8) COMP?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">99999999<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">42.What is COMP SYNC?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Causes the item to be aligned on natural boundaries. Can be SYNCHRONIZED LEFT or RIGHT.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">For binary data items, the address resolution is faster if they are located at word boundaries in the memory.<span style=""> </span>For example, on main frame the memory word size is 4 bytes.<span style=""> </span>This means that each word will start from an address divisible by 4.<span style=""> </span>If my first variable is x(3) and next one is s9(4) comp, then if you do not specify the SYNC clause, S9(4) COMP will start from byte 3 ( assuming that it starts from 0 ).<span style=""> </span>If you specify SYNC, then the binary data item will start from address 4. You might see some wastage of memory, but the access to this computational<span style=""> </span>field is faster.<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">43.What is the maximum size of a 01 level item in COBOL I?<span style=""> </span>in COBOL II?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">In COBOL II: 16777215<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">44.How do you reference the following file formats from COBOL programs:<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Fixed Block File<span style=""> </span>- Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK CONTAINS 0 .<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Fixed Unblocked - Use ORGANISATION IS SEQUENTIAL. Use RECORDING<span style=""> </span>MODE IS F, do not use BLOCK CONTAINS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Variable BLOCK File - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, BLOCK CONTAINS 0. Do not code the 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Variable Unblocked - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS V, do not use BLOCK CONTAINS. Do not code 4 bytes for record length in FD ie JCL rec length will be max rec length in pgm + 4.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">ESDS VSAM file - Use ORGANISATION IS SEQUENTIAL. <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">KSDS VSAM file - Use ORGANISATION IS INDEXED, RECORD KEY IS, ALTERNATE RECORD KEY IS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">RRDS File - Use ORGANISATION IS RELATIVE, RELATIVE KEY IS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Printer File - Use ORGANISATION IS SEQUENTIAL. Use RECORDING MODE IS F, BLOCK CONTAINS 0. (Use RECFM=FBA in JCL DCB).<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">45.What are different file OPEN modes available in COBOL?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Open for INPUT, OUTPUT, I-O, EXTEND.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">46.What is the mode in which you will OPEN a file for writing? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">OUTPUT, EXTEND<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">47.In the JCL, how do you define the files referred to in a subroutine ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Supply the DD cards just as you would for files referred to in the main program. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">48.Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Can rewrite(record length must be same), but not delete.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">49.What is file status 92? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Logic error. e.g., a file is opened for input and an attempt is made to write to it.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">50.What is file status 39 ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL pgm & the JCL (or the dataset label). You will get file status 39 on an OPEN.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">51.What is Static, Dynamic linking ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">In static linking, the called subroutine is link-edited into the calling program while in dynamic linking, the subroutine & the main program will exist as separate load modules. You choose static/dynamic linking by choosing either the DYNAM or NODYNAM link edit option. (Even if you choose NODYNAM, a CALL identifier (as opposed to a CALL literal), will translate to a DYNAMIC call).<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">A statically called subroutine will not be in its initial state the next time it is called unless you explicitly use INITIAL or you do a CANCEL. A dynamically called routine will always be in its initial state.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">52.What is AMODE(24), AMODE(31), RMODE(24) and RMODE(ANY)?(Applicable to only MVS/ESA Enterprise Server).<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 14.2pt;"><span style="font-family: Arial;">These are compile/link edit options.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 14.2pt;"><span style="font-family: Arial;">AMODE<span style=""> </span>- Addressing mode. RMODE - Residency mode.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt;"><span style="font-family: Arial;">AMODE(24) - 24 bit addressing. AMODE(31) - 31 bit addressing. AMODE(ANY) - Either 24 bit or 31 bit addressing depending on RMODE.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 14.2pt;"><span style="font-family: Arial;">RMODE(24) - Resides in virtual storage below 16 Meg line. Use this for 31 bit programs that call 24 bit programs. (OS/VS Cobol pgms use 24 bit addresses only).<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 14.2pt;"><span style="font-family: Arial;">RMODE(ANY) - Can reside above or below 16 Meg line.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">53.What compiler option would you use for dynamic linking?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">DYNAM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">54.What is SSRANGE, NOSSRANGE ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">These are compiler options w.r.t subscript out of range checking. NOSSRANGE is the default and if chosen, no run time error will be flagged if your index or subscript goes out of the permissible range.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">55.How do you set a return code to the JCL from a COBOL program?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Move a value to RETURN-CODE register. RETURN-CODE should not be declared in your program.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">56.How can you submit a job from COBOL programs?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">Write JCL cards to a dataset with <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -3.3pt;"><span style="font-family: Arial;">//xxxxxxx SYSOUT=(A,INTRDR) where 'A' is output class, and dataset should be opened for output in the program. Define a 80 byte record layout for the file.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">57.What are the differences between OS VS COBOL and VS COBOL II?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">OS/VS Cobol pgms can only run in 24 bit addressing mode, VS Cobol II pgms can run either in 24 bit or 31 bit addressing modes.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt;"><span style="font-family: Arial;">Report writer is supported only in OS/VS Cobol.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">USAGE IS POINTER is supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">Reference modification eg: WS-VAR(1:2) is supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">EVALUATE is supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">Scope terminators are supported only in VS COBOL II.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">OS/VS Cobol follows ANSI 74 stds while VS COBOL II follows ANSI 85 stds.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Under CICS Calls between VS COBOL II programs are supported.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">58.What are the steps you go through while creating a COBOL program executable?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">db2 precompiler(if embedded sql used), CICS translator (if CICS pgm), Cobol compiler, Link editor.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">If DB2 program, create plan by binding the DBRMs.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">59.Can you call an OS VS COBOL pgm from a VS COBOL II<span style=""> </span>pgm ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">In non-CICS environment, it is possible. In CICS, this is not possible.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span>VSAM<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">60.What are the different types of VSAM files available?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">ESDS:<span style=""> </span>Entry Sequence Data Set<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">KSDS:<span style=""> </span>Key Sequence Data Set<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">RRDS:<span style=""> </span>Relative Data Set<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">61.What is IDCAMS ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">IDCAMS is the Access Method Services program. You run the IDCAMS program and supply AMS commands thru SYSIN. (examples of AMS commands are DELETE, DEFINE, REPRO etc..).<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">62.Can AMS commands be run from the TSO prompt ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Yes<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">63.Syntax of<span style=""> </span>AMS modal commands ? <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Note: these can be used only under IDCAMS and not from the TSO prompt.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">IF LASTCC(or MAXCC)<span style=""> </span>>(or <,= etc..) value - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">THEN - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">DO - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><span style=""> </span>command set (such as DELETE, DEFINE etc..) <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">ELSE - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">DO - <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><span style=""> </span>command set <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">LASTCC<span style=""> </span>- Condition code from the last function(such as delete) executed<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">MAXCC - Max condition code that was returned by any of the prev functions<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">SET is also a valid AMS command. SET LASTCC (or MAXCC) = value<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">The maximum condition code is 16. A cond code of 4 indicates a warning. A cond code of 8 is usually encountered on a DELETE of a dataset that is not present.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">.Under IDCAMS , multiple functions can be executed, each of which returns a cond code. What will be the condition code returned to the operating system?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">The maximum condition code generated is returned as the condition code of the IDCAMS step. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">64.What is Control Interval, Control Area<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Control Interval is analogous to a physical block for QSAM files. It is the unit of i/o. Must be between 512 bytes to 32 k. Usually either 2K or 4K. A larger control interval increases performance for sequential processing while the reverse is true for random access. Under CICS when a record is locked, the entire CI gets locked.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Control area is a group of control intervals. CA is used during allocation. CA size is calculated based on the allocation type (cyl, tracks or records) and can be max of 1 cylinder<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">65.What is FREESPACE ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Coded in the DEFINE as FREESPACE(ci ca) where ci is the percentage of each control interval to be left free for insertions, ca is the percentage of control intervals in each control area to be left empty.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">66.How do you decide on optimum values for CI, FREESPACE etc...<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">CI size should be based on record length, type of processing. Usually CI is 4K. If record length is larger(>1K), chose 6K or 8K. <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">FREESPACE should be large if more number of insertions are envisaged. Usual values are (20 20) when heavy updates are expected. CI size can be calculated.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">67.Would you specify FREESPACE for an ESDS?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">No. Because you cannot insert records in an ESDS, also when you rewrite a record, it must be of the same length. Thus putting any value for freespace does not make any sense.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">68.What is SHAREOPTS ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">SHAREOPTS is a parameter in the DEFINE and specifies how an object can be shared among users. It is coded as SHAREOPTS(a b), where a is the cross region share option ie how two or more jobs on a single system can share the file, while b is the cross system share option ie how two or more jobs on different MVSes can share the file. Usual value is (2 3).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">69.What is the meaning of each of the values in SHAREOPTS(2 3)?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Value of 2 for cross region means that the file can be processed simultaneously by multiple users provided only one of them is an updater. Value of 3 for cross system means that any number of jobs can process the file for input or output (VSAM does nothing to ensure integrity).<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">70.How do you define a KSDS ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">DEFINE CLUSTER(cluster name) with the INDEXED parameter. Also specify the ds name for the DATA component & the ds INDEX component. Other important parms are RECORDSIZE, KEYS, SHAREOPTIONS.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">71.How do you define an ALTINDX ? How do you use ALTINDXs in batch, CICS pgms ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">DEFINE ALTERNATEINDEX. Important paramters are RELATE where you specify the base cluster name, KEYS, RECORDSIZE,SHAREOPTIONS,UNIQUEKEY(or NONUNIQUEKEY), DATA(ds name for the data component), INDEX(ds name for the index component).<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">Then DEFINE PATH. Important paramters are NAME (ds name for the path), PATHENTRY (ds name of the alternate index name), UPDATE(or NOUPDATE) which specifies whether an alt index is updated when a update to the base cluster takes place.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">Then BLDINDEX. Parameters are INDATASET(ds name of base cluster), OUTDATASET(ds name of AIX).<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">Using alternate indexes in batch pgms:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 21.3pt;"><span style="font-family: Arial;">In the JCL, you must have DD stmts for the cluster and for the path(s). In the cobol pgm, SELECT .. ASSIGN TO ddname for base cluster RECORD KEY IS... ALTERNATE RECORD KEY IS..<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;">Using alternate indexes in CICS pgms:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21.3pt; text-indent: -21.3pt;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">FCT entries must be created for both base cluster & the path. To read using the alternate index, use the dd name of the path in CICS file control commands.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">72.What happens when you open an empty VSAM file in a COBOL program for input?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">A VSAM file that has never contained a record is treated as unavailable. Attempting to open for input will fail. An empty file can be opened for output only. When you open for output, COBOL will write a dummy record to the file & then delete it out.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">73.How do you initialize a VSAM file before any operation? a VSAM with alternate index?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Can write a dummy program that just opens the file for output & then closes it. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">74.What does a file status of 02 on a VSAM indicate?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Duplicate alternate key . Happens on both input and output operation<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">75.How do you calculate record size of an alternate cluster?<span style=""> </span>Give your values for both unique and non-unique.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">Unique Case:<span style=""> </span>5 + ( alt-key-length + primary-key )<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">Nonunique Case: 5 + ( alt-key-length + n * primary-key )<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><span style=""> </span><span style=""> </span>where n = # of duplicate records for the alternate key<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">???? Ramesh - can you explain ?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">76.What is the difference between sequential files and ESDS files?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Sequential (QSAM) files can be created on tape while ESDS files cannot. Also, you can have ALTINDEX for an ESDS while no such facility exists for QSAM files.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">77.How do you load a VSAM data set with records ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Using the REPRO command. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">78.How do you define a GDG ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Use the DEFINE GENERATIONDATAGROUP command. In the same IDCAMS step, another dataset must be defined whose DCB parameters are used when new generations of the GDG are created. This dataset is known as the model dataset. The ds name of this model dataset must be the same as that of the GDG, so use a disp of keep rather than catlg and also specify space=(trk,0)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">79.Do all versions of the GDG have to be of the same record length ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">No, the DCB of the model dataset can be overridden when you allocate new versions.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">80.How are different versions of GDG named ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">base-file-name.GnnnnnV00 where nnnn= generation number (upto 255).<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">nnnn will be 0000 for the 1st generation.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">.Suppose 3 generations of a GDG exist. How would you reference the<span style=""> </span>1 st generation in the JCL? - GS<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">Use GDG name(-2).<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">.Suppose a generation of GDG gets created<span style=""> </span>in a particular step of a proc. How would you refer the current<span style=""> </span>generation in a subsequent step? What would be the disposition of<span style=""> </span>this generation now? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Relative generation numbers are updated only at the end of the job, not at the end of a step. To allocate a new generation, we would be using (+1) with a DISP of<span style=""> </span>(NEW,CATLG,DELETE). To refer to this in a subsequent step in the same job, we would again use (+1) but with a DISP of SHR or OLD.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">81.What more info you should give in the DD statement while defining the next generation of a GDG? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Give (+1) as the generation number, give (new,catlg) for disp, give space parameter, can give the dcb parameter if you want to override the dcb of the model dataset.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="background: aqua none repeat scroll 0% 0%; font-family: Arial; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">82.Assuming that the DEFINE jcl is not available, how do you get info about a VSAM file's organisation ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="background: aqua none repeat scroll 0% 0%; font-family: Arial; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Use the LISTCAT command.<o:p></o:p></span></p> <p class="MsoNormal"><span style="background: aqua none repeat scroll 0% 0%; font-family: Arial; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="background: aqua none repeat scroll 0% 0%; font-family: Arial; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">83.During processing of a VSAM file, some system error occurs and it is subsequently unusable . What do you do ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="background: aqua none repeat scroll 0% 0%; font-family: Arial; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;">Run VERIFY.</span><span style="font-family: Arial;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: center;" align="center"><span style="font-family: Arial;">JCL<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">84.What is primary allocation for a dataset?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">The space allocated when the dataset is first created.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">85.What is the difference between primary and secondary allocations for a dataset?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Secondary allocation is done when more space is required than what has already been allocated. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">86.How many extents are possible for a sequential file ? For a VSAM file ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">16 extents on a volume for a sequential file and 123 for a VSAM file.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">87.What does a disposition of (NEW,CATLG,DELETE) mean? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">That this is a new dataset and needs to be allocated, to CATLG the dataset if the step is successful and to delete the dataset if the step abends.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">88.What does a disposition of (NEW,CATLG,KEEP) mean? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">That this is<span style=""> </span>a new dataset and needs to be allocated, to CATLG the dataset if the step is successful and to KEEP but not CATLG the dataset if the step abends. Thus if the step abends, the dataset would not be catalogued and we would need to supply the vol. ser the next time we refer to it.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">89.How do you access a file that had a disposition of KEEP? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Need to supply volume serial no. VOL=SER=xxxx.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">90.What does a disposition of (MOD,DELETE,DELETE) mean ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">The MOD will cause the dataset to be created (if it does not exist),<span style=""> </span>and then the two DELETEs will cause the dataset to be deleted whether the step abends or not. This disposition is used to clear out a dataset at the beginning of a job. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">91.What is the DD statement for a output file?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Unless allocated earlier, will have the foll parameters: DISP=(NEW,CATLG,DELETE), UNIT , SPACE & DCB .<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">92.What do you do if you do not want to keep all the space allocated to a dataset? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Specify the parameter<span style=""> </span>RLSE ( release ) in the SPACE e.g. SPACE=(CYL,(50,50),RLSE)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">93.What is DISP=(NEW,PASS,DELETE) .?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">This is a new file and create it, if the step terminates normally, pass it to the subsequent steps and if step abends, delete it.<span style=""> </span>This dataset will not exist beyond the JCL.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">94.How do you create a temporary dataset?<span style=""> </span>Where will you use them?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Temporary datasets can be created either by not specifying any DSNAME or by specifying the temporary file indicator as in DSN=&&TEMP. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">We use them to carry the output of one step to another step in the same job. The dataset will not be retained once the job completes.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">95.How do you restart a proc from a particular step? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">In job card, specify RESTART=PROCSTEP.STEPNAME<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">where procstep = name of the jcl step that invoked the proc <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">and stepname = name of the proc step where you want execution to start<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">96.How do you skip a particular step in a proc/JOB? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Can use either condition codes or use the jcl control statement IF (only in ESA JCL)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">97.A PROC has five steps.<span style=""> </span>Step 3 has a condition code.<span style=""> </span>How can you override/nullify this condition code? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Provide the override on the EXEC stmt in the JCL as follows:<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">//STEP010 EXEC procname,COND.stepname=value<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">All parameters on an EXEC stmt in the proc such as COND, PARM have to be overridden like this.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">Example:<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">//STEP030 EXEC ANLY432M,COND.STEP010=(4,LT)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">98.How do you override a specific DDNAME/SYSIN in PROC from a JCL?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">//<stepname.dd> DSN=...<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">Example:<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">//STEP010.INPUTFILE DD DSN=TATAAPR.LB432M.P010.M01.EXT,<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">//<span style=""> </span>DISP=(NEW,CATLG,DELETE),<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">//<span style=""> </span>SPACE=(TRK,(150,50),RLSE),<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">//<span style=""> </span>DCB=(LRECL=115,RECFM=FB,BLKSIZE=0)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">99.What is NOTCAT 2 - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">This is an MVS message indicating that a duplicate catalog entry exists. E.g., if you already have a dataset with dsn = 'xxxx.yyyy' and u try to create one with disp new,catlg, you would get this error. the program open and write would go through and at the end of the step the system would try to put it in the system catalog. at this point since an entry already exists the catlg would fail and give this message. you can fix the problem by deleting/uncataloging the first data set and going to the volume where the new dataset exists(this info is in the msglog of the job) and cataloging it.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">100.What is 'S0C7' abend? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Caused by invalid data in a numeric field.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">101.What is a S0C4 error ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Storage violation error - can be due to various reasons. e.g.: READING a file that is not open, invalid address referenced due to subscript error.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: Arial;">Invalid address was referenced due to subscript error or bad parameter passed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: Arial;">In group move, receiving record variable length defined incorrectly.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: Arial;">Tried moving variable length record that was larger than target field size.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: Arial;">Tried to read or write a file which was not open Used DD DUMMY with logic that moves high values to FD.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">102.What are SD37, SB37, SE37 abends?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">All indicate dataset out of space. SD37 - no secondary allocation was specified. SB37 - end of vol. and no further volumes specified.<span style=""> </span>SE37 - Max. of 16 extents already allocated.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">103.What is S322 abend ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Indicates a time out abend. Your program has taken more CPU time than the default limit for the job class. Could indicate an infinite loop.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">104.Why do you want to specify the REGION parameter in a JCL step? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">To override the REGION defined at the JOB card level.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">REGION specifies the max region size. REGION=0K or 0M or omitting REGION means no limit will be applied.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">105.What does the TIME parameter signify ? What does TIME=1440 mean ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">TIME parameter can be used to overcome S322 abends for programs that genuinely need more CPU time. TIME=1440 means no CPU time limit is to be applied to this step.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">106.What is COND=EVEN ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Means execute this step even if any of the previous steps, terminated abnormally.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">107.What is COND=ONLY ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Means execute this step only if any of the previous steps, terminated abnormally.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">108.How do you check the syntax of a JCL without running it?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">TYPERUN=SCAN on the JOB card or use JSCAN.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">109.What does IEBGENER do?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Used to copy one QSAM file to another. Source dataset should be described using SYSUT1 ddname. Destination dataset should be decribed using SYSUT2. IEBGENR can also do some reformatting of data by supplying control cards via SYSIN.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">110.How do you send the output of a COBOL program to a member of<span style=""> </span>a PDS?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Code the DSN as pds(member) with a DISP of SHR. The disp applies to the pds and not to a specific member.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">111.I have multiple jobs ( JCLs with several JOB cards ) in a member.<span style=""> </span>What happens if I submit it?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Multiple jobs are submitted (as many jobs as the number of JOB cards). <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">112.I have a COBOL program that ACCEPTs some input data.<span style=""> </span>How do you code the JCL statment for this? ( How do you code instream data in a JCL? )<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">//SYSIN DD*<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">input data<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">input data<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">/*<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">113.Can you code instream data in a PROC ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">114. How do you overcome this limitation ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">One way is to code SYSIN DD DUMMY in the PROC, and then override this from the JCL with instream data.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">115.How do you run a COBOL batch program from a JCL?<span style=""> </span>How do you run a COBOL/DB2 program?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">To run a non DB2 program,<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">//STEP001 EXEC PGM=MYPROG<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">To run a DB2 program,<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">//STEP001 EXEC PGM=IKJEFT01<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">//SYSTSIN DD *<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">DSN SYSTEM(....)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">RUN PROGRAM(MYPROG)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">PLAN(.....)<span style=""> </span>LIB(....)<span style=""> </span>PARMS(...)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">/*<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">116.What is STEPLIB, JOBLIB?<span style=""> </span>What is it used for? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Specifies that the private library (or libraries) specified should be searched before the default system libraries in order to locate a program to be executed.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">STEPLIB applies only to the particular step, JOBLIB to all steps in the job.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">117.What is order of searching of the libraries in a JCL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">First any private libraries as specified in the STEPLIB or JOBLIB, then the system libraries such as SYS1.LINKLIB. The system libraries are specified in the linklist. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">118.What happens if both JOBLIB & STEPLIB is specified ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">JOBLIB is ignored.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">119.When you specify mutiple datasets in a JOBLIB or STEPLIB, what factor determines the order? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">The library with the largest block size should be the first one.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">120.How to change default proclib ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">//ABCD<span style=""> </span>JCLLIB ORDER=(ME.MYPROCLIB,SYS1.PROCLIB)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">.The disp in the JCL is MOD and the<span style=""> </span>program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Records will be written to end of file (append) when a WRITE is done in both cases.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">121.What are the valid DSORG values ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">PS - QSAM, PO - Partitioned, IS - ISAM<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">122.What are the differences between JES2 & JES3 ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">JES3 allocates datasets for all the steps before the job is scheduled. In JES2, allocation of datasets required by a step are done only just before the step executes. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: center;" align="center"><span style="font-family: Arial;">DB2<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">123.How would you find out the total number of rows in a table? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Use SELECT COUNT(*) ...<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">124.How do you eliminate duplicate values in SELECT? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Use SELECT DISTINCT ...<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">125.How do you select a row using indexes? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Specify the indexed columns in the WHERE clause.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">126.What are aggregate functions?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Bulit-in mathematical functions for use in SELECT clause.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">127.How do you find the maximum value in a column? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Use SELECT MAX(...<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">128.Can you use MAX on a CHAR column?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">YES.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">129.My SQL statement SELECT AVG(SALARY) FROM EMP yields inaccurate results. Why?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Because SALARY is not declared to have NULLs and the employees for whom the salary is not known are also counted.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">130.How do you retrieve the first 5 characters of FIRSTNAME column of EMP table?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">SELECT SUBSTR(FIRSTNAME,1,5) FROM EMP;<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">131.How do you concatenate the FIRSTNAME and LASTNAME from EMP table to give a complete name?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">SELECT FIRSTNAME || ' ' || LASTNAME FROM EMP;<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">132.What is the use of VALUE function?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">1. Avoid -ve SQLCODEs by handling nulls and zeroes in computations<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">2. Substitute a numeric value for any nulls used in computation<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">133.What is UNION,UNION ALL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">UNION : <span style=""> </span>eliminates duplicates<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">UNION ALL: <span style=""> </span>retains duplicates<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Both these are used to combine the results of different SELECT statements.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">134.Suppose I have five SQL SELECT statements connected by UNION/UNION ALL, how many times should I specify UNION to eliminate the duplicate rows? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Once.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">135.What is the restriction on using UNION in embedded SQL?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">It has to be in a CURSOR.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">136.In the WHERE clause what is BETWEEN and IN? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">BETWEEN supplies a range of values while IN supplies a list of values.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">137.Is BETWEEN inclusive of the range values specified? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">138.What is 'LIKE' used for in WHERE clause? What are the wildcard characters? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">LIKE is used for partial string matches.<span style=""> </span>'%' ( for a string of any character ) and '_' (for any single character ) are the two wild card characters.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">139.When do you use a LIKE statement?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">To do partial search e.g. to search employee by name, you need not specify the complete name; using LIKE, you can search for partial string matches.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">140.What is the meaning of underscore ( '_' ) in the LIKE statement? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Match for any single character.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">141.What do you accomplish by GROUP BY ... HAVING clause? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">GROUP BY partitions the selected rows on the distinct values of the column on which you group by.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">HAVING selects GROUPs which match the criteria specified<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">142.Consider the employee table with column PROJECT nullable.<span style=""> </span>How can you get a list of employees who are not assigned to any project?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">SELECT EMPNO <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">FROM EMP<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">WHERE PROJECT IS NULL;<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">143.What is the result of this query if no rows are selected:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">SELECT SUM(SALARY)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">FROM EMP<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">WHERE QUAL='MSC';<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">NULL<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">144.Why SELECT * is not preferred in embedded SQL programs?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">For<span style=""> </span>three reasons:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: Arial;">If the table structure is changed ( a field is added ), the program will have to be modified<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: Arial;">Program might retrieve the columns which it might not use, leading on I/O over head.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0in; text-indent: 0in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: Arial;">The chance of an index only scan is lost.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">145.What are correlated subqueries? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">A subquery in which the inner ( nested ) query refers back to the table in the outer query. Correlated subqueries must be evaluated for each qualified row of the outer query that is referred to.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">146.What are the issues related with correlated subqueries? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><u><span style="font-family: Arial; color: blue;">???<o:p></o:p></span></u></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">147.What is a cursor? why should it be used? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Cursor is a programming device that allows the SELECT to find a set of rows but return them one at a time.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Cursor should be used because the host language can deal with only one row at a time.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">148.How would you retrieve rows from a DB2 table in embedded SQL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Either by using the single row SELECT statements,or by using the CURSOR.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">149.Apart from cursor, what other ways are available to you to retrieve a row from a table in embedded SQL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Single row SELECTs.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">150.Where would you specify the DECLARE CURSOR statement? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">See answer to next question.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">151.How do you specify and use a cursor in a COBOL program? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Use DECLARE CURSOR statement either in working storage or in procedure division(before open cursor), to specify the SELECT statement.<span style=""> </span>Then use OPEN, FETCH rows in a loop and finally CLOSE.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">152.What happens when you say OPEN CURSOR?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">If there is an ORDER BY clause, rows are fetched, sorted and made available for the FETCH statement.<span style=""> </span>Other wise simply the cursor is placed on the first row.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">153.Is DECLARE CURSOR executable?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">154.Can you have more than one cursor open at any one time in a program ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">155.When you COMMIT, is the cursor closed?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">156.How do you leave the cursor open after issuing a COMMIT?<span style=""> </span>( for DB2 2.3 or above only )<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Use WITH HOLD option in DECLARE CURSOR statement.<span style=""> </span>But, it has not effect in psuedo-conversational CICS programs.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">157.Give the COBOL definition of a VARCHAR field.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">A VARCHAR column REMARKS would be defined as follows:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">...<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">10 REMARKS.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><span style=""> </span>49 REMARKS-LEN<span style=""> </span>PIC S9(4) USAGE COMP.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><span style=""> </span>49 REMARKS-TEXT<span style=""> </span>PIC X(1920).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">158.What is the physical storage length of each of the following DB2 data types: <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><span style=""> </span>DATE, TIME, TIMESTAMP?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">DATE: <span style=""> </span>4bytes<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">TIME: <span style=""> </span>3bytes<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">TIMESTAMP: <span style=""> </span>10bytes<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">159.What is the COBOL picture clause of the following DB2 data types:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><span style=""> </span>DATE, TIME, TIMESTAMP?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">DATE: <span style=""> </span>PIC X(10)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">TIME : <span style=""> </span>PIC X(08)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">TIMESTAMP: <span style=""> </span>PIC X(26)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">160.What is the COBOL picture clause for a DB2 column defined as DECIMAL(11,2)? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">PIC S9(9)V99 COMP-3.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Note: In DECIMAL(11,2), 11 indicates the size of the data type and 2 indicates the precision.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">161.What is DCLGEN ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">DeCLarations GENerator: used to create the host language copy books for the table definitions. Also creates the DECLARE table.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">162.What are the contents of a DCLGEN? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">1. EXEC SQL DECLARE TABLE statement which gives the layout of the table/view in terms of DB2 datatypes.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">2. A host language copy book that gives the host variable definitions for the column names.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">163.Is it mandatory to use DCLGEN? If not, why would you use it at all? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">It is not mandatory to use DCLGEN. <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Using DCLGEN, helps detect wrongly spelt column names etc. during the pre-compile stage itself ( because of the DECLARE TABLE ).<span style=""> </span>DCLGEN being a tool, would generate accurate host variable definitions for the table reducing chances of error.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">164.Is DECLARE TABLE in DCLGEN necessary? Why it used?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">It not necessary to have DECLARE TABLE statement in DCLGEN.<span style=""> </span>This is used by the pre-compiler to validate the table-name, view-name, column name etc., during pre-compile.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">165.Will precompile of an DB2-COBOL program bomb, if DB2 is down?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">No.<span style=""> </span>Because the precompiler does not refer to the DB2 catalogue tables.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">166.How is a typical DB2 batch pgm executed ? <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">1. Use DSN utility to run a DB2 batch program from native TSO.<span style=""> </span>An example is shown:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">DSN SYSTEM(DSP3)<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><span style=""> </span>RUN PROGRAM(EDD470BD) PLAN(EDD470BD) LIB('EDGS01T.OBJ.LOADLIB')<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">END<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">2. Use IKJEFT01 utility program to run the above DSN command in a JCL. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">167.Assuming that a site's standard is that pgm name = plan name, what is the easiest way to find out which pgms are affected by change in a table's structure ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Query the catalogue tables SYSPLANDEP and SYSPACKDEP.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">168.Name some fields from SQLCA.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">SQLCODE, SQLERRM, SQLERRD<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">169.How can you quickly find out the # of rows updated after an update statement?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Check the value stored in SQLERRD(3).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">170.What is EXPLAIN? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">EXPLAIN is used to display the access path as determined by the optimizer for a SQL statement.<span style=""> </span>It can be used in SPUFI (for single SQL statement ) or in BIND step (for embedded SQL ).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">171.What do you need to do before you do EXPLAIN?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Make sure that the PLAN_TABLE is created under the AUTHID.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">172.Where is the output of EXPLAIN stored? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">In userid.PLAN_TABLE<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">173.EXPLAIN has output with MATCHCOLS = 0.<span style=""> </span>What does it mean? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">a nonmatching index scan if ACCESSTYPE = I.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">174.How do you do the EXPLAIN of a dynamic SQL statement?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">1. Use SPUFI or QMF to EXPLAIN the dynamic SQL statement<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">2. Include EXPLAIN command in the embedded dynamic SQL statements<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">175.How do you simulate the EXPLAIN of an embedded SQL statement in SPUFI/QMF? Give an example with a host variable in WHERE clause.)<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Use a question mark in place of a host variable ( or an unknown value ). e.g.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">SELECT EMP_NAME<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">FROM EMP<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">WHERE EMP_SALARY > ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">176.What are the isolation levels possible ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">CS:<span style=""> </span>Cursor Stability<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">RR:<span style=""> </span>Repeatable Read<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">177.What is the difference between CS and RR isolation levels?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">CS:<span style=""> </span>Releases the lock on a page after use<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">RR:<span style=""> </span>Retains all locks acquired till end of transaction<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">178.Where do you specify them ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">ISOLATION LEVEL is a parameter for the bind process.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">179.When do you specify the isolation level? How?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">During the BIND process.<span style=""> </span>ISOLATION ( CS/RR )...<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">180.I user CS and update a page.<span style=""> </span>Will the lock be released after I am done with that page?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">181.What are the various locking levels available?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">PAGE, TABLE, TABLESPACE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">182.How does DB2 determine what lock-size to use?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">1. Based on the lock-size given while creating the tablespace<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">2. Programmer can direct the DB2 what lock-size to use<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">3. If lock-size ANY is specified, DB2 usually choses a lock-size of PAGE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">183.What are the disadvantages of PAGE level lock?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Hig resource utilization if large updates are to be done<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">184.What is lock escalation?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Promoting a PAGE lock-size to table or tablespace lock-size when a transaction has aquired more locks than specified in NUMLKTS.<span style=""> </span>Locks should be taken on objects in single tablespace for escalation to occur.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">185.What are the various locks available?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">SHARE, EXCLUSIVE, UPDATE<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">186.Can I use LOCK TABLE on a view?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">No.<span style=""> </span>To lock a view, take lock on the underlying tables.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">187.What is ALTER ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">SQL command used to change the definition of DB2 objects.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">188.What is a DBRM, PLAN ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">DBRM: DataBase Request Module, has the SQL statements extracted from the host language program by the pre-compiler.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">PLAN: A result of the BIND process.<span style=""> </span>It has the executable code for the SQL statements in the DBRM.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">189.What is ACQUIRE/RELEASE in BIND?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Determine the point at which DB2 acquires or releases locks against table and tablespaces, including intent locks.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">190.What else is there in the PLAN apart from the access path? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">PLAN has the executable code for the SQL statements in the host program<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">191.What happens to the PLAN if index used by it is dropped?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Plan is marked as invalid. The next time the plan is accessed, it is rebound.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">192.What are PACKAGES ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">They contain executable code for SQL statements for one DBRM.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">193.What are the advantages of using a PACKAGE?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">1. Avoid having to bind a large number of DBRM members into a plan<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">2. Avoid cost of a large bind<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">3. Avoid the entire transaction being unavailable during bind and automatic rebind of a plan<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">4. Minmize fallback complexities if changes result in an error.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">194.What is a collection?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">A user defined name that is the anchor for packages.<span style=""> </span>It has not physical existence. <span style=""> </span>Main usage is to group packages.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">195.In SPUFI suppose you want to select max. of 1000 rows , but the select returns only 200 rows. What are the 2 sqlcodes that are returned? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">100 ( for successful completion of the query ), 0 (for successful COMMIT<span style=""> </span>if AUTOCOMMIT is set to Yes).<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">196.How would you print the output of an SQL statement from SPUFI? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Print the output dataset.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">197.How do you pull up a query which was previously saved in QMF ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">??<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">198.Lot of updates have been done on a table due to which indexes have gone haywire.<span style=""> </span>What do you do? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Looks like index page split has ocured.<span style=""> </span>DO a REORG of the indexes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">199.What is dynamic SQL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Dynamic SQL is a SQL statement created at program execution time.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">200.When is the access path determined for dynamic SQL? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">At run time, when the PREPARE statement is issued.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">201.Suppose I have a program which uses a dynamic SQL and it has been performing well till now.<span style=""> </span>Off late, I find that the performance has deteriorated.<span style=""> </span>What happened? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Probably RUN STATS is not done and the program is using a wrong index due to incorrect stats.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Probably RUNSTATS is done and optimizer has chosen a wrong access path based on the latest statistics.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">202.How does DB2 store NULL physically?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">as an extra-byte prefix to the column value. physically, the nul prefix is Hex '00' if the value is present and Hex 'FF' if it is not.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">203.How do you retrieve the data from a nullable column? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Use null indicators. Syntax ... INTO :HOSTVAR :NULLIND<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">204.What is the picture clause of the null indicator variable? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">S9(4) COMP.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">205.What does it mean<span style=""> </span>if the null indicator has -1, 0, -2? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">-1<span style=""> </span>: the field is null<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">0 <span style=""> </span>: the field is not null<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">-2<span style=""> </span>: the field value is truncated<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">206.How do you insert a record with a nullable column?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">To insert a NULL, move -1 to the null indicator<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">To insert a valid value, move 0 to the null indicator<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">207.What is RUNSTATS? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">A DB2 utility used to collect statistics about the data values in tables, which can be used by the optimizer to decide the access path. It also collects statistics used for space management.<span style=""> </span>These statistics are stored in DB2 catalog tables.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">208.When will you chose to run<span style=""> </span>RUNSTATS?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">After a load, or after mass updates, inserts, deletes, or after REORG.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">209.Give some example of statistics collected during RUNSTATS?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"># of rows in the table<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Percent of rows in clustering sequence<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"># of distinct values of indexed column<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">#<span style=""> </span>of rows moved to a nearby/farway page due to row length increase<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">210.What is REORG?<span style=""> </span>When is it used?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">REORG reorganizes data on physical storage to reclu<u><span style="color: blue;">t</span></u>ser rows, positioning oveflowed rows in their proper sequence, to reclaim space, to restore free space.<span style=""> </span>It is used after heavy updates, inserts and delete activity and after segments of a segmented tablespace have become fragemented.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">211.What is IMAGECOPY ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">It is full backup of a DB2 table, which can be used in recovery.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">212.When do you use the IMAGECOPY? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">To take routine backup of tables<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">After a LOAD with LOG NO<o:p></o:p></span></p> <p class="MsoNormal" style=""><u><span style="font-family: Arial; color: blue;">After REORG with LOG NO<o:p></o:p></span></u></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">213.What is COPY PENDING status?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">A state in which, an image copy on a table needs to be taken, In this status, the table is available only for queries. You cannot update this table. To remove the COPY PENDING status, you take an image copy or use REPAIR utility.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">214.What is CHECK PENDING ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">When a table is LOADed with ENFORCE NO option, then the table is left in CHECK PENDING status.<span style=""> </span>It means that the LOAD utility did not perform constraint checking.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">215.What is QUIESCE?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">A QUIESCE flushes all DB2 buffers on to the disk. This gives a correct snapshot of the database and should be used before and after any IMAGECOPY to maintain consistency.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">216.What is a clustering index ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Causes the data rows to be stored in the order specified in the index. A mandatory index defined on a partitioned table space.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">217.How many clustering indexes can be defined for a table?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Only one.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">218.What is the difference between primary key & unique index ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Primary : a relational database constraint.<span style=""> </span>Primary key consists of one or more columns that uniquely identify a row in the table.<span style=""> </span>For a normalized relation, there is on<u><span style="color: blue;">e</span></u> designated primary key.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Unique index: a physical object that stores only unique values.<span style=""> </span>There can be one or more unique indexes on a table.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">219.What is sqlcode -922 ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Authorization failure<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">220.What is sqlcode -811?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">SELECT statement has resulted in retrieval of more than one row.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">221.What does the sqlcode of -818 pertain to? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">This is generated when the consistency tokens in the DBRM and the load module are different.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">222.Are views updatable ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Not all of them.<span style=""> </span>Some views are updatable e.g. single table view with all the fields or mandatory fields. Examples of non-updatable views are views which are joins, views that contain aggregate functions(such as MIN), and views that have GROUP BY clause.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">.If I have a view which is a join of two or more tables, can this view be updatable? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">No.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">223.What are the 4 environments which can access DB2 ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">TSO, CICS, IMS and BATCH<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">224.What is<span style=""> </span>an inner join, and an outer join ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Inner Join: combine information from two or more tables by comparing all values that meet the search criteria in the designated column or columns of on a table with all the values in corresponding columns of the other table or tables. This kind of join which involve a match in both columns are called inner joins.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Outer join is one in which you want both matching and non matching rows to be returned. DB2 has no specific operator for outer joins, it can be simulated by combining a join and a correlated sub query with a UNION.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">225.What is FREEPAGE and PCTFREE in TABLESPACE creation?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">PCTFREE: percentage of each page to be left free <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">FREEPAGE: Number of pages to be loaded with data between each free page<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">226.What are simple, segmented and<span style=""> </span>partitioned table spaces ?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Simple Tablespace:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Can contain one or more tables<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Rows from multiple tables can be interleaved on a page under the DBAs control and maintenance<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Segmented Tablespace:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Can contain one or more tables<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Tablespace is divided into segments of 4 to 64 pages in increments of 4 pages.<span style=""> </span>Each segment is dedicated to single table.<span style=""> </span>A table can occupy multiple segments<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Partitioned Tablespace:<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Can contain one table and are not segmented. They are particularly useful for large tables. The available space is divided into separate units of storage called partitions, each containing a part of the Table.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">227.What is filter factor?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">One divided by the number of distinct values of a column.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">228.What is index cardinality? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">The number of distinct values a column or columns contain.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">229.What is a synonym ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Synonym is an alternate name for a table or view used mainly to hide the leading qualifier of a table or view.. A synonym is accessible only by the creator.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">230.What is the difference between SYNONYM and ALIAS?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">SYNONYM: is dropped when the table or tablespace is dropped. Synonym is available only to the creator.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">ALIAS: is retained even if table or tablespace is dropped.<span style=""> </span>ALIAS can be created even if the table does not exist.<span style=""> </span>It is used mainly in distributed environment to hide the location info from programs. Alias is a global object & is available to all.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">231.What do you mean by NOT NULL WITH DEFAULT?<span style=""> </span>When will you use it?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">This column cannot have nulls and while insertion, if no value is supplied then it wil have zeroes, spaces or date/time depending on whether it is numeric, character or date/time.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Use it when you do not want to have nulls but at the same time cannot give values all the time you insert this row.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">232.What do you mean by NOT NULL?<span style=""> </span>When will you use it?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">The column cannot have nulls.<span style=""> </span>Use it for key fields.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">233.When would you prefer to use VARCHAR?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">When a column which contains long text, e.g. remarks, notes, may have in most cases less than 50% of the maximum length.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">234.What are the disadvantages of using VARCHAR?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">1. Can lead to high space utilization if most of the values are close to maimum.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">2. Positioning of VARCHAR column has to be done carefully as it has performance implications.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">3. Relocation of rows to different pages can lead to more I/Os on retrieval.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">235.How do I create a table MANAGER ( EMP#, MANAGER) where MANAGER is a foreign key which references to EMP# in the same table?<span style=""> </span>Give the exact DDL.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">First CREATE MANAGER table with EMP# as the primary key.<span style=""> </span>Then ALTER it to define the foreign key.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">236.When is the authorization check on DB2 objects done - at BIND time or run time?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">At run time.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">237.What is auditing?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Recording SQL statements that access a table.<span style=""> </span>Specified at table creation time or thru alter.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: center; text-indent: 0.5in;" align="center"><span style="font-family: Arial;">CICS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">1.How do you place the cursor on a particular position on the screen? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Move -1 to the length attribute of the field and use the CURSOR option. <o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Define the field with IC in the BMS map.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">2Use CURSOR(n m)??<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">3.What are the two outputs<span style=""> </span>created as a result of generation of a map? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">The map copybook and the load module.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">4.What is the difference between physical map and symbolic map? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">The physical map is the load module and the symbolic map is the data structure.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">5.How do you protect a field from being overlaid? - GS<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">6.What is the attribute byte? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Defines the display/transmission of field. most cases is an output field from the program.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">7.How do you use extended attributes ? <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Define EXTATT=YES and the correct terminal type.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">8.What are the 3 working storage fields used for every field on the map? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Length, attribute and input/output field.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">9.What is MDT? What are FSET, FRSET ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">Modified Data Tag. Bit in the attribute byte indicating modification of field on screen. Happens on an input operation. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">FSET. Sets MDT on to ensure field is transmitted. Happens on an output operation.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">FRSET. Resets MDT. Until this happens, field continues to be sent.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">10.What is the use of DSECT parameter in BMS?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">Is the parameter to generate a symbolic map.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">11.Do you receive the attribute byte in the symbolic map?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">On EOF yes.<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">12.How do you make your BMS maps case sensitive?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">Use ASIS???<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;">13.What is effect on RECEIVE MAP when<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: Arial;">PF key is pressed? Data transmission may happen,<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: Arial;">PA key is pressed? Data transmission will not happen.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;"><span style="">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">14.What are SEND MAP MAPONLY & SEND MAP DATAONLY ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">15.What is the difference between a PF key & a PA key ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">PF keys wake up the task and transmit modified data, PA keys only wake up the task.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">16.Name the macros used to define the following:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: Arial;">MAP<span style=""> </span><span style=""> </span>MAPSET <span style=""> </span><span style=""> </span>FIELD<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><span style="font-family: Arial;">DFHMSD<span style=""> </span>DFHMDI<span style=""> </span>DFHMDF<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">17.Can you use OCCURS in a BMS map?<span style=""> </span>If you do, what are the issues related with its use?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Yes. cannot use group by clause???<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">18.Can you define multiple maps in a BMS mapset?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">19.How is the storage determined in the symbolic map, if you have multiple maps?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Storage for maps redefine the first. This means largest map has to be the first.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">20.What is the meaning of BMS length of field = 0?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">Data was not entered in the field<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">21.Can you simply check if length = 0 for checking if a field was modified?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">No, not if ERASE EOF was used.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">22.What do you do if you do not want characters entered by the user to be folded to uppercase ? <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Use ASIS option on RECEIVE.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">23.What does the BUFFER option in RECEIVE mean ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Brings the entire datastream from the terminal buffer.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">24.What are the steps you go through to a create a BMS executable?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Assemble to create CSECT and Link<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">25.When you compile a CICS program, the (pre)compiler puts an extra chunk of code.<span style=""> </span>Where does it get included and that is it called?<span style=""> </span>What is its length? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">DFHEIBLK, DFHCOMMAREA.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">26.List all the CICS tables and explain their contents. - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">PPT<span style=""> </span>SIT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">PCT<span style=""> </span>JCT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">FCT<span style=""> </span>SNT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">DCT<span style=""> </span>SRT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">RCT<span style=""> </span>TCT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">27.I have written a CICS program.<span style=""> </span>What tables should I setup to run this program? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">PPT, PCT, (FCT, DCT, RCT (if needed)).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">28.In which table would you make an entry for a BMS map? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">PPT<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">29.What is the content of the PPT entry? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Length, Source, Use count, Lang, Res count DFHRPL number<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">30.For a CICS-DB2 program, how is the plan referenced? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Uses a RCT table.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">31.How is dynamic memory allocated within a CICS application program? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Use a GETMAIN<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">32.What are the restrictions while using GETMAIN and FREEMAIN? - GS<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">33.What is the use of a TDQ, TSQ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Temporary data stores.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">34.How do you read from a TSQ? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Temp storage read command<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">35.If I create a TSQ from one transaction, can I read it from another transaction? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Yes. As long as they run in the same region.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">36.What are extra partition & intra partition TDQs?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Extra partition TDQs are datasets used for communication b'n CICS and other CICS/Batch regions. Intrapartition TDQs are queues for communication within regn.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">37.What is trigger level in the context of TDQs?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">For intrapartition TDQs specify the # records at which ATI happens. not applicable for extra partition TDQs.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">38.How do you fire a batch job from a CICS txn ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Define an extrapartition TDQ as an internal reader and write the JCL to it. Terminate the JCL with /*EOF.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">39.What is ATI? What kind of TDQ can be used?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Automatic Task Initiation. Intra partition TDQ.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">40.Do you require a table entry for a TSQ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">If recovery is needed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">41.Is there any entry for TSQs in CICS tables?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Yes in the DFHTST.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">42.What is the use of DCT?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Destination Control Table used to define TDQs<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">43.What is ENQ, DEQ ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Task control commands to make resources serially reusable.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">44.I have TSQ with 15 items.<span style=""> </span>I want to delete the 10th item.<span style=""> </span>How do I do that?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">45.Can you issue SQL COMMIT from a CICS program? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">46.What is the other way of terminating a transaction? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><span style=""> </span>EXEC CICS SYNCPOINT. Assuming it is a LUW. This will not end the Xn.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">47.What is an ASRA abend ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Any data exception problem SOC7, SOC4 etc.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">48.What is an AEY9 abend ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">DB2/IDMS not up.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">49.What are the situations under which<span style=""> </span>NEWCOPY is required ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">When a program has been used in CICS atleast once and then changed and recompiled.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">50.What is 2 phase commit?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">51.What is EXEC CICS RETRIEVE ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Used by STARTed tasks to get the parameters passed to them.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">52.Name some important fields in the EIB block ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">EIBRESP, EIBCALEN, EIBRRCDE, EIBTASK, EIBDATE, EIBTIME<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">53.Can you use DYNAMIC calls in CICS ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Yes, the called routine must be defined in PPT and the calling program must use CALL identifier..<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">54.How do you handle errors in CICS pgms ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Check EIBRESP after the call or use the HANDLE condition.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">55.Suppose pgm A passes 30 bytes to pgm B thru commarea and pgm B has defined its DFHCOMMAREA to be 50 bytes . Is there a problem ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -3.8pt;"><span style="font-family: Arial;">Yes, if B tries to access bytes 31-50.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">56.When an XCTL is done, does the tranid change ? Is a new task created ? Does it cause an implicit SYNCPOINT to be issued ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt;"><span style="font-family: Arial;">No, No, Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 14.2pt; text-indent: -14.2pt;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">57.How do you execute a background CICS txn ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">With a START or ATI.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">58.Can a CICS region be attached to more than one DB2 subsystem ?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">59.What determines the DB2 subsystem to which a particular CICS region is attached ?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">60.What is the DSNC transaction used for ?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">61.How do you handle error in a CICS program?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">Same as 36.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">62.What is the difference between START and XCTL ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">START is used to start a new task. It is a interval control command. XCTL is used to pass control to a program within the same task. It is a program control command.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">63.What is the usage of language in the PPT entry?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Language interface and call parameters???<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">64.Can you have CICS code in a copybook?<span style=""> </span>If yes, what happens during compilation?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Yes. Needs to be preprocessed.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">65.What is an AICA abend?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Runaway Task.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">66.How would you resolve an ASRA abend?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">In COBOL II start with CEBR, and get the offset/instruction.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">67.I invoke a transaction from CICS.<span style=""> </span>The program has a code: MOVE DFHCOMMAREA TO WS-AREA.<span style=""> </span>What happens to this transaction?<span style=""> </span>What happens to the other transactions?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Junk may get moved in. Will cause Storage violation. ????<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">68.How do I find the name of the CICS region inside my COBOL program?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">69.When you do a START, what will the value of EIBCALEN?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Zero.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">70.How are VSAM files Read in CICS pgms? - GS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">File Control Commands. Random, Sequential, forward and backward.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">71.How will you access a VSAM file using an alternate index?<o:p></o:p></span></p> <p class="MsoNormal" style=""><span style="font-family: Arial;"><span style=""> </span>Thru the path. Define path as an FCT and use normal File control commands.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">72.How do you rollback data written to an ESDS file?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.25in;"><span style="font-family: Arial;">Define the file as recoverable. in cases where records have been inserted into the file, you may need to run a batch program to logically delete the inserted records.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">73.I have done a START BROWSE on a VSAM dataset.<span style=""> </span>Can I do another START BROWSE without doing an END BROWSE?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">No.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">74.Can you access QSAM (seq ) files from CICS ?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-family: Arial;">No.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">75.Can you access ESDS files from CICS ?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style="font-family: Arial;">Yes.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span>General<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">1.Expect questions about your previous projects - be clear about the functionality, application size(no of tables, no of transactions, no of batch jobs), tech environment(e.g.: was a job scheduler used ?), your role .<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">2.You should know what versions of software(DB2, CICS, JES, MVS) you've worked with. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;">3.Be ready to give specific syntax if asked for. e.g. give the condition code statement in the JCL.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><s><span style="font-family: Arial; color: green;"><o:p><span style="text-decoration: none;"> </span></o:p></span></s></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><span style="font-family: Arial;">Have full understanding of the role for which you are being interviewed.<s><span style="color: green;"><o:p></o:p></span></s></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-20413898049753739682008-07-17T23:09:00.002-07:002008-12-23T21:45:21.639-08:00CICS Abend Codes<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} h1 {mso-style-next:Normal; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:1; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-font-kerning:0pt; mso-fareast-language:EN-US; mso-bidi-font-weight:normal; text-decoration:underline; text-underline:single;} h2 {mso-style-next:Normal; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:2; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; color:red; mso-fareast-language:EN-US; mso-bidi-font-weight:normal; text-decoration:underline; text-underline:single;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <h1><span style="color: red;">AEIP<o:p></o:p></span></h1> <p class="MsoNormal">COMMAND ===><span style=""> </span>SCROLL ===> PAGE </p> <p class="MsoNormal">MSDSD2508I Selected dump contains no source information<span style=""> </span></p> <p class="MsoNormal">An AEIP abend occurred in program RP10P03.<span style=""> </span>The abending transaction was<span style=""> </span></p> <p class="MsoNormal">RP10 running at terminal 0015 for user ID DEVKQR9.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">Analysis of the abend:<span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">An EXEC CICS RETURN was issued from program RP10P03. However, the COMMAREA<span style=""> </span></p> <p class="MsoNormal">or IMMEDIATE option was specified and the command was issued by a program<span style=""> </span></p> <p class="MsoNormal">that was not at the highest logical level.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">Year2000 Information<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">The abending program RP10P03 was compiled with a version of the compiler<span style=""> </span></p> <p class="MsoNormal">that is not Year2000 Ready. CICS Abend-Aid/FX does not validate the Year2000 </p> <p class="MsoNormal">readiness of the executable code.<span style=""> </span>You should review the program to<span style=""> </span></p> <p class="MsoNormal">determine if it is Year2000 Ready.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">Next Sequential Instruction</p> <p class="MsoNormal"><o:p> </o:p></p> <h2>AEXY</h2> <p class="MsoNormal">COMMAND ===><span style=""> </span>SCROLL ===> PAG</p> <p class="MsoNormal">MSDSD2508I Selected dump contains no source information<span style=""> </span></p> <p class="MsoNormal">An AEXY abend occurred in program RP10P05.<span style=""> </span>The abending transaction was<span style=""> </span></p> <p class="MsoNormal">RP1E running at terminal N/A for user ID CBSIN79.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">Analysis of the abend:<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">The transaction was terminated with the AEXY abend because the executing<span style=""> </span></p> <p class="MsoNormal">transaction has been purged before control could be returned.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">This can arise when the transaction is purged while a CICS command is being</p> <p class="MsoNormal">processed or when the transaction was waiting to be dispatched.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">Contact your system programmer to determine why the transaction has been<span style=""> </span></p> <p class="MsoNormal">purged.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">Next Sequential Instruction<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">The next sequential instruction to be executed in program RP10P05 was at<span style=""> </span></p> <p class="MsoNormal">displacement 00000D80.</p> <p class="MsoNormal"><o:p> </o:p></p> <h2>ADCI</h2> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">COMMAND ===><span style=""> </span><span style=""> </span>SCROLL ===> P</p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">An ADCI abend occurred in program MS51P04.<span style=""> </span>The abending transaction was </p> <p class="MsoNormal">MS5P running at terminal 0016 for user ID CBSIN29.<span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">Analysis of the abend:<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal">The transaction was terminated with the ADCI abend because IMS returns a </p> <p class="MsoNormal">user abend 3303 response for a DL/I request from an application program. </p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">SQL Return Code<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">SQLCODE<span style=""> </span>0<span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">Execution was successful.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">SQL Statement<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <h2>AEXL</h2> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">An AEXL abend occurred in program MS80P08.<span style=""> </span>The abending transaction was<span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>MS80 running at terminal 0008 for user ID DEVPZD9.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>Analysis of the abend:<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>The transaction was terminated with the AEXL abend because the exception<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>condition "DISABLED" occurred for a file, the "NOHANDLE" or "RESP" options </p> <p class="MsoNormal"><span style=""> </span>were not specified, and there was no "HANDLE CONDITION DISABLED" ACTIVE.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>CICS Abend-AID/FX was unable to determine the name of the file.<span style=""> </span>You may be</p> <p class="MsoNormal"><span style=""> </span>able to use the Trace Table section of this report to determine the file<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>name.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>SQL Return Code<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>SQLCODE<span style=""> </span>0</p> <p class="MsoNormal"><o:p> </o:p></p> <h2>ASRA</h2> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">COMMAND ===><span style=""> </span><span style=""> </span>SCROLL ===> PAG</p> <p class="MsoNormal"><span style=""> </span>MSDSD2508I Selected dump contains no source information<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>An ASRA abend occurred in program MS80P01.<span style=""> </span>The abending transaction was<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>MX99 running at terminal 0023 for user ID DEVVZY9.<span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>Analysis of the abend:<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>The Data Exception is caused when a decimal instruction is attempted on a<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>field that does not contain valid packed data, eg. contains an invalid digi</p> <p class="MsoNormal"><span style=""> </span>(not 0-9), or its last byte contains an invalid sign (Not F, C, OR D).<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>The Numeric Compare instruction in error is located at offset 00724E in<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>program MS80P01.<span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>COBOL Information<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span>Current values of fields on abending statement:<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <h2>AD2U</h2> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">COMMAND ===><span style=""> </span><span style=""> </span>SCROLL ===> PAG</p> <p class="MsoNormal">MSDSD2508I Selected dump contains no source information<span style=""> </span></p> <p class="MsoNormal">An AD2U abend occurred in program CEECTERM.<span style=""> </span>The abending transaction was<span style=""> </span></p> <p class="MsoNormal">RP1E running at terminal N/A for user ID CBSIN79.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">Analysis of the abend:<span style=""> </span><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">The DB2 subtask processing the request could not create a DB2 thread. The<span style=""> </span></p> <p class="MsoNormal">CICS/DB2 interface has returned a 84 after a AD2U abend.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal">Unknown CICS resource manager call.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal">SQL Return Code<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">SQLCODE<span style=""> </span>0<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal">Execution was successful.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <h2>AD2R</h2> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">MSDSD2508I Selected dump contains no source information<span style=""> </span></p> <p class="MsoNormal">An AD2R abend occurred in program D2EX1.<span style=""> </span>The abending transaction was RO15 </p> <p class="MsoNormal">running at terminal N/A for user ID CBSIN29.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal">Analysis of the abend:<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">The CICS-DB2 subtask processing the DB2 request has abended. The CICS/DB2<span style=""> </span></p> <p class="MsoNormal">interface has returned a 24 after a AD2R abend.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">The thread subtask has abended.<span style=""> </span>DB2 has returned a 00C30044 reason code<span style=""> </span></p> <p class="MsoNormal">after a AD2R abend. A module to diagnose this code is not present.<span style=""> </span>Please<span style=""> </span></p> <p class="MsoNormal">contact Compuware Abend-AID support.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal">Next Sequential Instruction<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">The next sequential instruction to be executed in program D2EX1 was at<span style=""> </span><span style=""> </span></p> <p class="MsoNormal">displacement 00002418.<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <h2>AICA</h2> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">COMMAND ===><span style=""> </span>SCROLL ===> PAG</p> <p class="MsoNormal">MSDSD2508I Selected dump contains no source information<span style=""> </span></p> <p class="MsoNormal">An AICA abend occurred in program RO15P05.<span style=""> </span>The abending transaction was<span style=""> </span></p> <p class="MsoNormal">RO15 running at terminal N/A for user ID CBSIN29.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal">Analysis of the abend:<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">The transaction was terminated with the AICA abend because a runaway task<span style=""> </span></p> <p class="MsoNormal">condition was detected by the timer interrupt routine of CICS/VS and the<span style=""> </span></p> <p class="MsoNormal">task is being abnormally terminated.<span style=""> </span>The condition indicates a possible<span style=""> </span></p> <p class="MsoNormal">logical loop within the user's program.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span><span style=""> </span></p> <p class="MsoNormal">Take corrective action within the program being executed.<span style=""> </span>If auxiliary<span style=""> </span></p> <p class="MsoNormal">trace is active when the AICA abend occurs, then disable runaway task and<span style=""> </span></p> <p class="MsoNormal">retry the transaction to determine if a true runaway task condition was<span style=""> </span></p> <p class="MsoNormal">detected.<span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal"><span style=""> </span></p> <p class="MsoNormal">SQL Return Code<span style=""> </span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-75228635512066408342008-07-17T23:10:00.001-07:002008-12-23T21:45:21.639-08:00CM SOFTWARE TECHNOLOGIES COBOLTEST<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="date"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place"></o:smarttagtype><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]><object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id="ieooui"></object> <style> st1\:*{behavior:url(#ieooui) } </style> <![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:14.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} h1 {mso-style-next:Normal; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:1; font-size:14.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-font-kerning:0pt; mso-fareast-language:EN-US;} h2 {mso-style-next:Normal; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:2; font-size:11.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoTitle, li.MsoTitle, div.MsoTitle {margin:0in; margin-bottom:.0001pt; text-align:center; mso-pagination:widow-orphan; font-size:18.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US; font-weight:bold; text-decoration:underline; text-underline:single;} p.MsoBodyText, li.MsoBodyText, div.MsoBodyText {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoBodyText2, li.MsoBodyText2, div.MsoBodyText2 {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in .75in 1.0in 117.0pt; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:55129628; mso-list-type:hybrid; mso-list-template-ids:-1290653690 -669229000 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l0:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:57.75pt; mso-level-number-position:left; margin-left:57.75pt; text-indent:-18.75pt;} @list l1 {mso-list-id:237330788; mso-list-type:hybrid; mso-list-template-ids:-458172408 362182128 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l1:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l2 {mso-list-id:408158629; mso-list-type:hybrid; mso-list-template-ids:-70644804 -1557766960 -403374242 2059206522 67698703 67698713 67698715 67698703 67698713 67698715;} @list l2:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:76.5pt; mso-level-number-position:left; margin-left:76.5pt; text-indent:-18.75pt;} @list l2:level2 {mso-level-number-format:alpha-upper; mso-level-tab-stop:111.75pt; mso-level-number-position:left; margin-left:111.75pt; text-indent:-.25in;} @list l2:level3 {mso-level-number-format:arabic-leading-zero; mso-level-text:%3; mso-level-tab-stop:159.75pt; mso-level-number-position:left; margin-left:159.75pt; text-indent:-21.0pt;} @list l3 {mso-list-id:470560031; mso-list-type:hybrid; mso-list-template-ids:498388132 832503744 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l3:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l4 {mso-list-id:549076823; mso-list-type:hybrid; mso-list-template-ids:-206544726 1171534726 893784332 952383202 -614820388 67698713 67698715 67698703 67698713 67698715;} @list l4:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:90.75pt; mso-level-number-position:left; margin-left:90.75pt; text-indent:-18.75pt;} @list l4:level2 {mso-level-number-format:arabic-leading-zero; mso-level-text:%2; mso-level-tab-stop:132.0pt; mso-level-number-position:left; margin-left:132.0pt; text-indent:-24.0pt;} @list l4:level3 {mso-level-number-format:alpha-lower; mso-level-tab-stop:171.0pt; mso-level-number-position:left; margin-left:171.0pt; text-indent:-.25in;} @list l4:level4 {mso-level-number-format:alpha-upper; mso-level-tab-stop:2.75in; mso-level-number-position:left; margin-left:2.75in; text-indent:-.25in;} @list l5 {mso-list-id:602808225; mso-list-type:hybrid; mso-list-template-ids:-1063778170 695372048 1317936844 67698715 1854700130 67698713 67698715 67698703 67698713 67698715;} @list l5:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:80.25pt; mso-level-number-position:left; margin-left:80.25pt; text-indent:-22.5pt;} @list l5:level2 {mso-level-start-at:12; mso-level-tab-stop:111.75pt; mso-level-number-position:left; margin-left:111.75pt; text-indent:-.25in;} @list l5:level3 {mso-level-number-format:roman-lower; mso-level-tab-stop:147.75pt; mso-level-number-position:right; margin-left:147.75pt; text-indent:-9.0pt;} @list l5:level4 {mso-level-start-at:12; mso-level-text:%4; mso-level-tab-stop:183.75pt; mso-level-number-position:left; margin-left:183.75pt; text-indent:-.25in;} @list l6 {mso-list-id:608851688; mso-list-type:hybrid; mso-list-template-ids:452378334 -1646108092 -1442053832 -111883190 67698703 67698713 67698715 67698703 67698713 67698715;} @list l6:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:67.5pt; mso-level-number-position:left; margin-left:67.5pt; text-indent:-.25in;} @list l6:level2 {mso-level-number-format:roman-upper; mso-level-text:"\(%2\)"; mso-level-tab-stop:121.5pt; mso-level-number-position:left; margin-left:121.5pt; text-indent:-.5in;} @list l6:level3 {mso-level-start-at:2; mso-level-number-format:roman-lower; mso-level-text:"\(%3\)"; mso-level-tab-stop:189.0pt; mso-level-number-position:left; margin-left:189.0pt; text-indent:-58.5pt;} @list l7 {mso-list-id:615873309; mso-list-type:hybrid; mso-list-template-ids:882684756 165215298 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l7:level1 {mso-level-number-format:roman-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:1.25in; mso-level-number-position:left; margin-left:1.25in; text-indent:-.5in;} @list l8 {mso-list-id:704140803; mso-list-type:hybrid; mso-list-template-ids:2106093038 1987366294 1439576738 -669323452 67698703 67698713 67698715 67698703 67698713 67698715;} @list l8:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:79.5pt; mso-level-number-position:left; margin-left:79.5pt; text-indent:-25.5pt;} @list l8:level2 {mso-level-start-at:10; mso-level-tab-stop:1.5in; mso-level-number-position:left; margin-left:1.5in; text-indent:-.25in;} @list l8:level3 {mso-level-start-at:10; mso-level-text:%3; mso-level-tab-stop:153.0pt; mso-level-number-position:left; margin-left:153.0pt; text-indent:-.25in;} @list l9 {mso-list-id:726609821; mso-list-type:hybrid; mso-list-template-ids:-1804198474 165306784 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l9:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l10 {mso-list-id:826169161; mso-list-type:hybrid; mso-list-template-ids:1380459038 -434882616 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l10:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:1.5in; mso-level-number-position:left; margin-left:1.5in; text-indent:-.75in;} @list l10:level2 {mso-level-number-format:alpha-lower; mso-level-tab-stop:1.5in; mso-level-number-position:left; margin-left:1.5in; text-indent:-.25in;} @list l11 {mso-list-id:937056970; mso-list-type:hybrid; mso-list-template-ids:-935805260 -1943219108 -2127901190 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l11:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:54.75pt; mso-level-number-position:left; margin-left:54.75pt; text-indent:-18.75pt;} @list l11:level2 {mso-level-start-at:44; mso-level-tab-stop:1.5in; mso-level-number-position:left; margin-left:1.5in; text-indent:-.5in;} @list l12 {mso-list-id:949356892; mso-list-type:hybrid; mso-list-template-ids:-959932374 1745928576 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l12:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:1.0in; mso-level-number-position:left; margin-left:1.0in; text-indent:-.5in;} @list l13 {mso-list-id:1113675086; mso-list-type:hybrid; mso-list-template-ids:63764616 -550450368 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l13:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:1.0in; mso-level-number-position:left; margin-left:1.0in; text-indent:-.5in;} @list l14 {mso-list-id:1158230331; mso-list-type:hybrid; mso-list-template-ids:635708186 820782586 1417457148 330354190 67698703 67698713 67698715 67698703 67698713 67698715;} @list l14:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:1.5in; mso-level-number-position:left; margin-left:1.5in; text-indent:-.5in;} @list l14:level2 {mso-level-start-at:2; mso-level-number-format:alpha-upper; mso-level-tab-stop:1.75in; mso-level-number-position:left; margin-left:1.75in; text-indent:-.25in;} @list l14:level3 {mso-level-number-format:arabic-leading-zero; mso-level-text:%3; mso-level-tab-stop:171.0pt; mso-level-number-position:left; margin-left:171.0pt; text-indent:-.25in;} @list l15 {mso-list-id:1233734149; mso-list-type:hybrid; mso-list-template-ids:724184418 -1237146256 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l15:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:1.0in; mso-level-number-position:left; margin-left:1.0in; text-indent:-.5in;} @list l16 {mso-list-id:1512139735; mso-list-type:hybrid; mso-list-template-ids:-985136962 -296975410 67698713 67698715 -1348459286 67698713 67698715 67698703 67698713 67698715;} @list l16:level1 {mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.5in;} @list l16:level2 {mso-level-number-format:alpha-lower; mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} @list l16:level3 {mso-level-number-format:roman-lower; mso-level-tab-stop:1.5in; mso-level-number-position:right; text-indent:-9.0pt;} @list l16:level4 {mso-level-number-format:alpha-lower; mso-level-text:"\(%4\)"; mso-level-tab-stop:148.5pt; mso-level-number-position:left; margin-left:148.5pt; text-indent:-22.5pt;} @list l17 {mso-list-id:1560942889; mso-list-type:hybrid; mso-list-template-ids:589048704 -408756802 1680084914 -2047421738 903262986 67698713 67698715 67698703 67698713 67698715;} @list l17:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:76.5pt; mso-level-number-position:left; margin-left:76.5pt; text-indent:-22.5pt;} @list l17:level2 {mso-level-number-format:alpha-lower; mso-level-text:"\(%2\)"; mso-level-tab-stop:1.75in; mso-level-number-position:left; margin-left:1.75in; text-indent:-.5in;} @list l17:level3 {mso-level-number-format:alpha-lower; mso-level-text:"\(%3\)"; mso-level-tab-stop:171.0pt; mso-level-number-position:left; margin-left:171.0pt; text-indent:-.5in;} @list l17:level4 {mso-level-start-at:11; mso-level-tab-stop:2.5in; mso-level-number-position:left; margin-left:2.5in; text-indent:-.25in;} @list l18 {mso-list-id:1804540217; mso-list-type:hybrid; mso-list-template-ids:42495814 -1905352574 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l18:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:1.0in; mso-level-number-position:left; margin-left:1.0in; text-indent:-.25in;} @list l19 {mso-list-id:1838417871; mso-list-type:hybrid; mso-list-template-ids:-1029160654 1919984980 -1049749036 1862326122 67698703 67698713 67698715 67698703 67698713 67698715;} @list l19:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:66.0pt; mso-level-number-position:left; margin-left:66.0pt; text-indent:-30.0pt;} @list l19:level2 {mso-level-number-format:alpha-lower; mso-level-text:"\(%2\)"; mso-level-tab-stop:100.5pt; mso-level-number-position:left; margin-left:100.5pt; text-indent:-28.5pt;} @list l19:level3 {mso-level-start-at:29; mso-level-tab-stop:153.0pt; mso-level-number-position:left; margin-left:153.0pt; text-indent:-.5in;} @list l20 {mso-list-id:1917085845; mso-list-type:hybrid; mso-list-template-ids:530626610 -1494705922 -1449997666 67698715 -874208290 67698713 67698715 67698703 67698713 67698715;} @list l20:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:76.5pt; mso-level-number-position:left; margin-left:76.5pt; text-indent:-22.5pt;} @list l20:level2 {mso-level-start-at:14; mso-level-tab-stop:1.5in; mso-level-number-position:left; margin-left:1.5in; text-indent:-.25in;} @list l20:level3 {mso-level-number-format:roman-lower; mso-level-tab-stop:2.0in; mso-level-number-position:right; margin-left:2.0in; text-indent:-9.0pt;} @list l20:level4 {mso-level-start-at:4; mso-level-number-format:alpha-upper; mso-level-tab-stop:2.5in; mso-level-number-position:left; margin-left:2.5in; text-indent:-.25in;} @list l21 {mso-list-id:1957638784; mso-list-type:hybrid; mso-list-template-ids:2057977458 476201600 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l21:level1 {mso-level-number-format:arabic-leading-zero; mso-level-text:%1; mso-level-tab-stop:1.5in; mso-level-number-position:left; margin-left:1.5in; text-indent:-.5in;} @list l22 {mso-list-id:2030595168; mso-list-type:hybrid; mso-list-template-ids:-1672318132 1310458772 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l22:level1 {mso-level-number-format:alpha-lower; mso-level-text:"\(%1\)"; mso-level-tab-stop:54.75pt; mso-level-number-position:left; margin-left:54.75pt; text-indent:-18.75pt;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--><p class="MsoTitle" style="margin-left: 2in; text-align: left; text-indent: 0.5in;" align="left"><span style="font-size: 19pt;"><o:p></o:p></span></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><i>Answer all the questions.<o:p></o:p></i></p> <p class="MsoNormal"><i>Mark the answer in the separate sheets.<o:p></o:p></i></p> <p class="MsoNormal"><i>Duration 1 hour 30 minutes.<o:p></o:p></i></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">01 Gross-Pay<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;">05<span style=""> </span>Basic-Pay<span style=""> </span>PIC 9(5)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;">05 Allowances PIC 9(3)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">If Basic-Pay has a value 1000 and allowances have the value of <span style=""> </span>250.what will be displayed by the statement.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>Display Gross-Pay<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 57.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">1250<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 57.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">01000250<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 57.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">01250<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 57.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">1.250<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: b<span style=""> </span><o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Consider two data items<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">77 W-A<span style=""> </span>Pic<span style=""> </span>9(3) V99<span style=""> </span>Value <span style=""> </span>23.75.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">77 W-B<span style=""> </span>Pic<span style=""> </span>ZZ9V99<span style=""> </span>Value<span style=""> </span>123.45.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">After the statement<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">Move<span style=""> </span>W-A<span style=""> </span>TO<span style=""> </span><span style=""> </span>W-B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">What will be W-B’s valve?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 76.5pt; text-indent: -22.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">123.75<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 76.5pt; text-indent: -22.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">b23.75 (where b indicates space)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 76.5pt; text-indent: -22.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">023.75<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 76.5pt; text-indent: -22.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Invalid move<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: b<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">What is the result of the following?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">DIVIDE A INTO B GIVING C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">a.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">C=A/B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">b.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">The remainder of B/A is stored in C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">c.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">C=B/A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">d.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">The remainder of A/B is stored in C<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: c<span style=""> </span><o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Consider the statement incomplete<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;">If (A NUMERIC)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">DISPLAY A</span><span style="font-size: 8pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span><span style=""> </span>The variable A can be<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 90.75pt; text-align: justify; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">NUMERIC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 90.75pt; text-align: justify; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">ALPHABETIC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 90.75pt; text-align: justify; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">ALPHANUMERIC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 90.75pt; text-align: justify; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">NUMERIC or ALPHANUMERIC<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: d<o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Which of the following is used as the check-protection symbol?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">a.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Z<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">b.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">S<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">c.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">*<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">d.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">+<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: c<span style=""> </span><o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">What, if any is the syntax error in the following piece of code?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify;"><span style="font-size: 11pt;">01<span style=""> </span>B<span style=""> </span>PIC<span style=""> </span>A(7).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify;"><span style="font-size: 11pt;">01<span style=""> </span>C<span style=""> </span>PIC<span style=""> </span>9(4).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify;"><span style="font-size: 11pt;">IF (B NUMERIC)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>ADD 10 TO C<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">a.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">The condition in the IF statement is wrong<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">b.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;"><span style=""> </span>Nothing is wrong<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">c.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Because C is not initialized .ADD 10 TO C is wrong<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">d.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Both B and C should have had same size<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: c<o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">7.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Study the following code<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">01<span style=""> </span><span style=""> </span>A1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>B<span style=""> </span>PIC <span style=""> </span>99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>C<span style=""> </span>PIC <span style=""> </span>X(4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>01<span style=""> </span>A2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>B<span style=""> </span>PIC <span style=""> </span>99V99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>C<span style=""> </span>PIC <span style=""> </span>A(4)<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify;"><span style="font-size: 11pt;">Pick out the valid statement from the following:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.5in; text-align: justify; text-indent: -0.75in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">A1 and A2 can not have same sub-ordinates<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.5in; text-align: justify; text-indent: -0.75in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">A1 and A2 can have the same sub-ordinates but must have PIC clause<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.5in; text-align: justify; text-indent: -0.75in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">There is nothing wrong<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.5in; text-align: justify; text-indent: -0.75in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">A1 and A2 can have same sub-ordinates provided they are not at 01 level<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">8.<span style=""> </span><span style=""> </span>Study the following:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify;"><span style="font-size: 11pt;">01<span style=""> </span><span style=""> </span>A<span style=""> </span>PIC<span style=""> </span><span style=""> </span>99V9<span style=""> </span>VALUE 5.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify;"><span style="font-size: 11pt;">01<span style=""> </span><span style=""> </span>B<span style=""> </span>PIC<span style=""> </span><span style=""> </span>9V9<span style=""> </span>VALUE 6.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify;"><span style="font-size: 11pt;">01<span style=""> </span><span style=""> </span>C<span style=""> </span>PIC<span style=""> </span><span style=""> </span>99V9<span style=""> </span> VALUE 2 5.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify;"><span style="font-size: 11pt;">01<span style=""> </span>D<span style=""> </span>PIC<span style=""> </span><span style=""> </span>99<span style=""> </span> VALUE 3.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>COMPUTE A ROUNDED B C = A + B * C / D.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>ON SIZE ERROR PERFORM PRINT-ERROR.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>The contents of A.B.C after execution of the above statement are<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>(a)<span style=""> </span><span style=""> </span>A=10<span style=""> </span>B=0<span style=""> </span>C=10<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>(b)<span style=""> </span><span style=""> </span>A=10<span style=""> </span>B=9.9<span style=""> </span>C=9.9<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>(c)<span style=""> </span><span style=""> </span>A=10<span style=""> </span>B=0<span style=""> </span>C=9.9<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>(d)<span style=""> </span><span style=""> </span>A=10<span style=""> </span>B=6<span style=""> </span>C=10<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: d<o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">9.<span style=""> </span>How many times <st1:place st="on">PARA</st1:place>-A is performed<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">PERFORM <st1:place st="on">PARA</st1:place>-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER>10<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span><st1:place st="on">PARA</st1:place>-A<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>MOVE P TO Q<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>MOVE 11 TO TIMES-COUNTER<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 79.5pt; text-align: justify; text-indent: -25.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">10<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 79.5pt; text-align: justify; text-indent: -25.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 79.5pt; text-align: justify; text-indent: -25.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">11<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 79.5pt; text-align: justify; text-indent: -25.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">0<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: a<o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">10.<span style=""> </span><span style=""> </span>Consider the following piece of code:<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">01<span style=""> </span>GROUP-ITEM<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05 AMOUNT-1<span style=""> </span>PIC 99V9<span style=""> </span>USAGE COMP VALUE 50.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05 AMOUNT-2<span style=""> </span><span style=""> </span>PIC 9(4) V99 USAGE COMP <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 99pt; text-align: justify;"><span style="font-size: 11pt;">MOVE ZERO TO GROUP-ITEM.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 99pt; text-align: justify;"><span style="font-size: 11pt;">ADD 50 TO AMOUNT-1.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>What will be the comment of AMOUNT-1?<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 76.5pt; text-align: justify; text-indent: -22.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">50<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 76.5pt; text-align: justify; text-indent: -22.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">100<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 76.5pt; text-align: justify; text-indent: -22.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">0<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 76.5pt; text-align: justify; text-indent: -22.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Unpredictable<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: a<o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">11.<span style=""> </span>Consider the following program statements:<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">MOVE 0 TO SW, NO-OF-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">PERFORM PRT-OUT UNTIL SW=1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">DISPLAY NO-OF-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">STOP RUN.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>PRT-OUT<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>READ IN-FILE AT END<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>MOVE 1 TO SW<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>WRITE OUT-REC FROM IN-REC<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>ADD 1 TO NO-OF-REC.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">If the IN-FILE contains 1000 records what value will be displayed after the PERFORM is over? Assume that NO-OF-REC has PIC 9(4).<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 80.25pt; text-align: justify; text-indent: -22.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">1000<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 80.25pt; text-align: justify; text-indent: -22.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">1001<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 80.25pt; text-align: justify; text-indent: -22.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 80.25pt; text-align: justify; text-indent: -22.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">None of the above since there is a syntax error<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: a<o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">12<span style=""> </span>Study the following data description and answer the question given <o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>below<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(i)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">01 ORDER-RECORD<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05 OUT-HEADER <span style=""> </span>PIC<span style=""> </span>X(50)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.5in; text-align: justify;"><span style="font-size: 11pt;">05 ITEM-COUNT <span style=""> </span>PIC<span style=""> </span>99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05 OUT-ITEM<span style=""> </span>PIC<span style=""> </span>X(20)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>OCCURS 1 TO 20 DEPENDING ON ITEM-COUNT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(ii)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">01 NAME-AND-ADDRESS.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05 N-AND-A-LINE OCCURS 5.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.5in; text-align: justify;"><span style="font-size: 11pt;">05 LINE-LENGTH PIC P9.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 2in; text-align: justify;"><span style="font-size: 11pt;">DEPENDING ON LINE-LENGTH.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 2in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(iii)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">01 SALES-LIST.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05 SALESMAN-COUNT<span style=""> </span>PIC 99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05 SALES<span style=""> </span>PIC 9(6) OCCURS 1 TO <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>100 DEPENDING ON SALEMAN-COUNT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 2in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>(iv)<span style=""> </span>01 ORDER – RECORD.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>05 NO-OF-BRANDS<span style=""> </span>PIC<span style=""> </span>99.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>05 BRAND-PURCHASED OCCURS 1 TO 15<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 2in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>DEPENDING ON NO- OF-BRANDS.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>Which one of the following is true?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 132pt; text-align: justify; text-indent: -24pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">01<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">[i] and [iii] are valid.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 132pt; text-align: justify; text-indent: -24pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">02<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">[i ]and [iv] are valid.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 132pt; text-align: justify; text-indent: -24pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">03<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">[i] [iii] and [iv] are valid<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 132pt; text-align: justify; text-indent: -24pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">04<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">all are valid.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: 3 <o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">13.<span style=""> </span><span style=""> </span>C1,C2 and C3 are three conditions whose TRUTH causes are as follows<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">C1<span style=""> </span>TRUE<span style=""> </span>C2<span style=""> </span>FALSE<span style=""> </span>C3<span style=""> </span>TRUE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;">A, B and C are defined as given below.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;">A:<span style=""> </span>C1 AND (NOT C2) OR C3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;">B:<span style=""> </span>(NOT C1) OR (NOT C2 AND NOT C3)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;">C:<span style=""> </span>(C1 OR C2) AND C3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;">D:<span style=""> </span>C1 AND C2 OR C3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;">Given the above information, which of the following statements are valid?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Only A,B and C are TRUE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Only A,C and D are TRUE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">A.B.C and D are all TRUE<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.75in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Only C and D are TRUE<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: b<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">14.<span style=""> </span>Consider the following:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">FD<span style=""> </span>FILE-1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">01<span style=""> </span>REC-1<span style=""> </span>PIC X (80)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">………….<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">WORKING-STORAGE SECTION<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">01<span style=""> </span>W-REC<span style=""> </span>PIC X (90)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>………….<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>PROCEDURE DIVISION.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>FIRST-PARA<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>………….<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>READ FILE-1 INTO W-REC AT END MOVE 1TO EOF-FLAG<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>Which of the following is true with respect to the above?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 66pt; text-indent: -30pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">REC-1 will contain nothing and W-REC will contain the contents of the record read.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 66pt; text-indent: -30pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">REC-1 and W-REC will contain the same data<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 66pt; text-indent: -30pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Syntax is invalid and execution error will occur<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 66pt; text-indent: -30pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">REC-1 and W-REC must have the same size<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: b<span style=""> </span><o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">15.<span style=""> </span>PERFORM ACCUMULATE-TOTALS<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">VARYING A FROM 1 BY 2 UNTIL A > 2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">AFTER B FROM 1 BY 1 UNTIL B > 2<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">AFTER C FROM 2 BY –1 UNTIL C <></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>The paragraph ACCUMULATE-TOTALS would be executed<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">18 times<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">4 times<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">8 times<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">24 times<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: c<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt;">16.<span style=""> </span>There is a file whose ORGANIZATION is INDEXED. You want to read the records from the file in RANDOM fashion as well as sequentially. Then which of the following ACCESS MODE you will specify?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 100.5pt; text-indent: -28.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">SEQUENTIAL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 100.5pt; text-indent: -28.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">RANDOM<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 100.5pt; text-indent: -28.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">DYNAMIC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 100.5pt; text-indent: -28.5pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">ACCESS MODE has nothing to do with it<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: c<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">17.<span style=""> </span>Consider the following PROCEDURE DIVISION entry<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;">OPEN EXTEND IN-FILE<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>Identify the correct statement<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 67.5pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Organization of IN-FILE is sequential and records can be added in the beginning<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 67.5pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Organization of IN-FILE is sequential and records can be added only at the end.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 67.5pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Organization of IN-FILE is indexed and records can be added in the beginning<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 67.5pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Organization of IN-FILE is indexed and records can be added only at the end<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: b<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">18.<span style=""> </span>What is the size of W-REC in the following <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">05W-REC<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">05 A<span style=""> </span>PIC<span style=""> </span>9(4) V99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">05 B<span style=""> </span>REDEFINES A <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><span style="font-size: 11pt;">10 C PIC<span style=""> </span>XX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><span style="font-size: 11pt;">10 D PIC<span style=""> </span>S9 (4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">05 E<span style=""> </span>OCCURS <span style=""> </span>7<span style=""> </span>PIC<span style=""> </span>ZZ.ZZ<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in;"><span style="font-size: 11pt;">05 F<span style=""> </span>OCCURS <span style=""> </span>5<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><span style="font-size: 11pt;">10 G<span style=""> </span><span style=""> </span>PIC<span style=""> </span>ZZ.ZZZ99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><span style="font-size: 11pt;">10 H<span style=""> </span><span style=""> </span>OCCURS <span style=""> </span><span style=""> </span>3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 132pt;"><span style="font-size: 11pt;">15 J<span style=""> </span>PIC<span style=""> </span>9(3)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 9pt; text-indent: -132pt;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span><span style=""> </span><span style=""> </span><span style=""> </span><span style=""> </span><span style=""> </span>15 K<span style=""> </span>PIC<span style=""> </span><span style=""> </span>V99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 9pt; text-indent: -132pt;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">A.<span style=""> </span>177<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">B.<span style=""> </span>161<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">C.<span style=""> </span>180<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">D.<span style=""> </span>None of the above<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: d <o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">19.<span style=""> </span>Consider the following two IF statements:<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">IF X AND NOT Y MOVE A TO B.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">IF Z = 1 OR 9 MOVE TO B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>Select one of the following DATA DIVISION entries, which give identical results <o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>for both the above IF statements:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>(a) 01<span style=""> </span>Z<span style=""> </span>PIC 9<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>88 X VALUE 1.9<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>88 Y VALUE 0.2 THRU 8<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>(b) 01<span style=""> </span>Z<span style=""> </span>PIC 9<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>88 X VALUE 0.2 THRU 8<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>88 Y VALUE 1.9<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>(c) 01<span style=""> </span>Z <span style=""> </span>PIC 9<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">88 X VALUE 1.9<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>88 NOT Y VALUE 0.2 THRU 8<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>(d) None of the above<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">20.<span style=""> </span>Consider the following statements:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">MOVE 10 TO N<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">PERFORM PARA-X N TIMES<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">STOP RUN<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>PARA-X<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>MOVE 5 TO N<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>How many times PARA-X will be executed?<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 76.5pt; text-align: justify; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">10<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 76.5pt; text-align: justify; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">5<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 76.5pt; text-align: justify; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Infinite<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 76.5pt; text-align: justify; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Execution error<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: a<o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">21.<span style=""> </span>Given the following:<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">77 A<span style=""> </span>PIC<span style=""> </span>9V9<span style=""> </span>VALUE 9.5<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">77 B<span style=""> </span><span style=""> </span>PIC <span style=""> </span>9<span style=""> </span>VALUE 9.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">77 C<span style=""> </span>PIC<span style=""> </span>V9<span style=""> </span>VALUE 0.8<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">77 D<span style=""> </span>PIC<span style=""> </span>9.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">77 E<span style=""> </span>PIC<span style=""> </span>9.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">77 F<span style=""> </span>PIC<span style=""> </span>9V999.<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">what are the comment of D,E and F after the following statement are executed;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>COMPUTE F ROUNDED = A + C / B<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>MULTPLY A BY C GIVING E.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>ADD B C A GIVING D ROUNDED. <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">A. f=9.589<span style=""> </span>E=8<span style=""> </span>D=1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">B. F=9.588<span style=""> </span>E=8<span style=""> </span>D=9<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">C. F=9.589<span style=""> </span>E=7<span style=""> </span>D=9<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">D. F=9.589<span style=""> </span>E=7<span style=""> </span>D=1<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: d<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>22.<span style=""> </span><span style=""> </span>Consider the following IF condition; <o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>IF A LESS 1200 <o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>IF B GREATER 25 MOVE 47 TO C<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>ELSE MOVE 57 T0 C<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span><span style=""> </span>IF A GREATER 249 MOVE 67 TO C<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>ELSE NEXT SENTENCE<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>ELSE IF B LESS 67<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span><span style=""> </span>MOVE 27 TO C<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>What will be the value of C when A is 137 and b is 25<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify;"><span style="font-size: 11pt;">a. 27<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify;"><span style="font-size: 11pt;">b. 57<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify;"><span style="font-size: 11pt;">c. 67<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify;"><span style="font-size: 11pt;">d. none<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: a<o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>23.<span style=""> </span>Consider the following;<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>77 W-NUM<span style=""> </span>PIC<span style=""> </span>9<span style=""> </span>VALUE 0<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>…………..<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>MOVE 1 TO W-NUM<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>PERFORM PARA-X UNTIL W-NUM >9<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>…………..<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>PARA-X<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>ADD I TO W-NIM<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>How many times <st1:place st="on">PARA</st1:place> –X is executed?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify;"><span style="font-size: 11pt;">a. 10<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify;"><span style="font-size: 11pt;">b. 9<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify;"><span style="font-size: 11pt;">c. 11<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify;"><span style="font-size: 11pt;">d. Infinite loop<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: d<o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">24.<span style=""> </span>Consider the following code;<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>77<span style=""> </span>A<span style=""> </span>PIC<span style=""> </span>99V99<span style=""> </span>VALUE 55.35<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>77<span style=""> </span>B<span style=""> </span>PIC<span style=""> </span>99V999<span style=""> </span>VALUE 32.754<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">ADD B TO A ON SIZE ERROR DISPLAY “ERROR!!!!!”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in; text-align: justify;"><span style="font-size: 11pt;">What will be the result?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in;"><span style="font-size: 11pt;">a. A=88.10<span style=""> </span>B=32.754<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in;"><span style="font-size: 11pt;">b. A=87. (x) B=32.754<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in;"><span style="font-size: 11pt;">c. A=87.10<span style=""> </span>B=32.754<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1.25in;"><span style="font-size: 11pt;">d. ERROR!!! WILL BE DILPLAY ED ON THE SCREEN.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: d <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 1.25in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt;">25. <span style=""> </span>A paragraph PARA-X is to be executed when none of the data names A, B and C have a value of 1. Which of the following will achieve this?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">(a) IF A NOT= 1 OR B NOT = 1OR C NOT = 1 PERFORM PARA-X<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">(b) IF NOT A = 1 AND B = 1 AND C = 1 PERFORM PARA-X<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">(c) IF A NOT = 1 IF NOT B = 1 OR C = 1 PERFORM PAR-X<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">(d)IF A NOT = 1 AND B NOT = 1 AND C NOT = 1 PERFORM PARA-X<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: d<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">26. <span style=""> </span><span style=""> </span>Study the five expressions and the class, which they belong<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <h1><span style="font-size: 11pt;">S.No<span style=""> </span>Expression<span style=""> </span>class<o:p></o:p></span></h1> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">1<span style=""> </span>“SPACES”<span style=""> </span>Figurative constant<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">2<span style=""> </span>“Deprecation Schedule”<span style=""> </span> <span style=""> </span>Non numeric literal<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">3<span style=""> </span>“12%<span style=""> </span>“<span style=""> </span>Non numeric literal<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">4<span style=""> </span>INTEREST-DUE<span style=""> </span>Non numeric literal<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">5<span style=""> </span>ZEROES<span style=""> </span>Figurative Constant<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">Which of the following statements is true?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">a.<span style=""> </span>1 and 3 are incorrect<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span><span style=""> </span>b.<span style=""> </span>1 and 4 are incorrect <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">c.<span style=""> </span>3<span style=""> </span>and 4 are incorrect <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">d.<span style=""> </span>All are correct<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: b<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>27.<span style=""> </span> Identify the invalid data name from the following;<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">(a) SAVINGS-ACCOUNT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">(b) ANNUAL-ALLOCATION-FOR-OVERHEAD<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">(c) $AMOUNT250<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">(d) 12DEMAND<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: c (Data Name contains $ symbol)<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">28. <span style=""> </span>Study the DATA DIVISION entries and the three PROCEDURE<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>DIVISION entries given below:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">01<span style=""> </span>END-OF-FILE<span style=""> </span>SWITCH<span style=""> </span>PIC XXX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">88 NO-MORE-RECS VALUE “YES”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">88 MORE-RECS<span style=""> </span>VALUE “NO”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;">(i) Read Sample File At End Move “Yes” To No-More-Recs<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">(ii) If No-More-Recs Value “Yes”<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">(iii) If No-More-Recs Go To Last-<st1:place st="on">Para</st1:place><o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">Which are wrong?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">(a) (i)<span style=""> </span>and (ii)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">(b) (ii) and (iii)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">(c) (i) and (iii)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">(d) all<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;">29.<span style=""> </span> The following entries appear in the WORKING – STORAGE SECTION:<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 11.25pt; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">01 DATE-TODAY<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>YY<span style=""> </span>PIC<span style=""> </span>XX<span style=""> </span>VALUE “90”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>MM<span style=""> </span>PIC<span style=""> </span>XX <span style=""> </span>VALUE “12”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>DD<span style=""> </span>PIC<span style=""> </span>XX <span style=""> </span>VALUE “31”<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>01 <span style=""> </span>DATE – EDIT <span style=""> </span>PIC <span style=""> </span>XX/XX/XX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify;"><span style="font-size: 11pt;"><span style=""> </span>MOVE DATE-TODAY TO DATE-EDIT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">(a)<span style=""> </span>90123<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">(b)<span style=""> </span>90/12/31<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">(c)<span style=""> </span><st1:date month="31" day="12" year="1990" st="on">31/12/90</st1:date><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-align: justify; text-indent: 0.25in;"><span style="font-size: 11pt;">(d)<span style=""> </span>311290<b style=""><o:p></o:p></b></span></p> <p class="MsoNormal" style="text-align: justify;"><b style=""><span style="font-size: 11pt;">Ans: b<o:p></o:p></span></b></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: -0.5in;"><span style="font-size: 11pt;">30.<span style=""> </span>How many bytes will be allocated for the following record description entries?<o:p></o:p></span></p> <p class="MsoNormal" style="text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">01 REC-A<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>A<span style=""> </span>PIC<span style=""> </span>S9 (4)<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>B<span style=""> </span>PIC<span style=""> </span>XXXBXXX<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>C<span style=""> </span>PIC<span style=""> </span> ****9.99<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>D<span style=""> </span>PIC<span style=""> </span>S9 (5)<span style=""> </span>COMP-3<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>E<span style=""> </span>PIC<span style=""> </span>9(3)<span style=""> </span>COMP<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 2in; text-align: justify;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">(a)<span style=""> </span>29<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: justify; text-indent: 0.5in;"><span style="font-size: 11pt;">(b)<span style=""> </span>26<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-align: justify;"><span style="font-size: 11pt;">(c)<span style=""> </span>25<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;"><span style="font-size: 11pt;">(d)<span style=""> </span>28<o:p></o:p></span></p> <p class="MsoNormal" style=""><b style=""><span style="font-size: 11pt;">Ans: 24 (Wrong in the given options)<span style=""> </span><o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">31.<span style=""> </span>`What is wrong with the following data declaration?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>01 W-Date <span style=""> </span>PIC<span style=""> </span>X (6).<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>05<span style=""> </span>DD<span style=""> </span>PIC<span style=""> </span>99.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>05<span style=""> </span>MM<span style=""> </span>PIC<span style=""> </span>99.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>05<span style=""> </span>YY<span style=""> </span>PIC<span style=""> </span>99.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: (Level 01 has the PIC clause)<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">32.<span style=""> </span>What is the output generated by the following code?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 1.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">01<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">GRP-1.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>SUBFLD1<span style=""> </span>PIC<span style=""> </span>XX<span style=""> </span>VALUE<span style=""> </span>“AB”.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 1in; text-indent: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>F<span style=""> </span>PIC<span style=""> </span>X (6)<span style=""> </span>VALUE SPACES.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>01<span style=""> </span>GRP-2<span style=""> </span> REDEFINES GRP-1.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>05<span style=""> </span>SUBFLD2<span style=""> </span>PIC<span style=""> </span>XX.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>05<span style=""> </span>SUBFLD3<span style=""> </span>PIC<span style=""> </span>XX.<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><span style=""> </span>05 <span style=""> </span>F<span style=""> </span>PIC<span style=""> </span>X (4).<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>IF SUBFLD1 NOT = SPACES<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>DISPLAY “ SUBFLD1”<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>MOVE “ABBCCD” TO GRP-1<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>IF SUBFLD3 = SPACES<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>DISPLAY “SPACES”<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>ELSE<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>DISPLAY “SUBFLD3”<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>DISPLAY “END”<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>ELSE<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>DISPLAY “SPACES”<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span>DISPLAY “END”<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">SUBFLD1<span style=""> </span>(c)<span style=""> </span>SUBFLD1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">SUBFLD3<span style=""> </span><span style=""> </span>END<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">END<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">SPACES<span style=""> </span>(d)<span style=""> </span>SUBFLD1<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;">END<span style=""> </span><span style=""> </span>SPACES<b style=""><o:p></o:p></b></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: a<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">33.<span style=""> </span>88 level entry is used for<b style="">…Condition level…</b><o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">34.<span style=""> </span>ZEROS and SPACES are <b style="">……Figurative…..</b> Constants<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">35.<span style=""> </span>COMPUTE<span style=""> </span>X =<span style=""> </span>A * B – C * D and<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">COMPUTE X = (A * B) – (C * D)<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Are not the same<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Are same<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Syntactically wrong<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">Will yield a runtime error<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: b<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">36.<span style=""> </span>OCCURS clause is used in the DATA DIVISION on the data names at <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">01 level<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">77 level<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">88 level<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 11pt;"><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><span style="font-size: 11pt;">any level from 02 to 49<b style=""><o:p></o:p></b></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: d (Occurs Clause can not be specified for an item whose level number is 01, 77, and 88)<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">37.<span style=""> </span>Consider the following COBOL entries<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>X<span style=""> </span>PIC<span style=""> </span>99 VALUE 10.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">SUBTRACT 20 FROM X.<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">The result value of X will be<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">(a) 10<span style=""> </span>(b) 00<span style=""> </span><span style=""> </span>(c) Compile time error<span style=""> </span>(d) none of these<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: a<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">38.<span style=""> </span>Consider the following COBOL entries<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">05<span style=""> </span>X<span style=""> </span>PIC<span style=""> </span>99 VALUE 10<span style=""> </span>.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">ADD 40 TO X<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">COMPUTE X = 3 * X – 40<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">The result of X is<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">(a)<span style=""> </span>10<span style=""> </span><span style=""> </span>(b) 40<span style=""> </span>(c) Compile or Run time error<span style=""> </span> (d) none of these<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: a<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">39.<span style=""> </span>The hierarchy of the execution of logical operators is<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">(a)<span style=""> </span>NOT<span style=""> </span>AND<span style=""> </span>OR<span style=""> </span>(c) OR<span style=""> </span>AND<span style=""> </span>NOT<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">(b)<span style=""> </span>AND<span style=""> </span>OR<span style=""> </span>NOT<span style=""> </span><span style=""> </span>(d) OR<span style=""> </span>NOT<span style=""> </span>AND<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: a<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">40.<span style=""> </span>The order of precedence of arithmetic operators in an expression can be overridden with <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">The use of<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">(a)<span style=""> </span>[<span style=""> </span>]<span style=""> </span><span style=""> </span>(b) ( )<span style=""> </span>(c) { }<span style=""> </span>(d) any of the above<b style=""><o:p></o:p></b></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: b<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">41.<span style=""> </span>Which of the following paragraphs is compulsory in every COBOL program?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 54.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">SPECIAL-NAMES<span style=""> </span>(c)<span style=""> </span>FILE-CONTROL<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 54.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">PROGRAM-ID<span style=""> </span>(d)<span style=""> </span>OBJECT-COMPUTER<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: b<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt;">42.<span style=""> </span>Which of the following files can be opened in all the 4 modes? The four modes are INPUT, OUTPUT, I-O, EXTEND.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 54.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">INDEXED<span style=""> </span>(c)<span style=""> </span>SEQUENTIAL <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 54.75pt; text-indent: -18.75pt;"><!--[if !supportLists]--><span style="font-size: 11pt;"><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><span style="font-size: 11pt;">RELATIVE<span style=""> </span>(d)<span style=""> </span>All of<span style=""> </span>the above<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: c<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="font-size: 11pt;">43.<span style=""> </span>Which of the following editing character symbols is to be used if a minus (-) is to appear before the value, if the value is –ve and a plus (+) is to appear before the value, if the value is +ve?<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;">(a)<span style=""> </span>+<span style=""> </span>(b) -<span style=""> </span>(c) + or -<span style=""> </span>(d) it is not possible<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 11pt;">Ans: a<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <h2><u><span style="font-size: 12pt;">Consider the following passage for<span style=""> </span>answering questions 44 to 47<o:p></o:p></span></u></h2> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoBodyText" style="text-align: justify;">A program is written to accept an answer to the query “ End of the day “.<span style=""> </span>If the response is “N” then the program accepts quantity purchased and rate of the item and displays the amount to be collected.<span style=""> </span>Then the above query is again displayed and the loop continues.<span style=""> </span>At the end of the day, when the response to the above query is “Y” the day collection is displayed.</p> <p class="MsoNormal" style="text-align: justify;"><o:p> </o:p></p> <p class="MsoBodyText2" style="text-align: justify;">The program checks that the quantity purchased is between 25 and 125 and the rate of the item between 10.00 and 75.00 .<span style=""> </span>If any of these two conditions are violated, the program displays an appropriate message and asks for next input .<span style=""> </span>The amounts are displayed with proper editing.<span style=""> </span>The program is written assuming that there can be a maximum of 1000 transactions a day.</p> <p class="MsoBodyText2"><o:p> </o:p></p> <p class="MsoBodyText2"><o:p> </o:p></p> <p class="MsoBodyText2">44.<span style=""> </span>How many variables would be declared for the above problem?</p> <p class="MsoBodyText2"><span style=""> </span></p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->3</p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->4</p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->5</p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->7</p> <p class="MsoBodyText2"><o:p> </o:p></p> <p class="MsoBodyText2"><o:p> </o:p></p> <p class="MsoBodyText2"><o:p> </o:p></p> <p class="MsoBodyText2"><o:p> </o:p></p> <p class="MsoBodyText2">45.<span style=""> </span>What would be the PICTURE clause of the variable used to calculate end of the day </p> <p class="MsoBodyText2" style="text-indent: 0.5in;">Collections?</p> <p class="MsoBodyText2" style="text-indent: 0.5in;"><o:p> </o:p></p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->9(9)V99</p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->9(8)V99</p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->9(5)V99</p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Information given is insufficient to arrive at the answer</p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 11pt;">46.<span style=""> </span>What should be the PICTURE clause of the variable used to calculate amount to be <o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;">Collected?<o:p></o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->9(9)V99</p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->9(8)V99</p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->9(5)V99</p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Information given is insufficient to arrive at the answer</p> <p class="MsoBodyText2"><o:p> </o:p></p> <p class="MsoBodyText2">47.<span style=""> </span>How many IF statements do you think, will be in the program</p> <p class="MsoBodyText2"><o:p> </o:p></p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">(a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->3</p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">(b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->4</p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">(c)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->5</p> <p class="MsoBodyText2" style="margin-left: 1in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">(d)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Information given is insufficient to arrive at the answer</p> <p class="MsoBodyText2"><o:p> </o:p></p> <p class="MsoBodyText2"><o:p> </o:p></p> <p class="MsoBodyText2">48.<span style=""> </span>Explain about Reference Modification with syntax.</p> <p class="MsoBodyText2"><o:p> </o:p></p> <p class="MsoBodyText2">49.<span style=""> </span>Explain the difference between the Static call and Dynamic call </p> <p class="MsoBodyText2"><o:p> </o:p></p> <p class="MsoBodyText2">50.<span style=""> </span>What is COMP, COMP-1 , COMP-2 , COMP-3 ? How it allocates the no of bytes</p> <p class="MsoBodyText2" style="text-indent: 0.5in;"><span style=""> </span>with example?</p> <p class="MsoNormal"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style="font-size: 11pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-align: center;" align="center">****ALL THE BEST****</p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.75in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.75in;"><o:p> </o:p></p> <p class="MsoNormal" style="text-align: justify;"><o:p> </o:p></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-77846691275758237692008-07-17T23:09:00.001-07:002008-12-23T21:45:21.639-08:00ALIT TEST-1<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} h1 {mso-style-next:Normal; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:1; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-font-kerning:0pt; mso-bidi-font-weight:normal; text-decoration:underline; text-underline:single;} p.MsoHeader, li.MsoHeader, div.MsoHeader {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} p.MsoFooter, li.MsoFooter, div.MsoFooter {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:47649232; mso-list-type:simple; mso-list-template-ids:992618724;} @list l0:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l1 {mso-list-id:142546430; mso-list-type:simple; mso-list-template-ids:992618724;} @list l1:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l2 {mso-list-id:196284219; mso-list-type:simple; mso-list-template-ids:992618724;} @list l2:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l3 {mso-list-id:361636608; mso-list-type:simple; mso-list-template-ids:992618724;} @list l3:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l4 {mso-list-id:554316681; mso-list-type:simple; mso-list-template-ids:-1960392668;} @list l4:level1 {mso-level-tab-stop:19.5pt; mso-level-number-position:left; margin-left:19.5pt; text-indent:-19.5pt;} @list l5 {mso-list-id:641733339; mso-list-type:simple; mso-list-template-ids:67698703;} @list l5:level1 {mso-level-tab-stop:.25in; mso-level-number-position:left; margin-left:.25in; text-indent:-.25in;} @list l6 {mso-list-id:866992758; mso-list-type:simple; mso-list-template-ids:-945751316;} @list l6:level1 {mso-level-number-format:alpha-lower; mso-level-text:"%1\)"; mso-level-tab-stop:.75in; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l7 {mso-list-id:1026053864; mso-list-type:simple; mso-list-template-ids:992618724;} @list l7:level1 {mso-level-start-at:2; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l8 {mso-list-id:1037269900; mso-list-type:simple; mso-list-template-ids:992618724;} @list l8:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l9 {mso-list-id:1049568125; mso-list-type:simple; mso-list-template-ids:1399102548;} @list l9:level1 {mso-level-start-at:2; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l10 {mso-list-id:1065496076; mso-list-type:simple; mso-list-template-ids:1483905010;} @list l10:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l11 {mso-list-id:1105266528; mso-list-type:simple; mso-list-template-ids:992618724;} @list l11:level1 {mso-level-start-at:2; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l12 {mso-list-id:1273824095; mso-list-type:simple; mso-list-template-ids:-294365142;} @list l12:level1 {mso-level-number-format:arabic-leading-zero; mso-level-text:%1; mso-level-tab-stop:37.5pt; mso-level-number-position:left; margin-left:37.5pt; text-indent:-.25in;} @list l13 {mso-list-id:1442992780; mso-list-type:simple; mso-list-template-ids:949128446;} @list l13:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l14 {mso-list-id:1497187814; mso-list-type:simple; mso-list-template-ids:992618724;} @list l14:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l15 {mso-list-id:1561019058; mso-list-type:simple; mso-list-template-ids:992618724;} @list l15:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l16 {mso-list-id:1671524196; mso-list-type:simple; mso-list-template-ids:749000054;} @list l16:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l17 {mso-list-id:1715886736; mso-list-type:simple; mso-list-template-ids:992618724;} @list l17:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l18 {mso-list-id:1728527737; mso-list-type:simple; mso-list-template-ids:992618724;} @list l18:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l19 {mso-list-id:1736708571; mso-list-type:simple; mso-list-template-ids:-2054289900;} @list l19:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l20 {mso-list-id:1972979402; mso-list-type:simple; mso-list-template-ids:992618724;} @list l20:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} @list l21 {mso-list-id:2092656898; mso-list-type:simple; mso-list-template-ids:992618724;} @list l21:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.5in;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <h1>
<br /></h1> <p class="MsoNormal"><o:p> </o:p></p> <h1>DB2</h1> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Is it required to run any other utility after running REORG utility? If so, give reasons.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Explain Denormalization with example.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Explain Impedance<span style=""> </span>Mismatch. How would you overcome the same?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Explain different Data types available in DB2</p> <p class="MsoNormal"><o:p> </o:p></p> <h1><span style=""> </span>JCL</h1> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->How are datasets concatenated? Explain with Example.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What are the ‘normal’ dispositions of the DISP parameter.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->When should DISP = MOD used.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What is the difference between JOBLIB and STEPLIB statements</p> <p class="MsoNormal"><o:p> </o:p></p> <h1>CICS</h1> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What is the difference between EXEC CICS XCTL and an EXEC CICS START command?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->How can you start<span style=""> </span>a CICS transaction other than keying in the Transaction ID on the terminal?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What CICS command is used to obtain the user logon-id?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What is the usage of<span style=""> </span>RESP Option in a CICS command?</p> <p class="MsoNormal"><o:p> </o:p></p> <h1>COBOL</h1> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Write Record Description entries for the following </p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in;">Transaction Record</p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <table class="MsoNormalTable" style="border: medium none ; margin-left: 27.9pt; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0"> <tbody><tr style="page-break-inside: avoid; height: 32.25pt;"> <td rowspan="3" style="border: 1pt solid windowtext; padding: 0in 5.4pt; width: 49.5pt; height: 32.25pt;" valign="top" width="66"> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Invoice</p> <p class="MsoNormal">Number</p> </td> <td colspan="3" style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 134.25pt; height: 32.25pt;" valign="top" width="179"> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><span style=""> </span>Location<span style=""> </span></p> </td> <td colspan="3" style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1pt 1pt 1pt medium; padding: 0in 5.4pt; width: 149.25pt; height: 32.25pt;" valign="top" width="199"> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><span style=""> </span>Product Description</p> </td> </tr> <tr style="page-break-inside: avoid; height: 27.75pt;"> <td rowspan="2" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 36.75pt; height: 27.75pt;" valign="top" width="49"> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Ware </p> <p class="MsoNormal">House</p> </td> <td rowspan="2" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 47.25pt; height: 27.75pt;" valign="top" width="63"> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">City</p> </td> <td rowspan="2" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 50.25pt; height: 27.75pt;" valign="top" width="67"> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Job Lot</p> </td> <td colspan="2" style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 96.75pt; height: 27.75pt;" valign="top" width="129"> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><span style=""> </span>No. of Items</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 52.5pt; height: 27.75pt;" valign="top" width="70"> <p class="MsoNormal">Item Name</p> </td> </tr> <tr style="page-break-inside: avoid; height: 45pt;"> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.75pt; height: 45pt;" valign="top" width="65"> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Size</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48pt; height: 45pt;" valign="top" width="64"> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">Model</p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 52.5pt; height: 45pt;" valign="top" width="70"> <p class="MsoNormal"><o:p> </o:p></p> </td> </tr> <!--[if !supportMisalignedColumns]--> <tr height="0"> <td style="border: medium none ;" width="66"></td> <td style="border: medium none ;" width="49"></td> <td style="border: medium none ;" width="63"></td> <td style="border: medium none ;" width="67"></td> <td style="border: medium none ;" width="65"></td> <td style="border: medium none ;" width="64"></td> <td style="border: medium none ;" width="70"></td> </tr> <!--[endif]--> </tbody></table> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What if anything is wrong with the following routines. Correct all errors.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>PERFORM 300-ALIT-PARA VARYING A FROM 1 BY 1 UNTIL A> 20</p> <p class="MsoNormal" style="margin-left: 0.5in;">:</p> <p class="MsoNormal" style="margin-left: 0.5in;">:</p> <p class="MsoNormal" style="margin-left: 0.5in;">:</p> <p class="MsoNormal" style="margin-left: 0.5in;">300-ALIT-PARA</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>ADD C TO B</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>ADD 1 TO A</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->If PERFORM UNTIL END-OF-FILE = ‘YES’ . . . . . . . .<span style=""> </span>END-PERFORM is coded in the main <span style=""> </span>module. What will be the first instructon following the PERFORM.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Write a Single Statement to execute 500-ALIT-PARA if A is between 2 and 10 exclusive of end points using an EVALUATE statement.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><b style=""><u>ALIT TEST-2<o:p></o:p></u></b></p> <p class="MsoNormal"><b style=""><u><o:p><span style="text-decoration: none;"> </span></o:p></u></b></p> <h1>DB2</h1> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Explain the functions of BIND in Program preparation.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What are the differences of<span style=""> </span>DB2 Indexes. Explain briefly.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Explain DB2 catalogs with examples.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Explain Static and Dynamic SQL.</p> <p class="MsoHeader" style=""><o:p> </o:p></p> <h1>JCL</h1> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Write a JCL to Create a VSAM dataset.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->How is a Symbolic Parameter coded?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->How is dataset is passed from one step to another.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->How and where is LASTCC and MAXCC used in JCL’s.</p> <p class="MsoNormal"><o:p> </o:p></p> <h1>CICS</h1> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Suppose that an application Program uses the HANDLE AID ENTER(PARA1) and HANDLE CONDITION<span style=""> </span>ERROR(PARA2) commands, if the Program issued a RECEIVE MAP and a MAPFAIL condition occurred, which process will take control , PARA1 or PARA2?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Write some of the informations available in the EIB area.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Explain different Cursor positioning techniques?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What are the different macros used in map creation?</p> <p class="MsoNormal"><o:p> </o:p></p> <h1>COBOL</h1> <p class="MsoNormal">1.<span style=""> </span>What if anything is wrong with the following routines. Correct all errors.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>PERFORM 300-ALIT-PARA<span style=""> </span>8<span style=""> </span>TIMES.</p> <p class="MsoNormal" style="margin-left: 0.5in;">:</p> <p class="MsoNormal" style="margin-left: 0.5in;">:</p> <p class="MsoNormal" style="margin-left: 0.5in;">:</p> <p class="MsoNormal" style="margin-left: 0.5in;">300-ALIT-PARA.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: 0.5in;">IF A= B<span style=""> </span><span style=""> </span>GO TO<span style=""> </span>400-ALIT-PARA</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>ADD A TO B.</p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in;">400-ALIT-PARA.</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>ADD 5 TO B.</p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What if anything is wrong with the following. Correct all errors.</p> <p class="MsoNormal" style="margin-left: 0.5in;">IF<span style=""> </span>A < a="21" a="5"> 5 PERFORM 100-ALIT-PARA</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Using COMPUTE stmt. Find –</p> <p class="MsoNormal" style="text-indent: 0.5in;">Total wages = rate * 40 + (1.5 * rate * overtime hours)</p> <p class="MsoNormal" style="margin-left: 0.5in;">Two fields are supplied RATE and HRS-WORKED. Overtime hrs worked is calculated in excess of 40 hrs (assume everyone works at least 40 hrs.)</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Assume the following statements are executed</p> <p class="MsoNormal" style="margin-left: 0.5in;">MOVE HIGH-VALUES<span style=""> </span>TO PART-NO OF TRANS-REC</p> <p class="MsoNormal" style="margin-left: 0.5in;">Suppose the following is then executed</p> <p class="MsoNormal" style="margin-left: 0.5in;">IF PART-NO OF MASTER-REC <> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>PERFORM 500-ALIT</p> <p class="MsoNormal" style="margin-left: 0.5in;">ELSE</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>PERFORM 600-ALIT</p> <p class="MsoNormal" style="margin-left: 0.5in;">END-IF.</p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>Which routine is going to be executed after this.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <h1>ALIT TEST-3</h1> <p class="MsoNormal"><b style=""><u><o:p><span style="text-decoration: none;"> </span></o:p></u></b></p> <h1>DB2</h1> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Explain the usage of the following BIND parameters</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="">a)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->REPLACE</p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="">b)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->REBIND</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Is it possible to improve performance with the use of Clustering Index? Explain.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Explain the different DELETE Rules.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What is an ALIAS and SYNONYM and differences between them.</p> <p class="MsoNormal"><o:p> </o:p></p> <h1>JCL</h1> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What return code is issued if a job or job step exceeded the time limit?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What is the default for the TIME parameter if it is not coded on the EXEC statement?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What does parameter MSGLEVEL on the JOB statement mean and what is the advantage of using it?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What is the purpose of the JOB statement?</p> <p class="MsoHeader" style=""><o:p> </o:p></p> <h1>CICS</h1> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What would cause a MAPFAIL when issuing a RECEIVE MAP command?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What CICS command does the application have to issue to update an existing record in a TSQ?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What are the differences between TSQ and TDQ?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->In what way can the application programmer use the information<span style=""> </span>- EIBCALEN=0 for effective programming?</p> <p class="MsoNormal"><o:p> </o:p></p> <h1>COBOL</h1> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal">1.<span style=""> </span>What if anything is wrong with the following routines. Correct all errors.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span><span style=""> </span>PERFORM 300-ALIT-PARA<span style=""> </span>UNTIL CNTR = 8.</p> <p class="MsoNormal" style="margin-left: 0.5in;">:</p> <p class="MsoNormal" style="margin-left: 0.5in;">:</p> <p class="MsoNormal" style="margin-left: 0.5in;">:</p> <p class="MsoNormal" style="margin-left: 0.5in;">300-ALIT-PARA.</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>ADD A TO B.</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>ADD 1 TO CNTR</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>IF CNTR = 8</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span><span style=""> </span>STOP RUN.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What if anything is wrong with the following routines. Correct all errors.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in;">IF A IS NOT EQUAL TO 3 OR</p> <p class="MsoNormal" style="text-indent: 0.5in;">A IS NOT EQUAL TO 4</p> <p class="MsoNormal" style="text-indent: 0.5in;">PERFORM 500-ALIT-PARA</p> <p class="MsoNormal" style="margin-left: 0.5in;">END-IF.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Write a Single Statement to execute 500-ALIT-PARA if A is between 2 and 10 exclusive of end points using an IF statement.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Code a simple SORT to read a file called IN-FILE , sort it into ascending name sequence</p> <p class="MsoNormal" style="text-indent: 0.5in;"><span style=""> </span>(S-NAME). Create an out file called OUT-FILE.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <h1>ALIT TEST-4</h1> <p class="MsoNormal"><b style=""><u><o:p><span style="text-decoration: none;"> </span></o:p></u></b></p> <h1>DB2</h1> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->How can you keep the CURSOR open even after giving COMMIT.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What is READ-ONLY cursor?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What are the COLUMN functions available in SQL?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What is wrong with the following query </p> <p class="MsoNormal" style="margin-left: 0.5in;">EXEC SQL</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>SELECT COL1, COL2,AVG(COL3),COL4</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>FROM TABALIT</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>GROUP BY COL1,COL2,COL3</p> <p class="MsoNormal" style="margin-left: 0.5in;">END-EXEC.</p> <p class="MsoNormal"><o:p> </o:p></p> <h1>JCL</h1> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Use the PROCedure below and code the invoking JCL to:</p> <p class="MsoNormal"><span style=""> </span>Step1 <span style=""> </span>add a REGION of 256K</p> <p class="MsoNormal"><span style=""> </span><span style=""> </span>Step2<span style=""> </span>remove the ACCT parameter</p> <p class="MsoNormal"><span style=""> </span>Step3<span style=""> </span>add a PARM parameter of January</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><span style=""> </span>//ABCPROC<span style=""> </span>PROC<span style=""> </span>UN=3380</p> <p class="MsoNormal"><span style=""> </span>//STEP1<span style=""> </span>EXEC<span style=""> </span>PGM=SORT</p> <p class="MsoNormal"><span style=""> </span>//SORTIN<span style=""> </span>DD<span style=""> </span>DSN=TIMERCDS,DISP=SHR</p> <p class="MsoNormal"><span style=""> </span>//SORTOUT<span style=""> </span>DD<span style=""> </span>DSN=TRANS,DISP=(,PASS,DELETE),</p> <p class="MsoNormal"><span style=""> </span><span style="" lang="FR">//<span style=""> </span>SPACE=(TRK,(2,1)),UNIT=&UN,VOL=SER=EDPAK2,<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="FR"><span style=""> </span></span>//<span style=""> </span>DCB=(LRECL=80,BLKSIZE=8000,RECFM=FB)</p> <p class="MsoNormal"><span style=""> </span>//SYSOUT<span style=""> </span>DD<span style=""> </span>SYSOUT=*</p> <p class="MsoNormal"><span style=""> </span>//SYSIN<span style=""> </span>DD<span style=""> </span>DSN=TRANS.SORT.CNTL,DISP=SHR</p> <p class="MsoNormal"><span style=""> </span>//STEP2<span style=""> </span>EXEC<span style=""> </span>PGM=PAYROLL,ACCT=1492</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style=""> </span>//PAYIN<span style=""> </span>DD<span style=""> </span>DSN=MSTRN,DISP=SHR</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style=""> </span><span style="" lang="FR">//PAYTRANS<span style=""> </span>DD<span style=""> </span>DSN=TRANS,DISP=SHR<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="" lang="FR"><span style=""> </span></span>//REPORT<span style=""> </span>DD<span style=""> </span>SYSOUT=*</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style=""> </span>//STEP3<span style=""> </span>EXEC<span style=""> </span>PGM=PAYACCT</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style=""> </span>//MSTR<span style=""> </span>DD<span style=""> </span>DSN=MSTROUT,DISP=SHR</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style=""> </span>//REPORT1<span style=""> </span>DD<span style=""> </span>SYSOUT=*</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style=""> </span>//REPORT2<span style=""> </span>DD<span style=""> </span>SYSOUT=*</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Which system completion code is issued when a program module cannot be found</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->How is a new GDG coded</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Explain difference between Cataloged and Instream procedures</p> <p class="MsoNormal"><o:p> </o:p></p> <h1>CICS</h1> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What is a residential program?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Explain difference between DATAONLY and MAPONLY options in EXEC CICS SEND MAP command.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]--><span style=""> </span>How do you suspend and reactivate HANDLE Conditions before and after calling Sub-routines?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->How can you view the contents of a TDQ or TSQ?</p> <p class="MsoNormal"><o:p> </o:p></p> <h1>COBOL</h1> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What are the different ways to sort a file using SORT statement.</p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->In the following example how many times 100-ALIT-PARA is going to execute</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in;">INITIALIZE WS-VARC</p> <p class="MsoNormal" style="margin-left: 0.25in;">PERFORM 100-ALIT-PARA UNTIL WS-VARX = 10.</p> <p class="MsoNormal" style="margin-left: 0.25in;">:</p> <p class="MsoNormal" style="margin-left: 0.25in;">:</p> <p class="MsoNormal" style="margin-left: 0.25in;">:</p> <p class="MsoNormal" style="margin-left: 0.25in;">100-ALIT-PARA.</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>MOVE 1 TO WS-CNTR.</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>MOVE WS-VARA TO WS-VARB.</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>:</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>:</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>:</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>COMPUTE<span style=""> </span>WS-VARC = WS-VARC + 2.</p> <p class="MsoNormal" style="margin-left: 0.25in;"><span style=""> </span>MOVE WS-VARC TO WS-VARX.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]--><span style=""> </span>What if anything is wrong with the following routines. Correct all errors.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.5in;">IF A = B OR IF A = C</p> <p class="MsoNormal" style="margin-left: 0.5in;"><span style=""> </span>PERFORM 100-ALIT-PARA</p> <p class="MsoNormal" style="margin-left: 0.5in;">END-IF.</p> <p class="MsoNormal" style="margin-left: 0.5in;"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 0.25in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]--><span style=""> </span>Which SECTION will be there in the called Program in which data to be passed to the calling<span style=""> </span><span style=""> </span>Program.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <h1>ALIT TEST-5</h1> <p class="MsoNormal"><o:p> </o:p></p> <h1>DB2</h1> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Which Tablespace favours I/O Parallelism? Briefly explain the same with example.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What are the different physical and logical DB2 objects?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Explain the difference between CHAR and LONGVARCHAR .</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->When is WHERE CURRENT OF clause used?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <h1>JCL</h1> <p class="MsoNormal">1.<span style=""> </span>Use the PROCedure below and code the invoking JCL to:</p> <p class="MsoNormal"><span style=""> </span>Step1 <span style=""> </span>catalog dataset TRANS and put it in a 3390 Disk EDPAK8</p> <p class="MsoNormal"><span style=""> </span>Remove BLKSIZE from Transfile</p> <p class="MsoNormal"><span style=""> </span><span style=""> </span>Step2<span style=""> </span>remove the ACCT parameter</p> <p class="MsoNormal"><span style=""> </span>Step3<span style=""> </span>add a PARM parameter of January</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><span style=""> </span>//ABCPROC<span style=""> </span>PROC<span style=""> </span>UN=3380</p> <p class="MsoNormal"><span style=""> </span>//STEP1<span style=""> </span>EXEC<span style=""> </span>PGM=SORT</p> <p class="MsoNormal"><span style=""> </span>//SORTIN<span style=""> </span>DD<span style=""> </span>DSN=TIMERCDS,DISP=SHR</p> <p class="MsoNormal"><span style=""> </span>//SORTOUT<span style=""> </span>DD<span style=""> </span>DSN=TRANS,DISP=(,PASS,DELETE),</p> <p class="MsoNormal"><span style=""> </span><span style="" lang="FR">//<span style=""> </span>SPACE=(TRK,(2,1)),UNIT=&UN,VOL=SER=EDPAK2,<o:p></o:p></span></p> <p class="MsoNormal"><span style="" lang="FR"><span style=""> </span></span>//<span style=""> </span>DCB=(LRECL=80,BLKSIZE=8000,RECFM=FB)</p> <p class="MsoNormal"><span style=""> </span>//SYSOUT<span style=""> </span>DD<span style=""> </span>SYSOUT=*</p> <p class="MsoNormal"><span style=""> </span>//SYSIN<span style=""> </span>DD<span style=""> </span>DSN=TRANS.SORT.CNTL,DISP=SHR</p> <p class="MsoNormal"><span style=""> </span>//STEP2<span style=""> </span>EXEC<span style=""> </span>PGM=PAYROLL,ACCT=1492</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style=""> </span>//PAYIN<span style=""> </span>DD<span style=""> </span>DSN=MSTRN,DISP=SHR</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style=""> </span><span style="" lang="FR">//PAYTRANS<span style=""> </span>DD<span style=""> </span>DSN=TRANS,DISP=SHR<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style="" lang="FR"><span style=""> </span></span>//REPORT<span style=""> </span>DD<span style=""> </span>SYSOUT=*</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style=""> </span>//STEP3<span style=""> </span>EXEC<span style=""> </span>PGM=PAYACCT</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style=""> </span>//MSTR<span style=""> </span>DD<span style=""> </span>DSN=MSTROUT,DISP=SHR</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><span style=""> </span>//REPORT1<span style=""> </span>DD<span style=""> </span>SYSOUT=*</p> <p class="MsoNormal"><span style=""> </span>//REPORT2<span style=""> </span>DD<span style=""> </span>SYSOUT=*</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What are the ‘abnormal’ disposition of the DISP parameter?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Name a few Utilities with brief description of each.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->How and when do you use a RESTART Option?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <h1>CICS</h1> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What happens to the resources allocated in the case of XCTL and LINK commands.</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->Why do we use a NOHANDLE option in a CICS command?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->How many conditions can you include in a single HANDLE CONDITION command?</p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.5in;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What are the<span style=""> </span>functions<span style=""> </span>of CICS?</p> <p class="MsoNormal"><o:p> </o:p></p> <h1>COBOL</h1> <p class="MsoNormal" style="margin-left: 19.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->The PROCEDURE DIVISON entry for the called Program include which clause.</p> <p class="MsoNormal" style="margin-left: 19.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]--><span style=""> </span>What if anything is wrong with the following routines. Correct all errors.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 19.5pt;">WORKING-STORAGE SECTION.</p> <p class="MsoNormal" style="margin-left: 19.5pt;">01<span style=""> </span>A<span style=""> </span>PIC<span style=""> </span>9(04).</p> <p class="MsoNormal" style="margin-left: 37.5pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="">01<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->B.</p> <p class="MsoNormal" style="margin-left: 0.5in;">02<span style=""> </span>C<span style=""> </span>PIC<span style=""> </span>9(02).</p> <p class="MsoNormal" style="margin-left: 0.5in;">02<span style=""> </span>D<span style=""> </span>PIC<span style=""> </span>9(02).</p> <p class="MsoNormal"><span style=""> </span>01 <span style=""> </span>E<span style=""> </span>PIC<span style=""> </span>9(04).</p> <p class="MsoNormal"><span style=""> </span>:</p> <p class="MsoNormal"><span style=""> </span>:</p> <p class="MsoNormal"><span style=""> </span>:</p> <p class="MsoNormal"><span style=""> </span>PROCEDURE DIVISION.</p> <p class="MsoNormal"><span style=""> </span>:</p> <p class="MsoNormal"><span style=""> </span>:</p> <p class="MsoNormal"><span style=""> </span>:</p> <p class="MsoNormal"><span style=""> </span>MOVE 02 TO A.</p> <p class="MsoNormal"><span style=""> </span>MOVE 03 TO D.</p> <p class="MsoNormal"><span style=""> </span>COMPUTE E = A + B.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 19.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->What if anything is wrong with the following routines. Correct all errors.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 19.5pt;">IF B = 3 OR 4</p> <p class="MsoNormal" style="margin-left: 19.5pt;"><span style=""> </span>PERFORM 100-ALIT-PARA.</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal" style="margin-left: 19.5pt; text-indent: -19.5pt;"><!--[if !supportLists]--><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]--><span style=""> </span>What is the last statement in the called Program?</p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> <p class="MsoNormal"><o:p> </o:p></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-3494860130116413802008-07-21T04:38:00.000-07:002008-12-23T21:45:21.638-08:00CICS Faq's<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoHeader, li.MsoHeader, div.MsoHeader {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoFooter, li.MsoFooter, div.MsoFooter {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1; mso-footnote-position:end-of-section; mso-endnote-numbering-style:arabic; mso-endnote-numbering-start:0;} /* List Definitions */ @list l0 {mso-list-id:158740619; mso-list-type:hybrid; mso-list-template-ids:-681034418 -1 -1 -1 -1 -1 -1 -1 -1 -1;} @list l0:level1 {mso-level-tab-stop:21.0pt; mso-level-number-position:left; margin-left:21.0pt; text-indent:-.25in;} @list l1 {mso-list-id:636762419; mso-list-type:hybrid; mso-list-template-ids:-864362460 -1 -1 -1 -1 -1 -1 -1 -1 -1;} @list l1:level1 {mso-level-number-format:alpha-upper; mso-level-text:"%1\)"; mso-level-tab-stop:21.0pt; mso-level-number-position:left; margin-left:21.0pt; text-indent:-.25in;} @list l2 {mso-list-id:637688056; mso-list-type:hybrid; mso-list-template-ids:-1620288178 -1 -1 -1 -1 -1 -1 -1 -1 -1;} @list l2:level1 {mso-level-number-format:alpha-upper; mso-level-text:"%1\)"; mso-level-tab-stop:21.0pt; mso-level-number-position:left; margin-left:21.0pt; text-indent:-.25in;} @list l3 {mso-list-id:938566101; mso-list-type:hybrid; mso-list-template-ids:906282442 -1 -1 -1 -1 -1 -1 -1 -1 -1;} @list l3:level1 {mso-level-number-format:alpha-upper; mso-level-text:"%1\)"; mso-level-tab-stop:21.0pt; mso-level-number-position:left; margin-left:21.0pt; text-indent:-.25in;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> what is difference between call and link ?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> In case of call , whenever you do changes to the called program you need to compile the calling program also. In case of link , it is not needed . <o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> what are the differences between dfhcommarea and tsq ?<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> both are used to save data among tasks. but 1. commarea is private to that transaction only . like every transaction has its own commarea created by cics as soon as the transaction is initiated . however tsq , if qid is known can be accessed by other transactions also 2. commarea length is s9(4) comp ie 65k . but tsq can have any length.3. commarea is available only during the transaction is running. tsq if created with auxiliary option resides in aux memory and available even if main memory crashes.4.normally commarea is used to tranfer data from one task to another while tsq is used widely within the task as a scratch pad.<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is Communication Area?<o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Communication Area is used to pass data between the programor between the task.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal"><span style="font-size: 12pt;"><span style=""> </span><b style=""><span style="color: red;">Question:</span> Which of the following statements correctly describe the syntax of CICS command language?<o:p></o:p></b></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><b style=""><span style="font-size: 12pt;">If an EXEC CICS command must be continued onto a second line a hyphen (-) must be coded in column 7 of the continued line. <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">If an EXEC CICS command must be continued onto a second line an 'X' must be coded in column 72 of each line to be continued. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">An EXEC CICS command CANNOT be coded within a COBOL IF statement,between the IF command and the period (.) ending it. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">The END-EXEC delimiter is optional and never needs to be placed at the end of a CICS command. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">E)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">The options specified within an EXEC CICS command can be in any order. For example 'EXEC CICS SEND FROM(MSG1) LENGTH(30) END-EXEC' can also be coded 'EXEC CICS SEND LENGTH(30) FROM(MSG1) END-EXEC'</span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> E) The options specified within an EXEC CICS command can be in any order. For example 'EXEC CICS SEND FROM(MSG1) LENGTH(30) END-EXEC' can also be coded 'EXEC CICS SEND LENGTH(30) FROM(MSG1) END-EXEC'</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> .A CICS program ABENDS with an ASRA ABEND code. What is its meaning? <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><b style=""><span style="font-size: 12pt;">A link was issued to a program whose name does not exist in the PPT (Program Processing Table). <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">A program attempted to use a map that is not defined in the PCT (Program Control Table). </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">A security violation has occurred. The operator is not defined with the proper authority in the SNT (Sign-on Table) to use a particular file. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">A program interrupt (0C0 or 0C1 or 0C2 or ...) has occurred in a CICS program. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">E)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">An I/O error has occurred when attempting to use a VSAM file from a CICS program</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> D) A program interrupt (0C0 or 0C1 or 0C2 or ...) has occurred in a CICS program.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Which of the following commands, when issued by 2 different programs running at the same time, will prevent simultaneous use of resource 'SINGLE'? .<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt;">B) EXEC CICS PROTECT RESOURCE('SINGLE') LENGTH(6) END-EXEC. <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt;">C) EXEC CICS HOLD RESOURCE('SINGLE') LENGTH(6) END-EXEC. <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt;">D) EXEC CICS TASK SINGLE('SINGLE') LENGTH(6) END-EXEC.<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">F)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><b style=""><span style="font-size: 12pt;">EXEC CICS EXCLUSIVE RESOURCE('SINGLE') LENGTH(6) END-EXEC.<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> E) EXEC CICS EXCLUSIVE RESOURCE('SINGLE') LENGTH(6) END-EXEC</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> 1.The map shown below is displayed with: EXEC CICS SEND MAP('MAP1') MAPSET('MAP1S') MAPONLY END-EXEC.After the screen is displayed, the operator enters 1 character, the letter 'X'.Where will the cursor now appear on the screen?MAP1S DFHMSD TYPE=MAP,MODE=INOUT,CTRL=(FREEKB,FRSET),LANG=COBOL, X TIOAPFX=YESMAP1 DFHMDI SIZE=(24,80) DFHMDF POS=(5,1),ATTRB=UNPROT,LENGTH=1FIELD2 DFHMDF POS=(5,3),ATTRB=UNPROT,LENGTH=1FIELD3 DFHMDF POS=(5,5),ATTRB=(UNPROT,IC),LENGTH=1FIELD4 DFHMDF POS=(5,7),ATTRB=ASKIP,LENGTH=1FIELD5 DFHMDF POS=(5,9),ATTRB=UNPROT,LENGTH=1,INITIAL='Z' DFHMDF POS=(5,11),ATTRB=ASKIP,LENGTH=1 DFHMSD TYPE=FINAL <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">A)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><b style=""><span style="font-size: 12pt;">In the field with a POS=(5,1) <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">B)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">In FIELD2. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">C)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">In FIELD3. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">D)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">In FIELD4. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">E)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">In FIELD5.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How can you accomplish braykpoint in intertest?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> U-for uncondishional braykpoint, C-for condishional braykpoint,and A-for automatic braykpoint<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> how many ways are there for initiating a transaction?what are they?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> There are six ways in initiating a transaction.they are as follows.<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><b style=""><span style="font-size: 12pt;"><span style="">1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span></b><!--[endif]--><b style=""><span style="font-size: 12pt;">embedding four character transid on the top left most corner of the screen.<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">making use of EXEC CICS START TRANSID ( )</span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">making use of EXEC CICS RETURN TRANSID ( ) </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">By defining the transid in DCT ( destination control table) to enable ATI (AUTOMATIC TASK INITIATION)</span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">5.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">Making use of PLT ( program list table)</span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 21pt; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-size: 12pt;"><span style="">6.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span></span><!--[endif]--><b style=""><span style="font-size: 12pt;">By associating four character transid in PCT (program control table) </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> which type of TDQ is read destructive?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> intrapartition tdq is read destructive. extrapartition tdq is not read destrctive.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> The error code aeiv?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> this is the error code for length,if length of the source data is more than the receiving field,this error will occur.this is the correct answer,previously i mentioned it as program id error.sorry for the wrong information.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> WHAT U MEAN BY AEIV ?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> THIS IS THE ERROR CODE GIVEN BY THE SYSTEM ,IT MEANS PROGRAM ID ERROR.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> WHAT IS THE SIZE OF COMMAREA</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> THE DEFAULT COMMAREA SIZE IS 65K.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is ASRAABEND in CICS?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> It occurs when program interuption takes place.e.g.: when alphanumeric string moved to numeric data itemOR when arithmetic calculations performed on nonnumeric data itemOR when an attempt made to read an occurance of a table beyond the defind occurances.ISN'T IT?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Very important question:What is a two Phase commit in CICS?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> This occurs when a programmer Issues a Exec CICS Syncpoint command. this is called two phase because CICS will first commit changes to the resources under its control like VSAM files. and the DB2 changes are committed.Usually CICS signals Db2 to complete the next phase and release all the locks.<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> diference between TSQ & TDQ</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> TDQ is read destructive, TSQ is not. TSQ can be created dynamically, TDQ cannot be created dynamically. TSQ is temporary in nature (i:e it will be deleted when the program finishes execution, unless it is made permanent by making a entry in the Temporary Storage Table), TDQ is not. Hope this will suffice</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is ENQ in CICS?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> If any one want to restrict Trans-Id to single user, enter trans-id with ENQ. It won't allow any one else to use the same trans-id. <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> In SYMBOLIC Cursor Positioning after moving -1 to the length field also the cursor is not positioned in that particular field.Give reasons?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> You have to explicitly specify the word CURSOR between your EXEC CICS and END-EXEC in the program.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What does EIB mean?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> The EIB is the EXECUTIVE INTERFACE BLOCK. It is not the EXECUTE INTERFACE BLOCK. All TP monitors or transaction processors are know as EXECUTIVEs as they carry out process on behalf of a program module. CICS and DB2 are excutives.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How many exceptional condition can be given in a HANDLE CONDITION? </span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Max. of 12 exceptional conditions can be given in a single HANDLE CONDITION.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;">What command do you issue to delete arecord in a transient data queue ? <o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt;">Answer: READQ TD, the read is destructive. Yes it is correct but there is a restriction.U can deletethe records sequentially.. For example if one want to delete 10 th record directly it is not possible with this..</span></b><span style="font-size: 12pt;"><span style=""> </span><b style=""><span style="color: green;">Answer:</span> Answer: READQ TD, the read is destructive. Yes it is correct but there is a restriction.U can deletethe records sequentially.. For example if one want to delete 10 th record directly it is not possible with this..</b> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How do you access the records randomly in TSQ ?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> By specifying the ITEM option</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:W</span></b><b style=""><span style="font-size: 12pt;">hat command do you issue to delete arecord in a transient data queue ?</span></b><span style="font-size: 12pt;"><span style=""> </span><b style=""><span style="color: green;">Answer:</span> READQ TD, the read is destructive.</b> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> WHAT ARE DIFFERENT WAYS OF INITIATING TRANSACTION IN CICS</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> WE CAN INITIATE CICS TRANSACTIONa) BY GIVING TRANSACTION IDb) BY GIVING CICS START COMMANDC) AUTOMATIC TASK INITIATION.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is the difference between LINK and XCTL ?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> The XCTL command passes control to another program, but the resources requested by the first program may still be allocated. A task does not end until a RETURN statement is executed. While in LINK command, program control resumes its instruction following the LINK parameter. The disadvantage of LINK is that it requires that both the calling program and the called program remain in main memory even though both are no longer needed.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is the difference between CICS Program Control Table (PCT) and CICS Processing Program Table (PPT) ?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> PCT contains a list of valid transaction ID. Each transaction ID is paired with the name of the program ,CICS will load and execute when the transaction is invoked. On the other hand, PPT indicates each program's location which pertains to a storage address if the program has already been loaded or a disk location if the program hasn't been loaded. PPT will also be used to determine whether it will load a new copy of the program when the transaction is invoked.<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What are the 3 common ways to create maps?</span></b><span style="font-size: 12pt;"><span style=""> </span>
<br /><b style=""><span style="color: green;">Answer:</span> The first way is to code a physical map and then code a matching symbolic map in your COBOL program. The second way to create a physical map along with a matching symbolic map is to code only the physical map using the &SYSPARM option, CICS will automatically create a member in a COPY library. And the third way is to use a map generator such as SDF (Screen Definition Facility)</b> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is Quasi-reentrancy?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> There are times when many users are concurrently using the same program, this is what we call MultiThreading. For example, 50 users are using program A, CICS will provide 50 Working storage for that program but one Procedure Division. And this technique is known as quasi-reentrancy</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is the difference between a physical BMS mapset and a logical BMS mapset?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> The physical mapset is a load module used to map the data to the screen at execution time. The symbolic map is the actual copybook member used in the program to reference the input and output fields on the screen.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How To Set MDT(Modified Data Tag) Thru Application Program?(Dynamically).</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> You have to move the following macro DFHBMFSE to the Attribute field of that particular Variable.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What CICS facilities can you use to save data between the transactions?</span></b><span style="font-size: 12pt;"><span style=""> </span><b style=""><span style="color: green;">Answer:</span> COMMONAREA, TSQ & TDQ.</b> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How would you release control of the record in a READ for UPDATE?</span></b><span style="font-size: 12pt;"><span style=""> </span><b style=""><span style="color: green;">Answer:</span> By issuing a REWRITE,DELETE, or UNLOCK command or by ending the task.</b> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How would you release control of the record in a READ for UPDATE?</span></b><span style="font-size: 12pt;"><span style=""> </span><b style=""><span style="color: green;">Answer:</span> By issuing a REWRITE,DELETE, or UNLOCK command or by ending the task.<o:p></o:p></b></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is the difference between a RETURN with TRANSID and XCTL ?For example prog. A is issuing REUTRN with TRANSID to prog B. Prog A. is issuing XCTL to prog B.</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> In RETURN with TRANSID the control goes to the CICS region and the user have to transfer the control to prog. B by pressing any of the AID KEYS.In XCTL the control is directly transfer to prog. B.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is the maximum number of exceptions that can be specified with a single HANDLE CONDITION command in CICS ?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> SIXTEEN (16)</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> WHAT WILL BE THE LENGTH OF THE EIBCALEN ,IF THE TRANSACTION IS USED TO CICS FIRST TIME?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> THE LENGTH WILL BE 0(ZERO).<o:p></o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> WHAT IS DFHEIBLK?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> DFHEIBLK is Execute Interface Block. It is placed in the linkage section automatically by CICS translator program. It must be the first entry in linkage section. CICS places values prior to giving control to the program and we can find almost any information about our transaction.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is the difference between the XCTL and LINK commands?</span></b><span style="font-size: 12pt;"><span style=""> </span><b style=""><span style="color: green;">Answer:</span> The LINK command anticipates return of control to the calling program, theXCTL command does not. Return to the calling program will be the result of the CICS RETURN command, specifying TRANSID(name of the calling program).</b> <b style=""><u><span style="color: blue;"><o:p></o:p></span></u></b></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;"><o:p> </o:p></span></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What CICS command would you use to read a VSAM KSDS sequentially in ascending order?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> First issue a STARTBR(start browse), which will position the browse at the desired record. Retrieve records by using subsequent READNEXT commands. Indicate the end of sequential processing with the ENDBR command. If the generic key is specified in the STARTBR command positioning in the file will be before the first record satisfying the generic key.For reading in descending order use the READPREV instead ofREADNEXT.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is the difference between pseudo-conversational and conversational?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Pseudo-conversational will start a new task for each input. By coding a CICS RETURN command specifying TRANSID(itself). Conversational will have an active task during the duration of the data entry.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><u><span style="font-size: 12pt; color: blue;"><o:p><span style="text-decoration: none;"> </span></o:p></span></u></b></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is the COMMAREA(communications area)?</span></b><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 3pt;"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> An area used to transfer data between diffrent programs or between subsequent executions of the same program. Needs to be defined in the Linkage Section.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-61955245621223871072008-07-17T23:12:00.001-07:002008-12-23T21:45:21.638-08:00DB2 Questions<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="time"></o:smarttagtype><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="date"></o:smarttagtype><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]><object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id="ieooui"></object> <style> st1\:*{behavior:url(#ieooui) } </style> <![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal" style="text-align: center;" align="center"><b style=""><u><span style="font-size: 12pt; font-family: "Courier New";"></span></u></b><span style="font-size: 12pt; font-family: "Courier New";"> <o:p></o:p></span></p> <p class="MsoNormal"><i style=""><u><span style="font-size: 12pt; font-family: "Courier New";">True or False</span></u></i><span style="font-size: 12pt; font-family: "Courier New";"> : <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">1.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The major components of DB2 are system services component, Locking services<span style=""> </span>component, Database services component and Distributed data facility component.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">2.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The DDL for creating an index space is CREATE INDEXSPACE.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">3.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> More than 2 tables cannot be joined.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">4.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> DB2 batch programs are executed in the background under the control of the<span style=""> </span>TSO Terminal Monitor Program, IKJEFT01.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">5.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The COPY utility is used to create an image copy back up data set for a<span style=""> </span>complex tablespace or a single partition of a tablespace.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">6.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> Using a database will reduce data redundancy and address normalisation issue. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">7.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The DB2 catalog consists of regular tables, and is accessible by means of<span style=""> </span><span style=""> </span>SQL data retrieval statements. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">8.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> If<span style=""> </span>you want to read a row and depending upon the values in the row, you<span style=""> </span>want to modify, delete or do nothing, you can do that with a cursor, this is<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">accomplished with a cursor and a special clause of UPDATE and DELETE statements<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">usable only by embedded SQLs, namely WHERE CURRENT OF.<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">9.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> Referential Integrity ensures that the<span style=""> </span>related tables stay in sync. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">10.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> COMMIT and COMMIT WORK does the same function.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">11.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The data manipulation SQL statements are SELECT, INSERT, UPDATE and DELETE.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">12.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> There can be more than one primary key for a table.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">13.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> If the WHERE clause in the UPDATE or DELETE includes a subquery, then the<span style=""> </span>FROM clause of that subquery must not refer to the table that is being updated<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">or deleted.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">14.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The three different types of database management systems are relational,<span style=""> </span>hierarchical and network models.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">15.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The expression<span style=""> </span>DATE('5/31/1977') + 1 MONTH will yield the result ‘6/30/1997’.<span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">16.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> If a given column has nulls allowed, a UNIQUE index on that column will<span style=""> </span>permit at the most one null to appear at any given time.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">17.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> A mechanism called CICS Attachment Facility connects CICS with DB2.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">18.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The<span style=""> </span>key word DISTINCT is not allowed for COUNT(*) function.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">19.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The CHECK utility has two options CHECK DATA and CHECK INDEX.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">20.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The catalog manipulation<span style=""> </span>utilities of DB2 are CATMAINT, MODIFY, RUNSTATS<span style=""> </span>and STOSPACE.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">21.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> You can create a base table which has the same structure as some existing<span style=""> </span>table using the CREATE TABLE ......... LIKE........ command. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">22.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> DBADM or Database Administration authority on a specific database allows the <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">holder to execute any operation that the system supports on that database.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">23.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The ON DELETE CASCADE option means that the delete operation is cascaded, <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">that is if a row in the parent table is deleted then all the matching rows in the<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">child table is automatically deleted. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">24.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> A view defined on a non-updatable view is updatble. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">25.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> QUIESEC utility ensures that all tablespaces in the scope of QUIESEC are <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">refrentially intact. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">26.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The COMMIT and ROLLBACK<span style=""> </span>statements are instruction to the DBMS.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">27.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> System Operator authority allows the holder to carry out console operator<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">functions on the system such as starting and stopping system trace activities.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">28.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> A package is a single, bound DBRM with optimised access paths containing bind timestamps. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">29.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The function of the Bind is to convert the high-level DBRMs into an<span style=""> </span>optimised internal form.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">30.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The primary key is the unique identifier of the rows in a table. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">31.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> A view is a virtual table, a table which does not physically exist.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">32.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The REPORT TABLESPACESET option generates a report detailing all tables and <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">tablespaces in a referential tablespace set.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">33.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The DB2 log registers data changes and significant events<span style=""> </span>as<span style=""> </span>they<span style=""> </span>occur <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">into a DASD dataset called the active log.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">34.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> SELECT PNAME FROM P WHERE PNAME NOT LIKE '%C%' will get the name of all the<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">parts whose name has a character C in it.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">35.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> Database Maintenance authority on a specific database allows the holder to <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">execute read-only maintenance functions such as 'IMAGE COPY' on that database.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">36.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> Every column participating in the primary key must be explicitly declared <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">NOT NULL. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">37.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> SYSADM or System Administration authority allows the holder to execute any <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">operation that the system supports. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">38.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> If the definition of the view involves either a GROUP BY or a HAVING clause <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">at the outermost level, then the view is updatable. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">39.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> Any ORDER BY clause in the query must appear as part of the final SELECT <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">only and must identify ordering columns by their ordinal position or number<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">and not by name. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">40.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> In a hierarchical model, data is represented as a tree structure.<o:p></o:p></span></p> <span style="font-size: 12pt; font-family: "Courier New";">
<br /> </span> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">41.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> If the definition of the view involves DISTINCT at the outermost level, then <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">that view is not updatable.<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">42.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The SELECT * FROM...... will fetch all the columns of the table meeting the<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">search criteria. <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">43.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The SQL ' SELECT AVG(MIN(QTY)) AS AVERAGE' is legal. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><i style=""><u><span style="font-size: 12pt; font-family: "Courier New";">Multiple Choice : Choose the best answer.</span></u></i><u><span style="font-size: 12pt; font-family: "Courier New";"> <o:p></o:p></span></u></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">44.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> A key made of more than one column is called <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Composite key<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Complex key<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Foreign key<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">45.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> Which is the function used for extracting the hour portion of the time or <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>timestamp <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. TIME<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. HOUR<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. TIMESTAMP TO HOUR ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">46.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is the command that is used to eliminate duplicates in a SELECT statement <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. WITH NO DUPLICATES ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. NO DUPLICATES<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. DISTINCT<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">47.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> In relational model rows are called <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Rows<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Relations<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Tuples<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">48.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What are the date/time data types that DB2 supports? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. DATE<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. TIME<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. TIMESTAMP<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. All of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">49.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> Fill in the blanks to make the SQL complete and to ensure that all the <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">inserts and updates made on the view can specify values 'M' or 'F' only: <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>CREATE VIEW emp (emp-no, name, sex,age, dept, salary)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span><span style=""> </span>AS<span style=""> </span>SELECT emp-no, name,sex, age, dept, salary <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span><span style=""> </span>FROM emp-table WHERE sex IN ('M', 'F') <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span><span style=""> </span>WITH -------------- OPTION;<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. EXAMINE<span style=""> </span><span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. CHECK<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. ISSUE<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">50.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What are the functions of the Database services component, which supports <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">the definition, retrieval and update of user and system data.<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Data definition<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Data retrieval<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Data manipulation ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. All of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">51.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What are the DB2 objects that can be altered using the ALTER statement?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Views<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Tables<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Indexes<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. Tables and Indexes ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">52.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What are the data organisation utilities of DB2?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. LOAD and REORG<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. LOAD and RECOVER<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. REORG and REPAIR<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">53.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What are the main backup utilities of DB2?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. COPY and MERGE COPY ( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. QUIESEC<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. RECOVER<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. All of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">54.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> Which are the situations in which column names must be specified explicitly<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">for all columns of the view? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Any column of the view is derived from a function<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Any column of the view is derived from an operational expression<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Two or more columns of the view would otherwise have the same name ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. All of the above<span style=""> </span><span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">55.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> A given foreign key value must have matching primary key value in some tuple<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">of the referenced relation if that foreign key value is non null. This principle is<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Entity Integrity<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Referential Inegrity ( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Primary Integrity<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">56.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What are the numeric data types that DB2 supports?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. INTEGER, SMALLINT, DECIMAL, FLOAT ( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. INTEGER, DECIMAL, FLOAT<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. INTEGER, FLOAT<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">57.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> If NOT NULL WITH DEFAULT is specified during an ALTER TABLE command what <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">will be the default values for the DATE, TIME and TIMESTAMP?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. SPACES<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. CURRENT DATE, CURRENT TIME and CURRENT TIMESTAMP ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. <st1:date month="1" day="1" year="2001" st="on">01-01-0001</st1:date>, <st1:time hour="0" minute="0" st="on">00:00:00</st1:time>, 0001-01-01-00.00.00.000000 (@)<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">58.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> If NOT NULL WITH DEFAULT is specified, what will be the default values for <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">the character fields? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. SPACES<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. NULLS<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. ZEROES<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">59.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is the situation in which two or more transactions are in simultaneous? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">Wait state, each waiting for one of the others to release a lock before it can proceed <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">Called? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Time-out<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Deadlock<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Rollback<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">60.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is the number of tuples or rows in a relation called? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Degree<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Cardinality<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Row count<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">61.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What are the various environments in which DB2 operates? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. IMS/DB and IMS/DC<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. CICS<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. TSO batch and on-line ( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. All of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">62.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is the name of the first prototype of SEQUEL introduced by IBM in 1974?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. SQL<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. SEQUEL-XRM<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. SEQUEL<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">63.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is CAF? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Call According to function<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Call Attachment Facility<span style=""> </span><span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Continuous Application Facility ( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">64.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> The equijoin must produce a result containing two identical columns. If one<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">Of these columns is eliminated then that join is called: <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Equijoin<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Natural join<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Outer join<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <span style="font-size: 12pt; font-family: "Courier New";">
<br /> </span> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">65.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> When WHERE CURRENT OF clause is used the cursor should be declared with. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. UPDATE clause<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. FOR UPDATE OF clause <span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. MODIFY clause<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">66.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What are the two kinds of tables in DB2? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Tables and Files<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Tables and Indexes<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Base tables and Views ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. All of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">67.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is the input to the REPORT RECOVERY utility? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. A tables pace<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Single partition of a partitioned tables pace( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. All of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">68.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What are the different types of table spaces? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Simple<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Partitioned<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Segmented<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. All of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">69.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is the TSO parameter controls the number of concurrent DB2 batch connections<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. IDFORE<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. IDNO<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. IDBACK<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4<span style=""> </span>None of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">70.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is the output of the Bind operation? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Load module<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Application Plan<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. DBRMs<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">71.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is an attribute or attribute combination of one table whose values are<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">required to match those of the primary key of some other table called? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Primary key<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Foreign key<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Composite key ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. Alternate key ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">72.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> Primary keys <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Are unique identifiers of a table ( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Cannot contain nulls<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Not more than one for a table <span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. All of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">73.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is the expansion of SPUFI? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. Sequential Programming Using Functional Input ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. SQL Processor Using File Input<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. SQL Program Using Fast Interaction<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">74.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is the DB2 utility used to generate host variables ?<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. QMF<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. SPUFI<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. DCLGEN<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">75.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> Which was the first successful prototype of a RDBMS? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. XRM<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. SYSTEM-R<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. DB2/2<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">76.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What are the delimiters for embedded SQLs in COBOL? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. EXEC and END EXEC<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. EXEC SQL and END-EXEC ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. SQL and END-SQL<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. None of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">77.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What are the functions of the System services component? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. System operation<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. Operator communication ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. Logging<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. All of the above<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">78.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is the page size of an index space? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. 32KB<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. 4KB<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. 16KB<span style=""> </span>( ) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. 32KB and 4KB ( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">79.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is the error handling SQL statement? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1. SELECT<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2. INSERT<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3. UPDATE<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4. WHENEVER<span style=""> </span>( )<o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; font-family: "Courier New";">80.</span></b><span style="font-size: 12pt; font-family: "Courier New";"> What is the significance of the following sqlcodes ; <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>1.<span style=""> </span>-180<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>2.<span style=""> </span>-181<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>3.<span style=""> </span>-204<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>4.<span style=""> </span>-206<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>5.<span style=""> </span>-310<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>6.<span style=""> </span>-805<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>7.<span style=""> </span>-811<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>8.<span style=""> </span>-818<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>9.<span style=""> </span>-904<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>10. -911<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>11. 0<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><span style=""> </span>12. +100<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <span style="font-size: 12pt; font-family: "Courier New";">
<br /> </span> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> <p class="MsoNormal" style="text-align: center;" align="center"><b style=""><u><span style="font-size: 12pt; font-family: "Courier New";">DB2 Answers</span></u></b><span style="font-size: 12pt; font-family: "Courier New";"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt;">Name </span></b><span style="font-size: 12pt;">: <span style=""> </span><span style=""> </span><b style="">Emp#</b> : <span style=""> </span><span style=""> </span><span style=""> </span><b style="">Date</b> : <o:p></o:p></span></p> <table class="MsoNormalTable" style="border: medium none ; border-collapse: collapse;" border="1" cellpadding="0" cellspacing="0"> <tbody><tr style=""> <td style="border-style: solid; border-color: windowtext; border-width: 1.5pt 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><b style=""><span style="font-size: 12pt;">Q.No<o:p></o:p></span></b></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1.5pt 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><b style=""><span style="font-size: 12pt;">Solution<o:p></o:p></span></b></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1.5pt 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><b style=""><span style="font-size: 12pt;">Q.No<o:p></o:p></span></b></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1.5pt 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><b style=""><span style="font-size: 12pt;">Solution<o:p></o:p></span></b></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1.5pt 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><b style=""><span style="font-size: 12pt;">Q.No<o:p></o:p></span></b></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1.5pt 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><b style=""><span style="font-size: 12pt;">Solution<o:p></o:p></span></b></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1.5pt 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><b style=""><span style="font-size: 12pt;">Q.No<o:p></o:p></span></b></p> </td> <td style="border-style: solid solid solid none; border-color: windowtext windowtext windowtext -moz-use-text-color; border-width: 1.5pt 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><b style=""><span style="font-size: 12pt;">Solution<o:p></o:p></span></b></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">1<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">21<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">41<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">61<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">2<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">22<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">42<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">62<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">3<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">23<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">43<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">63<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">4<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">24<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">44<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">64<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">5<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">25<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">45<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">65<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">6<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">26<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">46<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">66<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">7<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">27<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">47<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">67<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">8<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">28<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">48<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">68<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">9<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">29<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">49<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">69<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">10<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">30<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">50<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">70<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">11<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">31<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">51<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">71<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">12<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">32<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">52<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">72<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">13<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">33<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">53<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">73<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">14<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">34<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">54<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">74<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">15<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">35<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">55<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">75<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">16<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">36<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">56<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">76<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">17<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">37<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">57<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">77<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">18<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">38<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">58<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">78<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">19<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">39<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">59<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">79<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> <tr style=""> <td style="border-style: none solid solid; border-color: -moz-use-text-color windowtext windowtext; border-width: medium 1pt 1.5pt 1.5pt; padding: 0in 5.4pt; width: 36.9pt;" valign="top" width="49"> <p class="MsoNormal"><span style="font-size: 12pt;">20<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1.5pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1.5pt medium; padding: 0in 5.4pt; width: 45pt;" valign="top" width="60"> <p class="MsoNormal"><span style="font-size: 12pt;">40<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1.5pt medium; padding: 0in 5.4pt; width: 49.5pt;" valign="top" width="66"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1.5pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">60<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1.5pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1pt 1.5pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;">80<o:p></o:p></span></p> </td> <td style="border-style: none solid solid none; border-color: -moz-use-text-color windowtext windowtext -moz-use-text-color; border-width: medium 1.5pt 1.5pt medium; padding: 0in 5.4pt; width: 48.4pt;" valign="top" width="65"> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> </td> </tr> </tbody></table> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><u><span style="font-size: 12pt;">Answer for Qn 80</span></u></b><span style="font-size: 12pt;">: <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">1.<span style=""> </span>-180<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">2.<span style=""> </span>-181<span style=""> </span>==><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">3.<span style=""> </span>-204<span style=""> </span>==><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">4.<span style=""> </span>-206<span style=""> </span>==><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">5.<span style=""> </span>-310<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">6.<span style=""> </span>-805<span style=""> </span>==><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">7.<span style=""> </span>-811<span style=""> </span>==><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">8.<span style=""> </span>-818<span style=""> </span>==><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">9.<span style=""> </span>-904<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">10. -911<span style=""> </span>==><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">11. 0<span style=""> </span>==><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";">12. +100<span style=""> </span>==> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt; font-family: "Courier New";"><o:p> </o:p></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-67320459651121723962008-07-21T04:39:00.001-07:002008-12-23T21:45:21.638-08:00DB2 Faq's<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoHeader, li.MsoHeader, div.MsoHeader {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoFooter, li.MsoFooter, div.MsoFooter {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:595.35pt 842.0pt; margin:78.0pt 89.85pt 49.6pt 89.85pt; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1; mso-footnote-position:end-of-section; mso-endnote-numbering-style:arabic; mso-endnote-numbering-start:0;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> How do you debug a DB2 STORED PROCEDURE <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> I want someone to answer it. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> maxx number of columns in a db2 table <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> 224 <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What is RUNSTATS command in DB2? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> . <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> Question: Question: I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> The query SELECT * FROM SYSIBM.SYSTABLES WHERE CREATOR = 'owner id' This displays the table names with that If you want only the number of tables give the following query. SELECT COUNT(*) FROM SYSIBM.SYSTABLES WHERE CREATOR = 'owner id' Make sure that you are in correct subsystem. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> Question: I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> The query SELECT * FROM SYSTABLES WHERE OWNER= should work. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> Question: I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> Answer to Ravi's query: Db2 records information for its operation in a catalog which is actually a group of tables. So we can use the SYSTABLES to get answer to ur query. So <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> Can any one give me the answer for this? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> I need to view the number of tables existing under one particular Owner. Is it possible? If so, pl give the SQL query for this? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> Can any one give me the answer for this? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What is JOIN and different types of JOIN. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> The ability to join rows and combaine data from two or more tables is one of the most powerful features of relational system.Three type of joins:1. Equi-join2.Non-equijoin3.self-join <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> can I alter a table (e.g. adding a column) when other user is selecting some columns or updating some columns from the same table? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> yes possible. until the updation or selection is commited db2 table will not be restructured. new column definition will be there but it will not be included until all the tasks on the table are commited. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> How many subqueries can you combine together ? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> Total 16 queries and subqueries are 15 <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> A. What are the different methods of accessing db2 from tso?B.How is the connection established between TSO & DB2? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> A. There are three ways in establishing tso/db2 connection 1. SPUFI 2. QMF 3. CATALOG VISIBILITY B. A thread between TSO & DB2 is established while attempting to make connection between tso & db2. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> How many buffer bools are available in db2? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> ten 32k size bufferpools and fifty 4k size buffer pools (bp0 to bp49)default buffer pools are bp0,bp1,bp2 & bp32 <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> b37 abend during spufi <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> the b37 abend in the spufi is because of space requirements , the query has resulted in so many rows that the spufi.out file is not large enough to handle it, increase the space allocation of spufi.out file. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> How many Bufferpools are there in DB2 and what are they? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> There are 4 Bufferpools.They are BP0,BP1,BP2 and BP32. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What is the command used by TSO users to invoke DB2? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> DSN RUN <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> what is the error code -803 ? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> unique index violation <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> How do you install DB2 <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> Install DB2 according to the procedure fo the manual <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> how do you filter out the rows retrieved from a Db2 table ? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> one way is to use The Sql WHERE clause. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> what is a collection? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> A collection is something that every programmer should assign/Specify for every package. this about 1-18 characters long. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What is Skeleton cursor table (SKCT)? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> The Executable form of a Plan. This is stored in sysibm.sct02 table. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> what's the equivalent Cobol Data type for Decimal(x,y) in DB2? what does the current SQLID register contain? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> Pic s9(x-y)V9(Y) Comp-3; the current SQLID contains the current authorization ID. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> Can we declare DB2 HOST variable in COBOL COPY book? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> NO.If we declare DB2 host variable in COBOL COPY book, at the time of Pre-compilation we get the host variable not defined, because pre-compiler will not expand COBOL COPY book. So we declare it either in DCLGEN with EXEC SQL INCLUDE Dclgenname END-EXEC or we directly hardcode it in the working storage section. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What should be specified along with a cursor in order to continue updating process after commit? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> With Hold option. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> WHAT IS THE NAME OF THE DEFAULT db2 CATALOG DATABASE? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> DSNDB06 <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> When Can you be sure that a query will return only one row? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> When you use the primary key and only the primary key in the where clause. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> what is the difference between join and union? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> join is used to retrive data from different tables using a single sql statement.union is used to combine the results of two or more sql querries. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What is a corelated subquerry? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> In a subquerry, if the outer querry reffers back to the outcome of innerquerry it is called corelated subquerry. That's why the outer querry is evaluated first unlike an ordinary subquerry <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What are the functions of Bind? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> BIND mainly performs two things syntax checking and authorization checking.It binds together all packages into an application plan hence the name BIND.Apart from this bind has optimiser as a subcomponent.Its function is to determine the optimum access strategy. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> MAX. NO OF ROWS PER PAGE <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> 127 <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> The only place of VSAM KSDS in DB2 is? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> BSDS is a VSAM KSDS. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> CAN ALL USERS HAVE THE PRIVILAGE TO USE THE SQL STATEMENT SELECT * (DML)? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> NO THE USER SHOULD BE GRANTED PRIVILAGE TO USE IT. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What is the size of a data page? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> 4K to 8K <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> what's the best locksize that you could use when you create a tablespace? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> The answer is Locksize = ANY.Unless you are Sure what's the Purpose of tablespace ie.,Read-only or R/W.If you use lock size =any, Db2 would automatically determine what type of locks it should use. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> what's the error code for Unique Index Voilation: <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> -803 <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> what's the percentage free space for <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> ZERO <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> Can you define an Index if the table size less than 10 PAGES? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> the Answer is : NO <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What's the Maximum Length of SQLCA and what's the content of SQLCABC? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> The Max length is 136. and the SQLCABC has the Value of SQLCA. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> what's the percentage free space for <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> The answer is ZERO. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What's the maximum number of volumes that can be added to a STOGROUP? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> The answer is 133.Usually it will be difficult monitor more than 3 or 4 volumes to a Stogroup. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What's the maximum number of characters that a tablename can have? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> The answer is 18 characters. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What is the meaning of -805 sql return code? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> Program name not in plan. Bind the plan and include the DBRM for the program named as part of the plan. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> when does the sql statement gets executed when you use cursor in the application programming ? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> sql statement gets executed when we open cursor <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What does CURRENTDATA option in bind indicate <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> CURRENTDATA option ensures block fetch while selecting rows from a table. In DB2V4 the default has been changed to NO. Therefore it is necessary to change all the bind cards with CURRENTDATA(YES) which is default in DB2V3 & earlier to CURRENTDATA(NO). <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What is the difference between TYPE 1 index & TYPE 2 index <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> TYPE 1 & TYPE 2 are specified when an index is created on the table. TYPE 2 index is the option which comes with DB2V4. With TYPE 2 index data can be retreived faster as only the data pages are locked and not the index pages. Hence TYPE 2 index is recommended. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What are the levels of isolation available with DB2V4 <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> CS RR UR( added new for DB2V4 which stands for uncommited read which allows to retreive records from the space which has exclusive locks also but data integrity will be affected if this option is used )The best available option for data integrity & data concurrency is CS. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> How do you achieve record locking in DB2 in the versions which donot support record level locking? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> Y'day I had posted this que. The answer shud hv read as follows:By having the record length more than half of the page size !Sorry again& Thanx <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> How do u achieve record level locking in DB2 versions when record level locking is not allowed? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> By having the length of the record greater than that of a page! <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> In a DB2-CICS program which is acts as co-ordinator and which is participant? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> DB2 - participant CICS- coordinator <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What does DML stand for and what are some examples of it? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> Data Manipulation Language. Some examples are SELECT, INSERT, DELETE, REPLACE. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> How to define the dataitems to receive the fetch items for the SQL? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> Using the DSECT, followed by lines of - 'dataitems DS datatype'. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> Re:How will you delete duplicate records from a table? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> Delete From Table1Where Id In (Select Id From Tabel1 As Temp Group By Id Having Count(*) >1) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What is the difference between Where and Having Clause <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> WHERE is for Rows and HAVING is for Groups <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> How to see the structure of db2 table?? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> Using QMF. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> How do you declare a host variable (in COBOL) for an attribute named EMP-NAME of type VARCHAR(25) ? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> 01 EMP-GRP. 49 E-LEN PIC S9(4) COMP. 49 E-NAME PIC X(25). <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What is the maximum number of tables that can be stored on a Partitioned Table Space ? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> ONE <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> Name the different types of Table spaces. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> 1. Simple Table Space2. Segmented Table Space and3. Partitioned Table Space <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> what are the max. & min. no. of partitions allowed in a partition tablespace? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> minimum is 4.maximum is 64. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> what is the maximum number of tables that can be joined ? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> fifteen <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What technique is used to retrieve data from more than one table in a single SQL statement? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> The Join statement combines data from more that two tables <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> What is a foreign key? <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> It identifies a releated row in another table and establishes a logical relationship between rows in two tables. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: red;">Question:</span><span style="font-family: Arial;"> Explain the use of the WHERE clause. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial; color: green;">Answer:</span><span style="font-family: Arial;"> It directs DB2 to extract data from rows where the value of the column is the same as the current value of the host variable. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-73497477622109658352008-07-21T04:39:00.002-07:002008-12-23T21:45:21.638-08:00VSAM Faq's<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoHeader, li.MsoHeader, div.MsoHeader {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoFooter, li.MsoFooter, div.MsoFooter {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:595.35pt 842.0pt; margin:1.0in 89.85pt 1.0in 89.85pt; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1; mso-footnote-position:end-of-section; mso-endnote-numbering-style:arabic; mso-endnote-numbering-start:0;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> help i need information about files none vsam direct</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> i dont the answer</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How do you fix the problem associated with VSAM out of space condition? <o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> 1. Define new VSAM dataset allocated with more space. 2. Use IDCAMS to REPRO the old VSAM file to new VSAM dataset. 3. Use IDCAMS to ALTER / rename the old VSAM dataset or se IDCAMS to DELETE the old VSAM dataset. 4. Use IDCAMS to ALTER / rename the new VSAM dataset to the name of the original VSAM dataset. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is the meaning of VSAM RETURN-CODE 28? </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Out of space condition is raised. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Correction to the previous question - Yor can have ALT INDEX only on KSDS and ESDS - not RRDS.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> See the question for correction - you cannot have ALT INDEX for RRDS.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How amny Alternate Indexes you can have on a dataset? - Remember ALT INDEX is possibleonly on KSDS and RRDS.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> 255 - but you must be a nut to have so many ALT Indexes on a dataset!</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Is it slower if you access a record through ALT INDEX as compared to Primary INDEX?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Yes. Why? Because the alternate key would first locate the primary key, which in turn locates the actual record. Needs twice the number of I/Os.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is RECOVERY and SPEED parameters in DEFINE CLUSTER command?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> RECOVERY (default) and SPEED are mutulally exclusive. Recovery preformats the control areas during the initial dataset load, if the job fails, you can restart but you must have a recovery routine already written to restart the job. SPEED does not preformat the CAs. It is recommended that you specify SPEED to speed up your initial data load. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> describe SHAREOPTIONS parameter (SHR) in Define Cluster command.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> It defines the cross-region and cross-system sharing capabilities of the dataset. Syntax is SHR(CRvalue CSvalue) value 1 means multiple read OR single write (read integrity) 2 means multiple read AND single write (Write integrity) 3 means Multiple read AND multiple write 4 is same as 3, which refreshes the buffer with every random access. default is SHR(1 3).</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What does the KEYRANGES parmater in Define Cluster commend do?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> It divides a large dataset into several volumes accoring to the Keyranges specified. e.g., KEYRANGES ((0000001 2999999) (3000000 5999999)). if the activity on the key ranges are evenly distributed, cuncurrent access is possible, which is a performance improvement.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What are the optional parameters to the input dataset While loading the empty cluster with the data records? </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> 1)FROMADDRESS(address) 2)TOADDRESS(address) where 'address' specifies the RBA value of the key of the input record. 3)FROMNUMBER(rrn) 4)TONUMBER(rrn) where 'rrn' specifies the relative record number of the RRDS record 5)FROMKEY(key) 6)TOKEY(key) where 'key' specifies the key of the input record 7)SKIP(number) 8)COUNT(number) where 'number' specifies the number of records to skip or copy Ex: REPRO INFILE(DD1) OUTFILE(DD2) SKIP(9000) COUNT(700) - Skips the first 9000 records and begins copying at 9001 and copies 700 records from DD1 to DD2. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is GDG means in VSAM???</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Generation Data Group</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is GDG means in VSAM???</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> I don't know</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is IDCAMS? and what is the purpose of it?.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> IDCAMS is an access method services utility used for creating, deleting, altering VSAM files and copying sequential file to a VSAM file, etc.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How to delete a member using JCL.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Using IDCAMS a member can be deleted. DELETE 'XXX.YYY(member) </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is the Difference between LDS & ESDS ?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> These two datesets are VSAM datasets. ESDS maintains control information. But LDS does not maintains the control information.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> A. Is a delete operation possible in an ESDS?B.Is rewrite operation possible in ESDS ?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> A. No delete operation is not possible in VSAM ESDS.B. Yes rewrite operation is possible in an ESDS.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is an alternet index and path ?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> An alternet index is an another way of accessing key sequenced data record stored in a base cluster and path is the linkage which connect alternet index to its base cluster.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How many buffers are alloted to VSAM KSDS and ESDS?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Ans:2 data buffers by default for ESDS.for KSDS it allots 2 data buffers and 1 index buffers. each buffer is about 4k.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> what's the biggest disadvantage of using a VSAM dataset?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> FREE SPACE(FPSC)</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> what's the device independent method to indicate where a Record is Stored?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> The answer is : By USING RBA(Relative Byte Address).</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Q: HOW MANY TIMES SECONDARY SPACE ALLOCATED?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> A: 122 TIMES</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> what is the RRN for the first record in RRDS?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> The answer is : 1</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> what is a Base Cluser?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> The Index and data components of a KSDS</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> If fspc(100 100) is specified does it mean that both the control interval and control area will be left empty because 100 % of both ci and ca are specified to be empty?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> no,they would not be left empty.one record will be written in each ci and 1 ci will be written for each ca.</span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: Arial;"><o:p> </o:p></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0tag:blogger.com,1999:blog-5814946362392002119.post-80733838131696983942008-07-21T04:37:00.001-07:002008-12-23T21:45:21.638-08:00JCL Faq's<meta equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///D:%5CDOCUME%7E1%5Cshesu04%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml> <o:documentproperties> <o:author>support</o:Author> <o:version>11.9999</o:Version> </o:DocumentProperties> </xml><![endif]--><!--[if gte mso 9]><xml> <w:worddocument> <w:view>Normal</w:View> <w:zoom>0</w:Zoom> <w:punctuationkerning/> <w:validateagainstschemas/> <w:saveifxmlinvalid>false</w:SaveIfXMLInvalid> <w:ignoremixedcontent>false</w:IgnoreMixedContent> <w:alwaysshowplaceholdertext>false</w:AlwaysShowPlaceholderText> <w:compatibility> <w:breakwrappedtables/> <w:snaptogridincell/> <w:wraptextwithpunct/> <w:useasianbreakrules/> <w:dontgrowautofit/> <w:usefelayout/> </w:Compatibility> <w:browserlevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:latentstyles deflockedstate="false" latentstylecount="156"> </w:LatentStyles> </xml><![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:ËÎÌå; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@SimSun"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:"\@Arial Unicode MS"; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} h1 {mso-style-next:Normal; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; page-break-after:avoid; mso-outline-level:1; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-font-kerning:0pt; mso-fareast-language:EN-US; mso-bidi-font-weight:normal;} p.MsoHeader, li.MsoHeader, div.MsoHeader {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoFooter, li.MsoFooter, div.MsoFooter {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:center 3.0in right 6.0in; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} p.MsoBodyText, li.MsoBodyText, div.MsoBodyText {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US; font-weight:bold; mso-bidi-font-weight:normal;} p.MsoBodyText2, li.MsoBodyText2, div.MsoBodyText2 {margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; mso-bidi-font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-fareast-language:EN-US;} @page Section1 {size:595.35pt 842.0pt; margin:56.7pt 89.85pt 56.7pt 89.85pt; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1; mso-endnote-numbering-style:arabic; mso-endnote-numbering-start:0;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal" style="margin-left: 2in; text-indent: 0.5in;"><b style=""><span style="font-size: 12pt;">JCL</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 2in; text-indent: 0.5in;"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Can you execute a PROC from another PROC? <o:p></o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Nesting is allowed. I think upto 15 levels. (MVS/EXA Not Allowed But Z/Os Can Possible)<o:p></o:p></span></b></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is a DD statement?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Data Definition</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Can you execute a PROC from another PROC? </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> I did not know the answer and my interviewer said NO. Later I tried and executed PROC from a PROC, three levels deep. Manuals do not state any limit on PROC calling PROC, or nesting.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What will happen if you attempt to restart a job in the middle of a JCL // IF .... // ENDIF?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Job will fall through to the ENDIF (not executing any steps), then resume execution with the first step AFTER the // ENDIF.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What Is A File? </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> A FILE IS A COLLECTIVE GROUP OF RECORDS. THE NUMBER OF RECORDS ON A FILE DEPENDS ENTIRELY ON THE APPLICATION ASSOCIATAD WITH THE FILE. FILES MAY CONTAIN A FEW RECORDS, THOUSANDS, OR EVEN MILLIONS OF RECORDS. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How Many Positonal Parameters Are There In Jobstatement? </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> THER ARE TWO POSITION PARAMETERS IN JOB STATEMENT. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What are three parameters you can specify on Job statement as well as on exec stmt ?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Time , Region and Cond parameters</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How can you trap abends in the JCL?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Use IF ABEND statement in the JCL.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How do you restart a step in JCl? </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Use RESTART=step name.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> how do you pass parameters to tne program as the job is being executed ?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> by using 'parm' parameter in exec statement. the value mentioned here should be declared in linkage section in the program and process thru procedure division. this technique is very useful when you do not know the parametrs at the time of coding the programs.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Why do you use a controlcard?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> A controlcard can be a member of a pds or a sequential dataset and is used for storing the date fields, Definitions of VSAM files....etc. You use controlcard because you cannot use a instream procedure in a procedure.Generally you will be calling a Proc from your Jcl and you cannot code instream procedure in the Proc and so you will point to the dataset which is called controlcard.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How do you submit JCL via a Cobol program? For the above question the solution is as follows..</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;"><o:p> </o:p></span></b></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> In your JCL define as//JOBA JOB 1111,JOB1//STEP01 EXEC PGM=PROG1//ddname DD SYSOUT=(*,INTRDR)....and your COBOL(PROG1) should look like thisSELECT JCL-FILE ASSIGN TO ddname.Open this file and write the JCL statements into this file.Example.MOVE '//TESTJOB JOB 1111,VISVEISH' TO JCL-REC.MOVE '//STEP01 EXEC PGM=IEFBR14' TO JCL-REC.and close this file.Then TESTJOB will be submitted.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How do you submit a JCL under CICS environment ?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> pass all the jcl codes to a COBOL variable(should be declare using OCCURS clas) and the write the line one by one to the spool using CICS commands like SPOOLClose SPOOLOpen SPOOLWrite . For more help reffer CECI of CICS or CICS manual </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is the parameter to be passed in the job card for the unlimited time , irrespective of the job class</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> TIME=1440</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Definition of COND p-r in JCL and a correction to a previously posted question</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> COND is a condition parameter, consists of 2 subparameters, 1st - return code from the previous step, 2nd - condition. If COND is true, the step on which COND is coded will be BYPASSED.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Q) WHAT IS MEANT BY S07C AND S0C30 SYSTEM ABEND CODES(QUESTION ASKED BY Mr. PRAVEEN)?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> A) S0C7 - Data exception error - you will get it whenever you are trying to move the low values or spaces into the numeric field, or compare the numeric fields with low values, or try to do some arithmetic operations on the low values. To avoid this you have to always initialize the numeric fields otherwise they will contain the low values.S0C 30 - I have never heard of it, let you know if I come accross it.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How to pass the temp dataset form one JOB step to another?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> By specifying the DISP as PASS for the temp dataset</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is a COND parameter in JCL?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> COND means condition parameter. It is compared with systemreturn code of previous step.//step1 exec pgm=abcd//step2 exec pgm=xyz, cond=(4,lt)step2 will be executed when system return code of step1 isless than 4.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> WRITE A JCL TO EXECUTE A JOB BY 7 A.M ON JAN 20,1986 ?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> THE code IS : //*MAIN DEADLINE=(0700,B,012086)</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> HOW MANY TYPES OF LIBRARIES ARE THERE IN JCL ?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> LIBRARIES ARE OF THREE TYPES.1.SYTEM LIBRARIES: SUCH AS SYS1.LINKLIB2.PRIVATE LIBRARIES: SPECIFIED IN A JOBLIB OR STEPLIB DD STATEMENTS.3.TEMPORARY LIBRARIES:CREATED IN A PREVIOUS STEP OF THE JOB.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> WHAT U MEAN BY INCLUDE STATEMENT IN JCL ?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> AN INCLUDE STATEMENT IDENTIFIES A MEMBER PF A PDS OR PDSE THAT CONTAINS.THIS SET OF JCL STATEMENTS IS CALLED AN INCLUDE GROUP.THE SYSTEM REPLACES THE INCLUDE STATEMENT WITH THE STATEMENTS IN THE INCLUDE GROUP.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> THE MAXIMUM NUMBER OF IN-STREAM PROCEDURE YOU CAN CODE IN ANY JCL IS ?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> 15.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What you mean by skeleton JCl?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Jcl which changes during run time ie the values for the jcl such as pgm name ,dd name will change .ie same jcl can be used for various job, equvalent to dynamic sql...</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How do you submit a JCL under CICS environment ?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Edit the JCL in Extra partition TDQ and submit the same using some system command (not sure) under CICS subsystem. This is what i think, please clarify....</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> what is jcl</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> it is interface between operating system(mvs) & application program. when 2 related programs are combined together on control statements is called job control language</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is the max blocksize for a Tape file?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> It is 32,760.Based on that we can calculate effecient number of Records in a Block</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What are the basic JCL Statements for a Job?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> 1.JOB : Idenfies a job and supplies accounting info 2.EXEC : Identifies a job step by indicating the name of the program to be executed. 3.DD : Identifies a data set to be allocated for the job step 4.Delimiter (/*): Marks the end of an in-stream dataset 5.Null(//):Marks the end of a job 6.Comments(//*): Provides Comments 7.PROC : Marks the beginning of a procedure 8.PEND : Marks the end of a procedure 9.OUTPUT: Supplies options for SYSOUT processing. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What does the statements: typrun=scan and typrun=hold doin a JCL statement </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> typrun=scan checks the JCL for errors, typrun=hold holdsthe job until further notice. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Which of the following is Online transaction? CICS, DB2 and JCl</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> CICS</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How many PERFORM's are there in COBOL-II?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> 5</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> which is the most widely used batch performance monitor for DB2?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> DB2PM</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is QSAM error usually when it is occurs?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> Usually it is occurs at the time of job submission. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> what is the purpose of include statement in a jcl?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> It is used as an alternative for steplib.When we specify the dataset name in include ,it will search in all the datasets specified in the include dataset.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> IS IT POSSIBLE TO KNOW THE REMAINING FREE SPACE IN AN CONTROL INTERVAL/CONTROL AREA ONCE AN INSERTION HAS BEEN MADE.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> NOT POSSIBLE</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> what does soc04 error mean?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> this error is faced when we execute the cobol program.the main reason for this error is that a variable is defined with less characters and we are trying to move data which is larger than the actual storage space.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> What is JCL</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> JCL is Job Control Language and is used for Batch processing. The startup procedures of OS and standard products like CICS etc are written in JCL. </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> In which table PLAN is registered in ?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> RCT</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> GDG?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> GDG - group of dataset that are logically or chronologically related, referred by name and a relative generation number - an integer which identifies the generation of a dataset and is coded in parentheses after dataset name. Absolute GDG name - GxxxxVyy, where xxxx-absolute gen.number, yy-version number. Can be sequential, direct, partitioned. (VSAM - no). Must always be cataloged. Advantage - all datasets have the same name and system keeps track of adding new and retaining previous generations and deleting oldest successive generation. To create a GDG we create a GDG index in the system catalog with IDCAMS utility and then a model (prototype, DSCB) on the same volume to supply DCB information. Empty - when limit is reached all members are removed from the index, otherwise-only oldest. Scratch-removed members are uncataloged & deleted, otherwise - removed & uncataloged, but remain in the system (not members of GDG any more). GDG number is updated at the end of the job. If number is not specified all generations will be processed from the beginning</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> what is jcl</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> it is used to commmunicate between the terminals.</span></b><span style="font-size: 12pt;"> <b>(OS to App.Prg)</b><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> what do you mean By spooling? Expand SPOOL?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> This is managed by JES.This is used for Queuing the Outputs that are intended for Printing and are first stored in SPOOLDASD. This can be managed Using </span></b><span style="font-size: 12pt;"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How many Instream-Procedures(procs) can be Coded in a single Job?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> The Answer is: 15</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> For How Long A Job Can Be Executed Continueously In A Mainframe</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> 248 DAYS</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How many divisions are there in JCL-COBOL?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> SIX</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Max. No of DD statements in a job</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> 3273</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How Much Space Os Allocates When You Create A Ps Or Pds?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> 56 KB</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> Min No Of Dataset Names(Pds) In One Directory Block?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> SIX</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> The Maximum Number Of Steps In A Job?</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> 255</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question:</span></b><b style=""><span style="font-size: 12pt;"> How much is memory space involved, when we code BLOCKSIZE,TRK & CYL</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: green;">Answer:</span></b><b style=""><span style="font-size: 12pt;"> One block constitutes 32KB of formatted memory/ 42KB of Unformatted memory,6 blocks makes one Track & 15 Tracks makes one cylinder.</span></b><span style="font-size: 12pt;"> <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: Corrections in the answers. <o:p></o:p></span></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: I think the answer for the question by Kyati on march 19/1998 about Maximum number of extents in secondary allocation is 16 & not one.I think there is a missing Diposition parameter for the question by Anon on march 11\1998-- Please add PASS. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h1><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: What is DSNDB06 ? <o:p></o:p></span></h1> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: This is the Place where DB2 Catalog resides <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h1><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: What is the use of DSNDB07 ? <o:p></o:p></span></h1> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: This is the area where sorting takes place in DB2 <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h1><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: What is the purpose of Identification Division? <o:p></o:p></span></h1> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: Documentation. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h1><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: What is JCL? <o:p></o:p></span></h1> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: job control language <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h1><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: WHAT IS DATACOM DB? <o:p></o:p></span></h1> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: IT IS A DATABASE USED WITH VSE. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h1><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: What is a Dummy Utility and what it does ? <o:p></o:p></span></h1> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: IEFBR14 is a Dummy utility and it is used for the sakeof EXEC PGM= .... statment in JCL[when used it wouldn't perform any task]. e.g. While Allocating a datasetyou don't have to run any utility [this could be done by giving disp=new inDD statment]. But for a PGM name must be given in EXEC statment, it is used. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h1><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: What 3 guidelines do we have to follow when concatenating DD statements? <o:p></o:p></span></h1> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: 1. Datasets must be of the same type (disk or tape)2. All datasets must have the same logical record length 3 The dataset with the largest blocksize must be listed first. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoBodyText"><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: On the DD statement, what is the main difference between creating a new sequential flat file and a partitioned dataset? <o:p></o:p></span></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: SPACE=(n,m) for a sequential file, SPACE=(n,m,p) for a PDS where n, m, and p are numbers. The p designates how many directory blocks to allocate. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h1><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: What is the difference between IEBGENER, IEBCOPY and REPRO in IDCAMS utlity? <o:p></o:p></span></h1> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: IEBGENER -- This is a dataset utility for copying sequential datasets which produces a PDS or a member from a sequntial dataset.IEBCOPY -- This is a dataset utility for copying one PDS to another or to merge PDSs.REPRO -- This is for copying sequential datasets. More or less same as the IEBGENER.RAVI <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h1><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: How do you submit JCL via a Cobol program? <o:p></o:p></span></h1> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: Use a file //dd1 DD sysout=(*,intrdr)write your JCL to this file. Pl some on try this out. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h1><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: How to execute a set of JCL statements from a COBOL program <o:p></o:p></span></h1> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: Using EXEC CICS SPOOL WRITE(var-name) END-EXEC command.var-name is a COBOL host structure containing JCL statements. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <h1><span style="font-size: 12pt; color: red;">Question</span><span style="font-size: 12pt;">: What is the difference betebeen static call & Dynamic call <o:p></o:p></span></h1> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: In the case of Static call, the called program is a stand alog program, it is an executable program . During run time we can call it in our called program. As about Dynamic call , the called program is not an executable program it can executed thru the called program <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: What is the difference between catalouge procedure and In-Stream procedure? <o:p></o:p></span></b></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: In Stream procedures are set of JCL statements written between JOB and EXEC statements, start with PROC and end with PEND statement.Mainly used to test cataloge procedures. Cataloged procedure is cataloged on the procedure library and is called by specifying the procedure name on the EXEC statement. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: What do you feel makes a good program? <o:p></o:p></span></b></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: a program that follows a top down approach. It is also one that other programmers or users can follow logically and is easy to read and understand. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: can we browse or edit the GDG dataset if it is a tape entry? <o:p></o:p></span></b></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: No , <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: What are the maximum and minimum sizes of any CONTROL AREA (VSAM datasets) ? <o:p></o:p></span></b></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: Minimum Size : 1 trackMaximum size : 1 cylinder <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: How To Get Cursor Position From System In CICS Environment ? <o:p></o:p></span></b></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: Get It From EIBCURPOS ! <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: How many parameters are there to a DISP statement and what are thier uses. <o:p></o:p></span></b></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: There are three(3) parameters. Parameter 1: current data set disposition(new, shr, old, mod) Parameter 2: normal close action for data set (catlg, keep, delete) Parameter 3:abend action for data set (catlg, keep, delete). <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: What is the error code SOC01 indicate ? <o:p></o:p></span></b></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: Operation exception error For eg a dataset open error <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: WHAT IS COMM? <o:p></o:p></span></b></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: COMM - HALF WORD BINARY <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: What is a procedure? <o:p></o:p></span></b></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: A set of precoded JCL that can be modified through the use of parameters or override cards. Note: Procedures can be catalogued or instream. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: What is the difference between specifying DISP=OLD and DISP=SHR for a dataset? <o:p></o:p></span></b></p> <p class="MsoBodyText2"><b><span style="color: rgb(51, 153, 102);">Answer</span></b>: OLD specifies exclusive use of a dataset, SHR allows multiple jobs to concurrently access the dataset Note: When updating a dataset, you would normally use OLD. </p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: What are the three basic types of statements in a jobstream? <o:p></o:p></span></b></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: JOB(one per jobstream)EXEC(one or more per job)DD(one or more per jobstep) <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: What does SYSIN * indicate? <o:p></o:p></span></b></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: Instream data follows this card and is terminated when followed by a card containing // or /* in columns 1 and 2. <o:p></o:p></span></p> <p class="MsoNormal"><span style="font-size: 12pt;"><o:p> </o:p></span></p> <p class="MsoNormal"><b style=""><span style="font-size: 12pt; color: red;">Question</span></b><b style=""><span style="font-size: 12pt;">: What are three major types of JCL statements? What are their functions? <o:p></o:p></span></b></p> <p class="MsoNormal"><b><span style="font-size: 12pt; color: rgb(51, 153, 102);">Answer</span></b><span style="font-size: 12pt;">: JOB, EXEC, DD. JOB - indicates start of jobstream to the operating system and through parms coded on it, certain details about the job (time, region, message level, job accounting data). EXEC - indicates the start of execution of a particular job step, be that step a program or a proc.DD - is a data definition, which is used to describe the attributes of a data set (name, unit, type, space, disposition).<o:p></o:p></span></p> Sumedhhttp://www.blogger.com/profile/11533458660230230361noreply@blogger.com0