whn do i get soc7 abend while moving alphanumeric to
numeric or while moving numeric to aplhanumeric please
reply ASAP?
Answers were Sorted based on User's Feedback
Answer / b.rajesh
SOC7 abend error will occur when we pass ALPHANUMERIC to
NUMERIC
ex:-
01 a pic x(6) value 'rajesh'.
01 b pic 9(6).
procedure division.
move a to b.
it shows SOC7 error.
SOC7 abend error will NOT occur when we pass NUMERIC to
ALPHANUMERIC
ex:-
01 a pic 9(6) value '901090'.
01 b pic x(6).
procedure division.
move a to b.
| Is This Answer Correct ? | 14 Yes | 4 No |
Answer / y.prasanthi
When we provide invalid data i.e, alphanumeric to numeric
bcz alphanumeric contains characters also but numeric
contains only numbers.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / adarsha
i agree a bit with Y.prasanthi's answer..
> when we move any value say date from numeric to alpha
numeric.. SOC7 will not occur.. but when you do any
logical/arithmetic calculations on it.. SOC7 will appear !
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / nishu
No soc7 error is not for moving numeric to alphanumeric and vice-versa, soc7 means 'bad data',it means if u are providing any arithmetic operator in place of numeric or alphanumeric data.
If you move numeric to alphanumeric value than it wont show any error,but it will give unpredictable results.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / lalitha
Alphanumeric to numeric - provided the alphanumeric field
has charachters also in it.
| Is This Answer Correct ? | 1 Yes | 5 No |
Answer / adithya
SOC 7 ABEND WIL GET WHN WE PASS NON-NUMERIC TO NUMERIC DATA TYPE
IT IS NOT POSSIBLE TO PASS NUMERIC TO ALPHANUMERIC
| Is This Answer Correct ? | 3 Yes | 7 No |
Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?
can I copy book which contain db2 statment in procedure divion?
What is COMP-1? COMP-2?
what are the working storage fields in BMS macro?
What are 77 levels used for?
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.
What is Control Break processing ?
77 a pic x(4) value '1234' -----> instead of this 'abcd' 77 b pic 9(4) value zeros. move a to b what is the answers for both cases? IS it possible? Give me elementary move rules briefly......
COMP field occupy ?
What is diff betn PS and ESDS file? What is the diffrent compiler options in cobol and there discription? What is retrive nth maximum salary from salary DB2 table. Can we redefine COM-3 variable with varchar variable?
Suppose, file A has 100 records and file B has 500 records. We want to write records common to both A and B into file C and records which are present only in either A or B into another file D. What should be the logic of Cobol program to achieve this?
7 Answers Bank Of America, Mind Tree,
When is inspect verb is used in cobol?