View previous topic :: View next topic
|
Author |
Message |
suchita_thorat
New User
Joined: 22 Feb 2008 Posts: 11 Location: Pune,India
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Do you need the dataset name in single quotes ? |
|
Back to top |
|
|
suchita_thorat
New User
Joined: 22 Feb 2008 Posts: 11 Location: Pune,India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10874 Location: italy
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
suchita_thorat
New User
Joined: 22 Feb 2008 Posts: 11 Location: Pune,India
|
|
|
|
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 |
|
|
|