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 Posted / prasanna
1. RENAMES just renames the variable whereas REDEFINES can
give a new definition to a variable and can also rename it.
No one is using RENAMES claus e nowadays..
2. COMP is numeric data represented in Binary, number must
be a positive integer. bytes vary from 2 to 8 depending on
th e PIC clause. COMP-3 is variable declared in packed
decimal form. Each digit will take half a bit of storage.
sign is stored seperately regardless of S specified
3. Will create a dummy dataset.
4. In COBOL the variable declaration is restricted to 30
and so, it 'll result in an error. For theory sake, one can
use REDEFINE clause.
5. Variables are declared in SECTION and are used in
PARAGRAPHS..
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
what is the meaning of a (new, catlg, keep) disposition mean?
what is the other verb for release and write ?
accept ws-date from date will return the current date?
Express the distinction between jes2 and jes3?
what difference exists between control area and control interval?
How IBM framework work?
Can I redefine an x(100) field with a field of x(200)?
What is the facility that allows mainframes to be partitioned into lapars?
What is comp-1?
suppose if you added a coloumn to db2 table, How would it be the Impact analysis?
how could you write a program in a structured format?
What is next sentence and continue unique?
My program has an array defined to have 10 items. Due to a bug, I find that even if the program access the 11th item in this array, the program does not abend. What is wrong with it?
What is difference between static call and dynamic call?
what about F1 & F2 keys in xpeditor? And their functionalities?