View previous topic :: View next topic
|
Author |
Message |
nag.kolli
New User
Joined: 20 Apr 2007 Posts: 5 Location: Hyderabad
|
|
|
|
i have a pure cobol pgm which has a static call to a cobol-db2 pgm. i am not able to run a cobol pgm with ikjeft01 as it is giving me a soc6 abend. when it encounteres the first sql.plz help me out how to run these pgm? |
|
Back to top |
|
|
Marso
REXX Moderator
Joined: 13 Mar 2006 Posts: 1353 Location: Israel
|
|
|
|
Do you execute your program with DB2, like that:
Code: |
//SYSTSIN DD *
DSN SYSTEM(DB2)
RUN PROGRAM(your-main-pgm) etc |
Did you put DB2 libraries in the JOBLIB / STEPLIB ?
Show the JCL you used. |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
IKJEFT01 utility is mainly used to run COBOL-Db 2 programs, not for pure cobol programs.. |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
If u r calling a cobol db2 program from ur cobol program then u can use IKJEFT01 but confirm that did u alloted the Steplib or job lib properly and did u used SYSTSIN DD * with the necessary data. |
|
Back to top |
|
|
nuthan
Active User
Joined: 26 Sep 2005 Posts: 146 Location: Bangalore
|
|
|
|
Go through the information about SOC6 here.
Reason : Specification exception. Usually caused by incorrect boundary. Read the description for pausible causes.
Description : Occured due to One of the following: 1) A data, instruction, or control-word address does not specify the proper storage boundary alignment, 2) An instruction specifies an odd register number when it should specify the even numbered register of an even-odd register pair, 3) A floating point register other than 0, 2, 4, or 6 was specified in a floating point instruction, 4) The multiplier or divisor in a decimal (packed) arithmetic instruction exceeds 15 digits and sign, 5) The first operand field is shorter than or equal to the second operand field in a decimal (packed) multiplication or division instruction, 6) The block address in a SET STORAGE KEY or INSERT STORAGE KEY instruction has the four low-order bits not all zero, 7) A PSW with a non-zero protection key was encountered when protection was not installed.
Solution : Correct the program logic or construction error and rerun The job. See possible causes from Discription |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi all.....
We can IKJEFT01 for executing CLIST commands also, it is an Terminal monitor program. It is not only for COBOL-DB2 program. You can use TSO ALLOC command in the SYSTSIN card of the IKJEFT01 utility.
But The question is about solving SOC6 or SOC7, pls correct the given information.....
Regard's
Vasanth......... |
|
Back to top |
|
|
|