How to insert values for variables that are declared as COMP-3 variables in COBOL program in an already created VSAM file.
3 VSAM 9160What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(9) VALUE SPACES. 01 WS-VARN REDEFINES WS-VARX PIC 9(9).
8 COBOL 11574
study the data discriptions and answer the questions given below
i)01 ORDER RECORD
05 OUT-HEADER PIC X(50)
05 ITEM-COUNT PIC 99
05 OUT-ITEM PIC X(20) OCCURS 1 TO 20 DEPENDING
ON ITEM-COUNT
ii)01 NAME-AND-ADDRESS
05 N-AND-A-LINE OCCURES 5
05 LINE-LENGTH PIC P9
05 N-AND-A-CHAR PIC X OCCURS 1 TO 20 DEPENDING ON
LINE-LENGTH
iii)01 SALES-LIST
05 SALESMAN-COUNT PIC 99
05 SALES PIC 9(6) OCCURS 1 TO 100
DEPENDING ON
SALESMAN-COUNT
iv)01 ORDER-RECORD
05 NO-OF-BRANDS PIC 99
05 BRAND-PURCHASED OCCURS 1 TO 15 DEPENDING ON
NO-OF-BRANDS
which of the following is true?
a.i) and iii) are valid
b.i) and iv) are valid
c.i) and iii) are not valid
d.all are valid
Answer
| Is This Answer Correct ? | 0 Yes | 0 No |
Consider the following:
77 A PIC 9(10)
77 B PIC 9(10)
77 C PIC 9(19)
MULTIPLY AB BY B GIVING C
Which of the following is true ?
(a) The execution of the above may result in size error.
(b) The execution of the above will result in size error.
(c) The definition of C is invalid resulting in compilation
error.
(d) No error will be thee and the program would proceed
correctly.
Answer
| Is This Answer Correct ? | 7 Yes | 1 No |
Identify the invalid dataname from the following:
(A) savings-account
(B) annual-allocation-for-overhead
(C) samount250
(D) 12demand
Answer
| Is This Answer Correct ? | 0 Yes | 17 No |
If a=1 or 2 or 3 NEXT SENTENCE
ELSE move a to b.
a) if A not = 1 or 2 or 3 move A to B
b) if not A = 1 and 2 and 3 move A to B
c) if A Not = 1 and 2 and 3 move A to B
d) if A NOT = 1 or NOT=2 or NOT =3 move A to B
Answer
| Is This Answer Correct ? | 4 Yes | 4 No |
Question { 6732 }
What is the procedure for running the batch job in
mainframe?
Answer
| Is This Answer Correct ? | 1 Yes | 4 No |
I want to increse the size of one existing dataset, can
anyone tell me the TSO command throgh that I can edit it.
Answer
| Is This Answer Correct ? | 2 Yes | 1 No |
Attended Xansa Interview , Asked Questions :
1) Diff between Renames and Redefines
2) Comp and Comp -3
3) What will happen if DISP = ( NEW, DELETE, KEEP)
4) Gave one scenario like , if PIC clause X(50) has to be
increased to X(70) how u will proceed with this change.
5) Diff between Section and Paragraph
Answer
| Is This Answer Correct ? | 4 Yes | 5 No |
Question { 7072 }
how to change pic of variables declared in copy book
inside progrm?
Answer
| Is This Answer Correct ? | 6 Yes | 0 No |
Question { 9160 }
How to insert values for variables that are declared as
COMP-3 variables in COBOL program in an already created
VSAM file.
Answer
| Is This Answer Correct ? | 1 Yes | 0 No |
Question { 11574 }
What will happen if a variable is declared as below..
Explain with an example?
Working storage section:-
01 WS-VARX PIC X(9) VALUE SPACES.
01 WS-VARN REDEFINES WS-VARX PIC 9(9).
Answer
| Is This Answer Correct ? | 2 Yes | 5 No |
Question { Cap Gemini, 42741 }
how to create a new pds with the structure of an existing
pds?
Answer
| Is This Answer Correct ? | 6 Yes | 4 No |
Question { Cap Gemini, 42741 }
how to create a new pds with the structure of an existing
pds?
Answer
| Is This Answer Correct ? | 7 Yes | 1 No |