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

File allocation is invalid in REXX


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

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Fri Mar 08, 2013 1:13 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Mar 08, 2013 1:15 pm
Reply with quote

With this kind of information nobody here will have any clue.
Back to top
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Fri Mar 08, 2013 1:17 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Mar 08, 2013 1:19 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Mar 08, 2013 1:19 pm
Reply with quote

why not use a plain text cut and paste like everybody does ???
Back to top
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Fri Mar 08, 2013 1:24 pm
Reply with quote

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
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Fri Mar 08, 2013 1:32 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri Mar 08, 2013 1:33 pm
Reply with quote

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
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 Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top