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: 10202
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: 10202
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 Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm


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