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.
I have fex that executes a stored procedure that returns 3-??? number of records. For each record there is a field that is variable length. Once I get the date from SQL, I need to write just the variable length field to an .hl7 file for an an external vendor to use.
Here is the code I am using.
SQL SQLMSS EX dbo.usp_UpdateEMRDataAllTest '&ProcessingID'; TABLE FILE SQLOUT PRINT EMRDemographicID SortOrder EMRRecord ON TABLE HOLD AS HDATA FORMAT ALPHA END
TABLE FILE HDATA WRITE EMRRecord BY EMRDemographicID NOPRINT BY SortOrder NOPRINT ON TABLE SAVE AS EMRUPLD FORMAT ALPHA END
EMRRecord is a varchar field. There are three records for each EMRDemographicID, represented by SortOrder (1, 2, or 3). The EMRRecord for all SortOrder = 1 records is 124 characters line. The others may be as little as 20 or as large as 1250.
The problem I am having, is the first 6 digits of each line in the EMRUPLD file is the 6 digit length of EMRRecord. I need to exclude the length from the file I am created.
I have tried SQL SQLMSS SET VARCHAR OFF. This does eliminate the 6 digit length at the beginning of each line, but adds trailing spaces to the end of each line. Which will not be accepted by the external vendor.
Is there a way to print/write EMRRecord to a file without prepending the 6 digit length or adding all the trailing spaces?
Thank you, DeanaThis message has been edited. Last edited by: Deana,
WebFOCUS 7.6.8 and 7.7.03; Windows Server 2003 R2 and Windows Server 2008 R2, respectively; Development environments - Windows Server 2003 R2 and Windows 7 Professional, respectively; excel, html, pdf
Thank you so much. This worked wonderfully well. I really appreciate your assistance.
Deana
WebFOCUS 7.6.8 and 7.7.03; Windows Server 2003 R2 and Windows Server 2008 R2, respectively; Development environments - Windows Server 2003 R2 and Windows 7 Professional, respectively; excel, html, pdf