View previous topic :: View next topic
|
Author |
Message |
Tushar Sood
New User
Joined: 26 Oct 2008 Posts: 14 Location: New Jersey
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
Tushar Sood
New User
Joined: 26 Oct 2008 Posts: 14 Location: New Jersey
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
|