Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Dataset allocation using the ALLOC command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
Author Message
Sharath S

New User


Joined: 18 Mar 2008
Posts: 4
Location: Mysore

PostPosted: Tue Mar 18, 2008 6:43 pm    Post subject: Dataset allocation using the ALLOC command
Reply with quote

I'm trying to allocate a file using the ALLOC command

"ALLOC DD(FILENM) DA('"FILE_NAME_DATE"') SPACE(10 10) TRACKS
LRECL(80) RECFM (F,B) DSORG(PS)"

The command
SAY "FULL FILE NAME " FILE_NAME_DATE
gives the correct output
FULL FILE NAME R18EPB.J18EPL3.QUEST.CNTLREP.DLY.2008074

But the error it is throwing is
INVALID DATA SET NAME, 'R18EPB.J18EPL3.QUEST.CNTLREP.DLY.2008074'
MISSING DATA SET NAME OR *+
MISSING NAME OF DATA SET TO BE ALLOCATED
62 +++ END
20 +++ call ALLOC_FILE
Error running REXX2, line 62: Unexpected or unmatched END

Can you please tell me what is the problem??
Also please tell me how to handle SYSDSN i.e File already cataloged condition??
Back to top
View user's profile Send private message
References
PostPosted: Tue Mar 18, 2008 6:43 pm    Post subject: Re: Dataset allocation using the ALLOC command Reply with quote

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3014
Location: Charlotte,NC USA

PostPosted: Tue Mar 18, 2008 6:47 pm    Post subject: Reply to: Tape file allocation using Rexx??
Reply with quote

Does 'R18EPB.J18EPL3.QUEST.CNTLREP.DLY.2008074'
look like a valid MVS dataset name to you?
Back to top
View user's profile Send private message
Moved: Tue Mar 18, 2008 7:50 pm by superk From CLIST & REXX to TSO/ISPF
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 2564
Location: Brussels once more ...

PostPosted: Tue Mar 18, 2008 8:44 pm    Post subject:
Reply with quote

[size=32]
.2008074
[/size]
Back to top
View user's profile Send private message
HappySrinu

Active User


Joined: 22 Jan 2008
Posts: 171
Location: India

PostPosted: Wed Mar 19, 2008 1:18 pm    Post subject:
Reply with quote

try this command..

TSO ALLOC FI(SYSEXEC) DA('TEST.HELP.REXX') SHR
on ISPF option 6 cmd line.

SYSEXEC is the DD name
TEST.HELP.REXX is valid dataset name
Back to top
View user's profile Send private message
Anuj D.

Senior Member


Joined: 22 Apr 2006
Posts: 1345
Location: Mumbai, India

PostPosted: Wed Mar 19, 2008 1:48 pm    Post subject:
Reply with quote

Hello,

Kevin & expat has provided the right direction, error is because of invalid DSN name.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1