Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
S0C7 in a static call to a cobol-db2 pgm

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging
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    Post subject: S0C7 in a static call to a cobol-db2 pgm
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: 1243
Location: Israel

PostPosted: Sun Oct 07, 2007 2:33 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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: 276
Location: Bang,iflex

PostPosted: Mon Oct 08, 2007 2:18 pm    Post subject: Hi....
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    IBMMAINFRAMES.com Support Forums -> ABENDS & Debugging All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us