01 a pic x(4) value 'abcd'
01 b pic 9(3)
can we move from a to b.if possible what would be stored in
b.
Answer Posted / amjith pillai
01 a pic x(4) value 'abcd'
01 b pic 9(3)
Yes, you can move. Try just a move and display B. you will
get abc.
But if you go for an operation (add, move to comp variable
etc) then you will hit SOC7
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
A table has two indexes defined. Which one will be used by the SEARCH?
How to know whether the module is dynamical or statistical?
What is the use of intialize verb?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Explain how you can characterize tables in cobol?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the difference between goback, stop run and exit program in cobol?
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.
how to move the records from file to array table. give with code example
Name some of the examples of COBOl 11?
What do you understand by psb and acb?
What guidelines should be followed to write a structured cobol prgm?
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 do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?