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 advantage of defragmentation?
How many bytes does a s9(7) sign trailing separate field occupy ?
suppose oza017.myorg.emp has 100 records ,oza018.myorg.staff has 200 records but 50 are the common records in both files copy all the common records into oza017.myorg.xyz dataset?
Explain delete-connected tables?
what is the meaning of ssrange and nossrange?
what u mean by csrloc and rtncsrloc in rpgIV in as/400.Give an eg? to do...give some coding...what is row no and column no ???..if possible...give a no of lines coding....please
Why do you need a secondary index in an ims?
Can you define an alias?
WHAT IS THE PROCESS OF "CLAIM PROCESSING SYSTEM"
Can any one tell me that how we go for the compare,unit testing after changing requirement as per client request. this is very helpful for me when u give suitable (coading) exmple.
What is database descriptor?
How is data retrieved from multiple tables using a single sql statement?
Can you define spufi?
Explain paging concept in memory?
When do you get -811 sqlcode and how to resolve it?