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
 

 

Default Message in Rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
cvnlynn

New User


Joined: 14 Jun 2017
Posts: 29
Location: US

PostPosted: Wed Aug 02, 2017 12:38 am    Post subject: Default Message in Rexx
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: 1772
Location: Bloomington, IL

PostPosted: Wed Aug 02, 2017 1:13 am    Post subject:
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: 29
Location: US

PostPosted: Wed Aug 02, 2017 1:32 am    Post subject:
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: 1846
Location: UK

PostPosted: Wed Aug 02, 2017 4:02 am    Post subject:
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: 29
Location: US

PostPosted: Wed Aug 02, 2017 6:04 am    Post subject:
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: 1846
Location: UK

PostPosted: Wed Aug 02, 2017 3:04 pm    Post subject:
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: 546
Location: The Universe

PostPosted: Wed Aug 02, 2017 4:35 pm    Post subject:
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: 29
Location: US

PostPosted: Wed Aug 02, 2017 9:01 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Aug 02, 2017 9:32 pm    Post subject: Reply to: Default Message in Rexx
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: 1846
Location: UK

PostPosted: Wed Aug 02, 2017 9:39 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am


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