IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

S0C7 in a static call to a cobol-db2 pgm


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nag.kolli

New User


Joined: 20 Apr 2007
Posts: 5
Location: Hyderabad

PostPosted: Sun Oct 07, 2007 2:24 pm
Reply with quote

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
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Sun Oct 07, 2007 2:33 pm
Reply with quote

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
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Mon Oct 08, 2007 1:33 pm
Reply with quote

IKJEFT01 utility is mainly used to run COBOL-Db 2 programs, not for pure cobol programs..
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Mon Oct 08, 2007 1:36 pm
Reply with quote

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
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Mon Oct 08, 2007 1:38 pm
Reply with quote

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
View user's profile Send private message
vasanthkumarhb

Active User


Joined: 06 Sep 2007
Posts: 275
Location: Bang,iflex

PostPosted: Mon Oct 08, 2007 2:18 pm
Reply with quote

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......... icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top