Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2442
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: 10355
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: 10355
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 Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 1 Tue Nov 21, 2017 9:23 pm
No new posts unable to set RC = 4 when empty file migusd SYNCSORT 1 Tue Nov 21, 2017 1:21 am
No new posts Rexx to send an email without SMTP Se... upendrasri All Other Mainframe Topics 4 Sun Nov 19, 2017 7:59 pm
No new posts ISREDIT Macro is not returning back t... nico_neoz CLIST & REXX 17 Sat Nov 18, 2017 7:40 pm
No new posts REXX LISTDSI () SMSINFO is not working upendrasri CLIST & REXX 4 Fri Nov 17, 2017 11:33 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us