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


Please Help Members By Posting Answers For Below Questions

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?

700


A table has two indexes defined. Which one will be used by the SEARCH?

757


How to know whether the module is dynamical or statistical?

652


What is the use of intialize verb?

744


What is the Purpose of POINTER Phrase in STRING command in COBOL?

720






Explain how you can characterize tables in cobol?

636


How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

710


What is the difference between goback, stop run and exit program in cobol?

923


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.

1115


how to move the records from file to array table. give with code example

2219


Name some of the examples of COBOl 11?

2681


What do you understand by psb and acb?

661


What guidelines should be followed to write a structured cobol prgm?

670


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.

932


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

704