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
 

 

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: 8593
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: 10231
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 4 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm


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