What will happen if a variable is declared as below..
Explain with an example? Working storage section:-
01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'.
01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'.
What will happen I am going to Display the WS-VARX and WS-
VARN?
Answer Posted / neela
Hi KHB Naidhu,
pic x means it should be alphanumeric
pic 9 means it should be Numeric
so we have to move numeric values also to the pic x
for this qtion is correct what was explained my
mallikarjuna.
regards
Neela
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Write a program to enter and display the names of students in a class using the occurs clause.
2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic
how do you reference the ksds vsam file formats from cobol programs
Write the code implementing the perform … varying.
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
which is Best IBM Mainframe Training and Placement Institute in Ameerpet Hyderabad
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
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?
Write a program to explain size error.
How do you define a variable of comp-1 and comp-2?
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
How are the next sentence and continue different from each other?
What the difference is between continue and next sentence?