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
 

 

File allocation is invalid in REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: File allocation is invalid in REXX
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Mar 08, 2013 1:15 pm    Post subject:
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    Post subject: Reply to: File allocation is invalid in REXX
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: 8593
Location: Back in jolly old England

PostPosted: Fri Mar 08, 2013 1:19 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Fri Mar 08, 2013 1:19 pm    Post subject: Reply to: File allocation is invalid in REXX
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Fri Mar 08, 2013 1:33 pm    Post subject: Reply to: File allocation is invalid in REXX
Reply with quote

why not look at the manuals for the syntax of the FREE command
http://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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


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