View previous topic :: View next topic
|
Author |
Message |
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
Hi,
I am allocating one file using ALLOCATION DA. The file is getting created and it is copying the data from the skel and everything is fine. But it is throwing an unusal error. Do not have any clue.
Any help will appriciable.
INVALID FILE NAME. 'file name'
MISSING FILE NAME+
MISSING FILE NAME OF DATASET TO BE UNALLOCATED
[/img] |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
With this kind of information nobody here will have any clue. |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
The error message i have given is from after doing TRACE and and I am not able to copy paste the same here as it is not allowing me to paste any picture. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why not use "FREE FI(ddname)" instead, that way youy only need to know the DD name to which you originally allocated the file to. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
why not use a plain text cut and paste like everybody does ??? |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
How I coded is like
Code: |
"ALLOCATE FILE(ISPFILE)
DA('"USERNM".WLTC.DELJCL') NEW CATALOG
RECFM(F B) LRECL(80) BLKSIZE(0)
REUSE UNIT(DISK)"
"FREE FILE('"USERNM".WLTC.DELJCL')"
X=MSG(ON)
|
|
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
and my output is
Code: |
128 *-* /* CREATING THE DELETE JOB PS */
129 *-* ADDRESS TSO
130 *-* "DELETE '"USERNM".WLTC.DELJCL'"
>L> "DELETE '"
>V> "GHOSARJ"
>O> "DELETE 'GHOSARJ"
>L> ".WLTC.DELJCL'"
>O> "DELETE 'GHOSARJ.WLTC.DELJCL'"
ENTRY (A) GHOSARJ.WLTC.DELJCL DELETED
132 *-* "ALLOCATE FILE(ISPFILE)
DA('"USERNM".WLTC.DELJCL') NEW CATALOG
RECFM(F B) LRECL(80) BLKSIZE(0)
REUSE UNIT(DISK)"
>L> "ALLOCATE FILE(ISPFILE)
DA('"
>V> "GHOSARJ"
>O> "ALLOCATE FILE(ISPFILE)
DA('GHOSARJ"
>L> ".WLTC.DELJCL') NEW CATALOG
RECFM(F B) LRECL(80) BLKSIZE(0)
REUSE UNIT(DISK)"
>O> "ALLOCATE FILE(ISPFILE)
DA('GHOSARJ.WLTC.DELJCL') NEW CATALOG
***
RECFM(F B) LRECL(80) BLKSIZE(0)
REUSE UNIT(DISK)"
136 *-* "FREE FILE('"USERNM".WLTC.DELJCL')"
>L> "FREE FILE('"
>V> "GHOSARJ"
>O> "FREE FILE('GHOSARJ"
>L> ".WLTC.DELJCL')"
>O> "FREE FILE('GHOSARJ.WLTC.DELJCL')"
INVALID FILE NAME, 'GHOSARJ.WLTC.DELJCL'
MISSING FILE NAME+
MISSING FILE NAME OF DATA SET TO BE UNALLOCATED
+++ RC(12) +++ |
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
why not look at the manuals for the syntax of the FREE command
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/IKJ4BK90
( not the latest ones but more than enough for a silly FREE )
or why not search the forum and lurk into the novemtrigintillion snippets of rexx code that perform a FREE
but really You should NOT have had the need to ask
why not use a bit of logic and observe the <simmetry>/<similarity>/<analogy> ???
ALLOCATE uses FILE for the ddname as FILE(<ddname>)
for what reason should
FREE use FILE with a dsname |
|
Back to top |
|
|
|