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.
Hello, I need to create a file where every fields are separeted by ; and characters without blanks and numeric filds without leading zeros. I work with a sequential file, for example (where b is blank):
I have already tried to do it using the saving format COM, but I don't want "" for character and I need ; as separator and no comma. I will appriciate any help or shortcut to do it.
as a corollary, here's an article on how to READ files with different delimeters. [URL=http://techsupport.informationbuilders.com/sps/91671095.html ]http://techsupport.informationbuilders.com/sps/91671095.html [/URL]
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
I suppose the best option would be FORMAT TAB and then run some kind of utility to replace the X'09 with X'3B. You will also have to left-justify alpha fields. Something like this:
TABLE FILE infile PRINT * ON TABLE SET NULL ON ON TABLE HOLD FORMAT TAB END
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004
Why not create one big field that is a concatenation of all fields with the delimeter thrown in between? The only trick, of course, is getting rid of those pesky leading zeroes in the numbers which you can do with a combination of LJUST and FTOA.
Here's a sample using the CAR file:
DEFINE FILE CAR LINE/A256=COUNTRY||';'||CAR||';'|| LJUST(3,FTOA(SEATS,'(F3)','A3'),'A3')||';'; END TABLE FILE CAR PRINT LINE ON TABLE SAVE END If you edit the output file you'll see it looks exactly as you have described.This message has been edited. Last edited by: <Mabel>,
Posts: 55 | Location: New York | Registered: March 07, 2003