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  iWay Software Product Forum on Focal Point    [CLOSED] DMC char count of txt file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] DMC char count of txt file
 Login/Join
 
Gold member
posted
I want to open a txt file and return the char count using DMC.

Thx

This message has been edited. Last edited by: Tamra,


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server
 
Posts: 87 | Registered: February 27, 2009Report This Post
Guru
posted Hide Post
If the text file just has one line you do this with Dialog Manager. Create a stored procedure:
FILEDEF INFILE DISK filename (LRECL 256
-RUN
-SET &INFIELD=0;                
-READ INFILE &INFIELD.A256B. 
-SET &INFIELD=RTRIM(&INFIELD);
-TYPE &INFIELD.LENGTH


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
Gold member
posted Hide Post
quote:
-SET &INFIELD=RTRIM(&INFIELD);


getting error. other then that works perfect.

02/23/2015 09:05:24 LOOPBACK 0 ERROR AT OR NEAR LINE 6 IN PROCEDURE __WCFEX FOCEXEC *
02/23/2015 09:05:24 LOOPBACK (FOC263) EXTERNAL FUNCTION OR LOAD MODULE NOT FOUND: RTRIM


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server
 
Posts: 87 | Registered: February 27, 2009Report This Post
Guru
posted Hide Post
Sorry, RTRIM is a new "simplified" function in 7.7.06. You could use the legacy function TRIMV
   
-SET &INFIELD=TRIMV('T', &INFIELD, 256, ' ', 2, 'A256V'); 

This message has been edited. Last edited by: Clif,


N/A
 
Posts: 397 | Location: New York City | Registered: May 03, 2007Report This Post
Gold member
posted Hide Post
thx Clif works great


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server
 
Posts: 87 | Registered: February 27, 2009Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] DMC char count of txt file

Copyright © 1996-2020 Information Builders