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 |
Read filea And file b write the same records in both files? Records in a but not in b record in b but not in a
wht do u mean by (*,intrdr) wht is * used for ?
Can we access the a[0] in the array ?
Syntax for JCLLIB & JOBLIB???
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
where did you see the information regarding abend codes in jcl?
consider the fallowing 77 stat pic 9. 88 male value 1,2,3. 88 female value 4 through7. what will be the value of stat a) set male to true. b) set female to true.
Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?
What are the divisions in a cobol program?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
what happens when a copybook variables are declared using include statement ?
i have a sequencial file contains multiple records, i want to extract one row which contains various fields like order number,date,warehouse,.ect.. in to the another file by accepting the order number from jcl. how can i do it. pls help me..