Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Why is null string not available in DM

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Why is null string not available in DM
 Login/Join
 
Master
posted

APP FILEDEF MASTER DISK IFS/IF1355_ALLITEMS&SUFFIX|.MAS ( APPEND  


Want to use a suffix for testing and then return to normal for normal use.

-SET &SUFFIX = '' ;

Results in

APP FILEDEF MASTER DISK IFS/IF1355_ALLITEMS MAS ( APPEND
 -RUN
 (FOC358) ERROR ISSUING FILEDEF COMMAND FOR: FILEDEF MASTER DISK
 

ie shortest string is length 1

There's ways round but all of them messy. Anyone know why the null string can't exist in dm?



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
Virtuoso
posted Hide Post
The original implementation had an eight-bit unsigned binary number to hold the length, and allowed the content length to be up to 256. Since there were only 256 possible length values, the minimum was 1.

The limit was since raised (32k now?), but the behavior of treating ='' as =' ' remains for backward compatibility.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Expert
posted Hide Post
John,

Have you tried -

APP FILEDEF MASTER DISK IFS/IF1355_ALLITEMS&SUFFIX..MAS (APPEND

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
By using -SET, you can take advantage of hard catenation to squelch the blank.
-SET &disk = 'IFS/IF1355_ALLITEMS' | &SUFFIX || '.MAS';
APP FILEDEF MASTER DISK &disk ( APPEND  


(Actually, || doesn't eliminate the trailing blanks on the left operand, it just pushes them to the tail end of the resulting string -- which is good enough for your purposes).


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Why is null string not available in DM

Copyright © 1996-2020 Information Builders