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     Extraction of FOCUS database

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Extraction of FOCUS database
 Login/Join
 
Member
posted
Hi All,

While extracting the data fron the FOCUS database and put into the flat file, I want delimit each field with delimiter"~". Can any one help me, how to separate the data with delimiter in the O/P file. I am extracting the data with segment wise.

TABLE FILE EMPLOYEE
PRINT EMPNBR
SEG.EMPNBR
SEG.EMPNAME
SEG.EMPNAM1
SEG.EMPBRANCH

Thanks,
Rajesh
 
Posts: 14 | Registered: January 19, 2006Report This Post
Virtuoso
posted Hide Post
Should be pretty straightforward. Here's one solution:

DEFINE FILE EMPLOYEE
DELIM/A1='~';
END
TABLE FILE EMPLOYEE
PRINT
EMPNBR DELIM
EMPNAME DELIM
EMPNAM1 DELIM
.
.
ON TABLE HOLD FORMAT ALPHA
END


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Member
posted Hide Post
If I print Field by Field its creating some issue when the number of fields are more. Hence I wanted to print all the fields in the segment using seg.. In this scenario is there any command to delimit the fields in the segment, even though I am printing the whole segment at once.

Thanks
Rajesh
 
Posts: 14 | Registered: January 19, 2006Report This Post
Virtuoso
posted Hide Post
I don't think so. The only way to get something in between fields in a flat file is to put it there yourself. If this is relating to your other post on getting data into SQL server, just try
TABLE FILE filename
PRINT *
ON TABLE HOLD FORMAT SQLMSS
END

without knowing limitations of your platforms or environments, of course.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Master
posted Hide Post
Another way, is do a HOLDFORAT TAB or COM. Then have a .MAS that describes the data as one field. Use the CTRAN function to convert the tabs or commas to ~.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
 
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006Report 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     Extraction of FOCUS database

Copyright © 1996-2020 Information Builders