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
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?
what are decleratives in cobol?
What are declaratives and what are their uses in cobol?
What are the different data types in cobol?
how do you reference the ksds vsam file formats from cobol programs
Write a program that uses move corresponding.
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.
Write down the divisions of cobol program?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How do define dynamic array in cobol.
What are literals?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
) How do u handle errors in BMS macro?
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
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.