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 / ankur
after redefining we can also move alphabetic to numeric or
numeric to alphabetic field . mathematical operation is
different . if we go for that it will give s0c7.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between comp and comp-3 usage?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
how can we apply for HSBC exam(Mainframe) in India??? i went to their site and was told to submit my CV ,. etc..( totally confusing...)
How do we get current date from system with century in COBOL?
What are the different rules of SORT operation?
what is the difference between COBOL2 AND COBOL390?
What is the problem of ordered sequential files access?
What are the pertinent COBOL commands?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
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.
write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc