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 ? | 13 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 |
Write the code implementing the perform … varying.
ZEROES and SPACES are _______ constants (a) Figurative (b) Numeric (c) Non-numeric (d) Alphabete
if a>b continue display x. dispaly y. end-if display 1 display 2. display 3. what should be my output ?
Define static linking and dynamic linking.
what is search and searchall?what is the diffrence between them?give an best example?
where will we code call by content and call by reference dude pls reply soon ?
If there are two copybooks which have same variables and we are using both the copybooks in our program. will there be an error and if i move values to the variable which copybook varibales gets the values i move in.
What is the default value of DISP parameter?
how can we find total no of records in a file ....is there any utility......?
What is file status 39 ?
In a file if a column account number conatain value 0001234.. how can we move the value to another variable without zero. value may contain any type such as 00123405. we need the value 1234 or 12305. how can we do that in cobol. Please help.
Can we call a CICS program from a batch program or viceversa?If so, how?