Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] DMC char count of txt file
Go
New
Search
Notify
Tools
Reply
  
[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: 85 | Registered: February 27, 2009Reply With QuoteReport 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
 
Posts: 373 | Location: New York City | Registered: May 03, 2007Reply With QuoteReport 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: 85 | Registered: February 27, 2009Reply With QuoteReport 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,
 
Posts: 373 | Location: New York City | Registered: May 03, 2007Reply With QuoteReport 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: 85 | Registered: February 27, 2009Reply With QuoteReport This Post
  Powered by Social Strata  
 

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-2018 Information Builders, leaders in enterprise business intelligence.