WORKING-STORAGE SECTION.
01 A PIC X(3) VALUE 'ABC'
01 B PIC 9(3).
PROCEDURE DIVISION.
MOVE A TO B.
STOP RUN.

OUTPUT IS: AB3
WHY AND HOW THIS IS HAPPENING.

Answer Posted / mahe

You won't get AB3 as Output,Job will abend with SOC7 as you
r moving Character to Numeric variable

Is This Answer Correct ?    22 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

2325


what are decleratives in cobol?

1986


What are declaratives and what are their uses in cobol?

921


What are the different data types in cobol?

1025


how do you reference the ksds vsam file formats from cobol programs

867


Write a program that uses move corresponding.

860


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5404


Write down the divisions of cobol program?

827


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

953


How do define dynamic array in cobol.

846


What are literals?

834


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

896


) How do u handle errors in BMS macro?

1608


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

957


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2225