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 Posted / anna
WORKING-STORAGE SECTION.
01 WS-VARX PIC X(9) VALUE SPACE.
01 WS-VARN REDEFINES WS-VARX PIC 9(9) value zeros.
in this case you can used any data, by using right
field for numeric data ws-varN, for alphabetic /alphanumeric
ws--varX.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
) what is the difference between AID and HANDLE AID?
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
What are the cobol coding sheets?
What are declaratives and what are their uses in cobol?
What is length is cobol?
What is the Purpose of Pointer in the string?
Write a program to explain size error.
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
what is the use of outrecord?
Mention the guidelines to write a structured cobol program?
There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
What are 77 levels used for?
Explain how you can characterize tables in cobol?