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

SUB ROUTINE CALL - dynamic


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pushpagiri

New User


Joined: 07 Jul 2005
Posts: 51

PostPosted: Wed Jul 13, 2005 4:08 pm
Reply with quote

Hi,
I am calling a sub-routine (Dynamically).when I Run it ,i am getting the
following error with abend code S0C4.Why is it so?

Anybody please answer me.

SUBROUTINE ENTRY
CEE3204S The system detected a protection exception (System Completion Code=0C4).
From compile unit ERTRAN at entry point ERTRAN at statement 51 at compile unit offset +00000660 at entry
offset +00000660 at address 0002D678.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Wed Jul 13, 2005 4:35 pm
Reply with quote

When executing a COBOL/VSE program in
a partition that crosses the 16MB line
and the COBOL program is using
multi-file tape(s) and a file sequence
number is specified on the TLBL, a
protection exception occurs

The address of the current DTF may be located above the 16MB
line when running an AMODE(ANY) or AMODE(31) COBOL/VSE
program. LE/COBOL issues VSE macros that require switching to
AMODE(24) temporarilily and is attempting to access the DTF
address while still in AMODE(24). This causes the incorrect
DTF address to be retrieved and any changes made, such as tape
file control, to the DTF cause attempted modification to
storage not available to the LE/COBOL runtime.
Back to top
View user's profile Send private message
pushpagiri

New User


Joined: 07 Jul 2005
Posts: 51

PostPosted: Wed Jul 13, 2005 5:07 pm
Reply with quote

pushpagiri wrote:
Hi,
I am calling a sub-routine (Dynamically).when I Run it ,i am getting the
following error with abend code S0C4.Why is it so?


I am accessing a vsam file inside subroutine.
Is this the reason for this error code.

What is the way to access VSAM file contents
inside a sub-routine.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Wed Jul 13, 2005 5:34 pm
Reply with quote

Pushpa,

Can you post your question globaly, rather than private messages ?

Probably, other are more capable to help you out ! icon_biggrin.gif
Back to top
View user's profile Send private message
pushpagiri

New User


Joined: 07 Jul 2005
Posts: 51

PostPosted: Wed Jul 13, 2005 6:25 pm
Reply with quote

MY subroutine works fine if i am not accessing any vsam files

inside it.

Is that the reason for the abend code.

please help me.


regards,
push.
Back to top
View user's profile Send private message
gsnvsr

New User


Joined: 06 Jul 2005
Posts: 40

PostPosted: Mon Jul 18, 2005 5:42 pm
Reply with quote

Can you tell us what you are trying to do in the subroutine? Are you using arrays and stuff? Without knowing what the program is actually doing, its difficult to predict any such abends.

Regards,
Prasad
Back to top
View user's profile Send private message
pushpagiri

New User


Joined: 07 Jul 2005
Posts: 51

PostPosted: Tue Jul 19, 2005 10:32 am
Reply with quote

hi,

A very silly mistake happned.
In my runJCL
instead of giving ERROR1 (This is my ASSIGN filename-step name in jcl)
I gave it as ERR0R1--->ERR(zero)R1.

ie.,
//ERROR1 DD DSN=<FILENAME>

So friends please be careful in this.It took
a day for me to find out.

Does anybody have any idea of debuging such errors.

REgards,
Push.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Tue Jul 19, 2005 11:15 am
Reply with quote

Hi pushpagiri,

Well come to the league of "Zero / O " victims. icon_lol.gif


This has happened with me as well.

You know, on keyboards, zero ( 0) and oo (o) are very close.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Call program, directly from panel CLIST & REXX 9
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
Search our Forums:

Back to Top