View previous topic :: View next topic
|
Author |
Message |
cvnlynn
New User
Joined: 14 Jun 2017 Posts: 31 Location: US
|
|
|
|
I got this msg Invalid DSN - length; I don't know where it came from, I found several of the same msgs from SYS1.ISPF.ISPMLIB; how they related to my Rexx program. Thanks. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
As you have not shown us your script nor, if you are running it in batch, your JCL, we can only guess. I will not try. |
|
Back to top |
|
|
cvnlynn
New User
Joined: 14 Jun 2017 Posts: 31 Location: US
|
|
|
|
the highlighted msg is caused by the length of the highlighted dataset name
(CSA1530)--------------- CSA1500 TESTING DIALOGS --- Invalid DSN - length
COMMAND ==> USERID - MWCXN3
VR/FR DAILY TRACKING, RAW ITT TIME - 12:51
SY2
CEN YR MO DA
ENTER WORK DATE ==> 20 17 08 01
ENTER HOURGLASS CONTROL ==> DC117213
SELECT ONE OR BOTH INPUT DATASETS (OVERTYPE TO CHANGE NAMES)
1=> _ FR3OUT FILE FROM RM1716
MW.SYSTEM.VFR.RM1716.ST.FR3OUT.D17213.T1251 FILE NOT FOUND |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Please use the code tags when posting code and do not use highlighting but some indicator e,g, <=== on the line(s) in question.
Is the data set name correct? The message says it is not found. It is legal but at 43 bytes long only just - the max length allowed being 44 bytes. |
|
Back to top |
|
|
cvnlynn
New User
Joined: 14 Jun 2017 Posts: 31 Location: US
|
|
|
|
for testing purpose, the file name is not correct; but I would like to know is where the msg 'invalid DSN - length' came from, how it's triggered in my program. Thanks. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
What message do you get when you press F1 when you get the invalid DSN message?
On the mainframe the maximum length of a data set name is 44 bytes. It is possible that the application wants a shorter name but only the documentation can tell you. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
cvnlynn wrote: |
for testing purpose, the file name is not correct; but I would like to know is where the msg 'invalid DSN - length' came from, how it's triggered in my program. Thanks. |
ISPF dialog services provide many details that are not available in Rexx, such as performing a syntax check of a data set name. Most likely the message was actually triggered by this service, |
|
Back to top |
|
|
cvnlynn
New User
Joined: 14 Jun 2017 Posts: 31 Location: US
|
|
|
|
when I press PF1, I got this msg
Code: |
Dsname must be 1-44 chars in length, including prefix. Reenter dsname.
|
|
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2545 Location: Silicon Valley
|
|
|
|
Since you are getting help when you press F1... the panel is using the VER function to verify the data provided.
Issue MSGID ON to see the message number associated with the message. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
If tis is the data set name that you typed in
Code: |
MW.SYSTEM.VFR.RM1716.ST.FR3OUT.D17213.T1251 |
and MW is your prefix then you need to surround the name with quotes. Otherwise the system prefixes the name with your userid thus making the name > 44 bytes. |
|
Back to top |
|
|
|