Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SUB ROUTINE CALL - dynamic

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: SUB ROUTINE CALL - dynamic
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    Post subject: Re: SUB ROUTINE CALL - dynamic
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    Post subject: Re: SUB ROUTINE CALL - dynamic
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    Post subject:
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    Post subject:
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    Post subject: Re: SUB ROUTINE CALL - dynamic
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    Post subject:
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    Post subject: Re: SUB ROUTINE CALL - dynamic
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
No new posts SORT - E15 and E35 using same user ex... Abhi Nature DFSORT/ICETOOL 12 Mon Oct 03, 2016 4:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us