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
How many sections are there in data division in COBOL?
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
What rules are to be followed while using the corresponding options?
What is a report item?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What rules are followed by the search verb.
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......
how do you reference the printer file formats from cobol programs
what is difference between cobol and cobol/400
What is the difference between Call and a Link?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is length is cobol?