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
 
Problem during allocation of dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
suchita_thorat

New User


Joined: 22 Feb 2008
Posts: 11
Location: Pune,India

PostPosted: Fri Oct 31, 2008 4:54 pm    Post subject: Problem during allocation of dataset
Reply with quote

Hi,

My program has variable defined as –
Code:
01  WS-SELECT-PARMX.                                       
    05  FILLER                 PIC  X(31)   VALUE           
        'CMD(ALLOCATE  DDNAME(GPPPUL) DS'.                   
    05  WS-FILE-NAME1           PIC  X(28)   VALUE SPACES.   
    05  FILLER                 PIC  X(52)   VALUE           
        ' MOD BLKSIZE(2000) LRECL(200) DSORG(PS) RECFM(FB)'.
    05  FILLER                 PIC  X(49)   VALUE           
        ' TRACKS SPACE(15,15) RELEASE UNIT(SYSDA) CATALOG)'.


During program processing it set WS-FILE-NAME1 to USERID.TABLEX.XX.CNTL and after that it executes below command-

Code:
CALL SPF-ISPLINK  USING  SPF-SELECTZ       
                          SPF-BUFLEN       
                          WS-SELECT-PARMX.

While executing this command, it gives following message with RETURN-CODE 12 -

Code:
INVALID DATA SET NAME, "USERID.TABLEX.XX.CNTL"   
ENTER DATA SET NAME OR * -                         

Any idea what could be problem over here?

Thanks in advance.

Regards,
Suchita


Edited: Please use BBcode when You post some code, that's rather readable...Anuj
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8619
Location: Back in jolly old England

PostPosted: Fri Oct 31, 2008 5:03 pm    Post subject:
Reply with quote

Do you need the dataset name in single quotes ?
Back to top
View user's profile Send private message
suchita_thorat

New User


Joined: 22 Feb 2008
Posts: 11
Location: Pune,India

PostPosted: Fri Oct 31, 2008 5:21 pm    Post subject:
Reply with quote

Hi,

My question is why following message is displayed -

INVALID DATA SET NAME, "USERID.TABLEX.XX.CNTL"
ENTER DATA SET NAME OR * -

why it is saying 'INVALID DATA SET NAME' ?


To give more information WS-FILE-NAME1 is set using below statement -

STRING '(' QUOTE WS-USERID '.'
WS-TABLE-NAME '.J'
ZJCHAR '.CNTL' QUOTE ')'
DELIMITED BY SIZE
INTO WS-FILE-NAME1 OF WS-SELECT-PARMX

Kindly let me know if you need more details.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10374
Location: italy

PostPosted: Fri Oct 31, 2008 5:32 pm    Post subject: Reply to: Problem during allocation of dataset
Reply with quote

I do not speak COBOLESE, but a dataset name to avoid all the prefix/noprefix stuff
should be enclosed in apost[rophes] rather then quote[s]

I might be wrong, but.....
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Nov 01, 2008 12:22 am    Post subject:
Reply with quote

Hello,

What happens if you change the WS-FILE-NAME1 field to be the same length as your dataset name put the value in the definition rather than building it dynamically?

This would only be for a test to see if the alloc would work or still fails.
Back to top
View user's profile Send private message
suchita_thorat

New User


Joined: 22 Feb 2008
Posts: 11
Location: Pune,India

PostPosted: Fri Nov 21, 2008 5:30 pm    Post subject: Reply to: Problem during allocation of dataset
Reply with quote

Thanks all for your inputs.

Enrico was right, we have formed dataset name with statement QUOTE which included double quote (") while forming dataset name, so while allocation of dataset I was getting INVALID DATA SET NAME message.

Previously program was working fine because compiler was converting QUOTE to Single Quote properly (This conversion was defined internally in the compiler).
Later somehow compiler stopped the conversion (I guess client has changed the version of compiler) and we started to get the error message.

Thanks for the help.

Regards,
Suchita
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Having a problem FTP'ng to the MF pahiker All Other Mainframe Topics 2 Fri Nov 10, 2017 8:20 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm

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