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 / vikas p o

First thing, when write this code and compile will it
compile sucessfully. If it compiles sucessfuly then if run
JCL will it give SOC7 or not.

Did test it but got error during compliation something like
"MOVE DID NOT FOLLOW COMPATIBILITY RULES".

Ppl can add to this...

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i made it to stage 3 of an interview process wednessday they will quiz my knowledge again face to face for an analyst role recruiter said it will be based on Business requirements system is cobol and good ideas what they might ask etc

2105


Which is not true about evaluate statement

1588


What are literals?

632


Why would you use find and get rather than to obtain?

692


What is the difference between PIC 9.99 and 9v99 in COBOL?

734






What is the difference between Global and External Variables?

666


What are the different rules to perform a Search?

619


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

648


How do you reference the fixed block file formats from cobol programs

707


what is amode(24), amode(31), rmode(24) and rmode(any)?

705


what is difference between cobol and cobol/400

21568


What is the local-storage section?

683


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

932


What is a SSRANGE and NOSSRANGE?

824


When is inspect verb is used in cobol?

679