mainframe Online Quiz - 23
|Description: mainframe Online Quiz - 23|
|Number of Questions: 20|
|Created by: Aliensbrain Bot|
Assume a PL/I program that wants to execute a call to an external procedure. This procedure expects 1 parameter and returns 1 parameter. Which instructions do you have to provide in the main program? (1) DCL MYSUB ENTRY (CHAR(5)) EXTERNAL; (2) DCL MYSUB ENTRY (CHAR(5)) RETURNS (CHAR(5)) EXTERNAL; (3) DCL MYPARAMETER,MYRESULT CHAR(5); (4) CALL MYSUB (MYPARAMETER); (5) MYRESULT = MYSUB; (6) MYRESULT = MYSUB(MYPARAMETER);
Take a look at the following PL/I program. Assume A, B, C, ... being PL/I instructions. In which order will they be executed?MYPROG : PROCEDURE OPTIONS (MAIN);
How to use host variables in DB2 queries while they accessed through cobol programs.
Match the below SQL CODE (1,2,3,4,5) Cause (A,B,C,D,E) 1)904 A)The string representation of a date time value is not a valid 2)818 B) Resource unavailable 3)181 C)Duplicate key on insert or update 4)803 D)Deadlock or timeout. Rollback has been done 5)911 E)Plan and program: timestamp mismatch
What is the maximum Program Name length can be given in a Cobol Program.
In the Procedure Division of a COBOL program, which of the following is Optional?
While Search in a VSAM file, if Return Code 23 is thrown, what it means.
To answer this question, we need to understand the meaning of Return Code 23 in the context of searching in a VSAM file.
Return Code 23 in VSAM indicates an "Invalid Key." This means that the key value provided during the search operation does not exist in the VSAM file. The search operation was unable to find a matching record with the specified key.
Let's go through each option to understand why it is correct or incorrect:
Option A) (A) Valid Key - This option is incorrect because Return Code 23 indicates an invalid key, not a valid key.
Option B) (B) Duplicate Key - This option is incorrect because Return Code 23 does not indicate a duplicate key. It specifically indicates an invalid key.
Option C) (C) Invalid Key - This option is correct because Return Code 23 in VSAM signifies an invalid key.
Option D) (D) Empty VSAM file - This option is incorrect because Return Code 23 does not indicate an empty VSAM file. It pertains to an invalid key.
Therefore, the correct answer is Option C) (C) Invalid Key. This option is correct because Return Code 23 signifies an invalid key in a VSAM file.
What can be the maximum number of digits declared in a variable?
Which of the below cannot be used in a JCL.
What is the maximum value can be stored in S9(8) COMP
To answer this question, we need to understand the format of the S9(8) COMP data type in COBOL.
The S9(8) COMP data type is used to represent a signed numeric value with a total of 8 digits, including the sign. The "S" indicates that it can represent positive or negative values, and the "9(8)" specifies that it can hold a maximum of 8 digits.
In COBOL, the COMP data type is used to store binary data. It is a binary representation of the numeric value, which allows for faster calculations and efficient use of memory.
To determine the maximum value that can be stored in S9(8) COMP, we need to consider the range of values that can be represented by 8 digits. Since the COMP data type is binary, each digit can be represented by 4 bits. Therefore, 8 digits would require a total of 32 bits.
The maximum value that can be represented by 32 bits is 2^32 - 1, which is 4294967295. However, since the S9(8) COMP data type includes a sign, we need to consider the range of signed values.
With 8 digits, the maximum positive value that can be stored in S9(8) COMP is (2^31 - 1), which is 2147483647. The negative value can range from -2147483648 to 2147483647.
Therefore, the maximum value that can be stored in S9(8) COMP is 99999999, as mentioned in option (D).
Please identify the utility to kill DB2 utilities, which is running / existing on table.
DB2 query to get the bind plans attached with the tables.
What is the use of DB2 utility RUNSTAT
What mode the file should be opened,if it should be Rewritten?
The maximum versions of GDG limit can be given till
How to check the success of your binding job
Which of the following is not DATABASE privilege?
When we are updating a particular field in a record we have to give:
20.In a program if two input files are being used and one of them will be created in Predeccesor job(it's not mandatory that the file should be created).Irrespective of the file creation if the job has to be run with out abend then what is the command used in COBOL program File division.
Which of the following is NOT a COBOL verb?
To answer this question, you need to have knowledge of COBOL verbs. Let's go through each option to understand why it is correct or incorrect:
Option A) (A) Start - This option is a valid COBOL verb used to initiate the processing of a file or a record.
Option B) (B) Rewrite - This option is a valid COBOL verb used to modify the content of a record that already exists in a file.
Option C) (C) Delete - This option is a valid COBOL verb used to remove records from a file.
Option D) (D) Update - This option is NOT a valid COBOL verb. There is no COBOL verb called "Update" used in COBOL programming.
The correct answer is D. This option is correct because "Update" is not a valid COBOL verb.