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

Getting System Abend 0C4


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Tushar Sood

New User


Joined: 26 Oct 2008
Posts: 14
Location: New Jersey

PostPosted: Thu Dec 03, 2009 7:25 pm
Reply with quote

Hi,

I am allocating a new dataset using the LIKE command.

"ALLOC FI(OUTDS) DA("DATAST") NEW LIKE(AUTOINT.INT.TEMP) "

After this i am processing the input data with the DELSTR & INSERT Functions and writing it to the new dataset.

'EXECIO * DISKW OUTDS (STEM X. FINIS'

Then i am freeing both the files with "FREE F(INDS,OUTDS)"

After all this i am trying to call the new dataset for execution in the same program.

While executing this program i am getting the following Abend:-

System abend code 0C4, reason code 00000004.

Please let me know if i am missing something.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Dec 03, 2009 8:05 pm
Reply with quote

Can you be more specific about what you are writing and how you are calling it?

The way you posted it, it sounds like you are trying to create a load module, which I do not think you can create like that.
Back to top
View user's profile Send private message
Tushar Sood

New User


Joined: 26 Oct 2008
Posts: 14
Location: New Jersey

PostPosted: Sun Dec 06, 2009 1:46 pm
Reply with quote

Pedro,Thanks for the reply .

I have a permanent dataset which has REXX code in it. I am writing a rexx program which creates a new dataset from this one (with the help of Like Command), substitutes the necessary data in that (using the functions) & then i am calling the newly cmreated dataset using ADDRESS TSO comand.

When i execute this rexx program i am getting the above error.

Please let me know if you need anything else.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sun Dec 06, 2009 2:33 pm
Reply with quote

It looks from the tiniest snippet of code that you have so generously mentioned above that there is a mixture of both CLIST and REXX.

Please explain in detail what your aim is, how you hope to achieve it, and post the code and error codes / messages you receive.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun Dec 06, 2009 7:11 pm
Reply with quote

LIKE(AUTOINT.INT.TEMP)

are you sure that this is the proper syntax. maybe enclose the dsn with quotes? to insure hlq.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Mon Dec 07, 2009 9:41 pm
Reply with quote

Add a trace to the rexx program you are creating and calling. And show us the pertinent part of the trace results.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Dec 08, 2009 6:29 am
Reply with quote

Quote:
I am writing a rexx program which creates a new dataset from this one (with the help of Like Command)


The LIKE only helps with the dataset attributes (such as lrecl, blksize) and does not help at all with the contents of the dataset.

You need a copy step.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
No new posts JCL Dynamic System Symbols JCL & VSAM 3
Search our Forums:

Back to Top