IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem during allocation of dataset


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Oct 31, 2008 5:03 pm
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Oct 31, 2008 5:32 pm
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

Moderator Emeritus


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

PostPosted: Sat Nov 01, 2008 12:22 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top