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

Default Message in Rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cvnlynn

New User


Joined: 14 Jun 2017
Posts: 31
Location: US

PostPosted: Wed Aug 02, 2017 12:38 am
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed Aug 02, 2017 1:13 am
Reply with quote

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
View user's profile Send private message
cvnlynn

New User


Joined: 14 Jun 2017
Posts: 31
Location: US

PostPosted: Wed Aug 02, 2017 1:32 am
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Aug 02, 2017 4:02 am
Reply with quote

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
View user's profile Send private message
cvnlynn

New User


Joined: 14 Jun 2017
Posts: 31
Location: US

PostPosted: Wed Aug 02, 2017 6:04 am
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Aug 02, 2017 3:04 pm
Reply with quote

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
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Aug 02, 2017 4:35 pm
Reply with quote

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
View user's profile Send private message
cvnlynn

New User


Joined: 14 Jun 2017
Posts: 31
Location: US

PostPosted: Wed Aug 02, 2017 9:01 pm
Reply with quote

when I press PF1, I got this msg

Code:
Dsname must be 1-44 chars in length, including prefix. Reenter dsname.

Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Wed Aug 02, 2017 9:32 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Wed Aug 02, 2017 9:39 pm
Reply with quote

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
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top