consider two data items
77 W-A PIC 9(3)V99 VALUE 23.75
77 W-B PIC ZZ9V99 VLAUE 123.45
after the statement
MOVE W-A TO W-B
what will be W-B's value?
a.123.75
b.b23.75 (where b indicates space)
c.023.75
d.invalid move
Answer Posted / rama krishna
b. Z replaces the value zero with blank spaces....
Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.
i want a program using by if, evaluate , string, unstring, perform, occurs?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
How do u write test cases?
Whats the difference between search & search ALL?
Explain what you understand by passing by value.
What is the use of intialize verb?
Mention the guidelines to write a structured cobol program?
how do you reference the rrds file formats from cobol programs
What are the different rules of SORT operation?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What are literals?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Why occurs cannot be used in 01 level in COBOL?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning