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     [SOLVED] Can you import directly from Excel into Mainframe FOCUS?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Can you import directly from Excel into Mainframe FOCUS?
 Login/Join
 
Guru
posted
Can you import directly from an Excel file into Mainframe FOCUS? If so what needs to be done, and if not, is there a way to get around that?

Thanks in advance to all who reply!

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


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
 
Posts: 250 | Registered: January 14, 2008Report This Post
Virtuoso
posted Hide Post
Are you talking about loading data from Excel into a FOCUS dataset on MVS? Wouldn't that be nice! That answer would be no - but you can do this:
1. export from excel as a flat file
2. upload (ftp or whatever method) into a dataset on MVS
3. create a master file describing the data
4. use a DYNAM ALLOC to point to the new dataset
5. read the file and hold FORMAT FOCUS.

FOCUS does a lot of things but it doesn't have that much magic. Nor do I believe there are many tools that can load directly from Excel into an MVS dataset. The good news - there IS a solution - just not as easy as you had hoped.


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
Guru
posted Hide Post
Yup, it would be nice, wouldn't it?? Thanks Darin, for replying. Your suggestion is what I'm already using, and I was hoping there was an easier way to do the pulling in of data. Oh, well.......

Thanks again!


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
 
Posts: 250 | Registered: January 14, 2008Report This Post
Master
posted Hide Post
You can't import it as an .xls file, but you can save it as .csv or .prn and import it.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Platinum Member
posted Hide Post
This might be something Data Migrator can do. It is a separate product with it's own licensing, etc., but it might be able to read from a .xls and write out to an MVS flat file. Clif, if you're monitoring this forum, do you know?

Jessica Bottone


Data Migrator 5.3, 7.1, 7.6
WebFOCUS 7.1, 7.6, 7.7
SQL Server, Oracle, DB2
Windows
 
Posts: 126 | Registered: January 18, 2007Report This Post
Guru
posted Hide Post
Thanks to all of you for responding! I saved the Excel file as a flat txt file and then ported it onto my MVS system, and from there, input it into my FOCEXEC.

I appreciate everyone's suggestions and advice!


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
 
Posts: 250 | Registered: January 14, 2008Report This Post
Master
posted Hide Post
I do this all the time, however, I ususally save the worksheet as a tab-delimited file. I then upload the data, parse it using GETTOK, then use MODIFY to load the data.


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
Virtuoso
posted Hide Post
In fact Datamigrator should be able to do the job.
You need adapters but then it should be possible.

the strange thing on this is that I'm rather sure that PCFocus in the former century was able to read spreadsheets




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Guru
posted Hide Post
Thanks to all who have replied....I appreciate it tremendously. It's great to see all the folks out there who are willing to help and give advice.


Mainframe FOCUS 7.0
VM/CMS and MVS/TSO
 
Posts: 250 | Registered: January 14, 2008Report This Post
Member
posted Hide Post
With out Data Migrator, how can I link to & read a dynamic csv flat file? I'm able to import, but not read (link to).


WebFOCUS 7.6.11, Windows XP, Excel, HTML, PDF
 
Posts: 25 | Location: Salt Lake City | Registered: June 03, 2008Report This Post
Expert
posted Hide Post
With this situation, you have several options, some of which have been suggested above.

Here are some more.

If you can access an MSSQL server from the MF, you can attach the XLS file to the server, then let SQL server read the file as an SQL source.

If you have WF 7.6.x, BI Dashboard has a little utility for uploading XLS/CSV files to a WF Server. Do a search for "Uploading Data Files".

I also have an old, little bit clunky Fex that uses the XL activeX object to read any file XL can read, and upload into Flat/XML/FOCUS/XFOCUS/SQL destinations. (Written for WF52).


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
AFS-Skier, you can create the focmast with following attributes to read a csv file.

FILE=filename ,SUFFIX=COMT
SEGNAME=segname ,SEGTYPE=segtype

This will allow you to read a csv file using a focexec.

Shrikant.


FOCUS 7.2.3
Platform: IBM system Z9 Business class
O/P formats: Flat files, excel and CSV files
 
Posts: 39 | Location: Hyderabad, India | Registered: April 28, 2007Report This Post
Master
posted Hide Post
I think what we are not making clear is that you are going to have to create a master file definition (.MAS) for the file. In the example below, my file was saved as a .prn file (Fixed Print format for an EXL2K file).

$ excel print file at 163 characters for dec 2007
FILENAME=MEXLABOR, SUFFIX=FIX, $
SEGNAME=MEXLABOR, $
FIELD=FILLER1, ALIAS=, USAGE=A9, ACTUAL=A9, $
FIELD=MEMPLOYEENUM, ALIAS=, USAGE=A6, ACTUAL=A6, $
FIELD=OEMPLOYEENUM, ALIAS=, USAGE=A6, ACTUAL=A6, $
FIELD=EMPLOYEENAME, ALIAS=, USAGE=A27, ACTUAL=A27, $
FIELD=COSTCENTER, ALIAS=, USAGE=A4, ACTUAL=A4, $
FIELD=JOBTITLE, ALIAS=, USAGE=A23, ACTUAL=A23, $
FIELD=JOBCD, ALIAS=, USAGE=A6, ACTUAL=A6, $
FIELD=FILLERXX, ALIAS=, USAGE=A6, ACTUAL=A06, $
FIELD=HRSWORKED, ALIAS=, USAGE=P13.2, ACTUAL=A13, $
FIELD=RPTMONTH, ALIAS=, USAGE=A3, ACTUAL=A3, $
FIELD=FILLER6, ALIAS=, USAGE=A7, ACTUAL=A7, $
FIELD=RPTYEAR, ALIAS=, USAGE=A2, ACTUAL=A2, $
FIELD=FILLER7, ALIAS=, USAGE=A5, ACTUAL=A5, $
FIELD=JOBHOURS, ALIAS=, USAGE=P13.2, ACTUAL=A13, $
FIELD=TRAVELHOURS, ALIAS=, USAGE=P13.2, ACTUAL=A13, $
FIELD=EMPSTATUSIN, ALIAS=, USAGE=A1, ACTUAL=A1, $
FIELD=FILLER10, ALIAS=, USAGE=A13, ACTUAL=A13, $
FIELD=HSINDICATORIN, ALIAS=, USAGE=A4, ACTUAL=A4, $
FIELD=FILLER11, ALIAS=, USAGE=A2, ACTUAL=A2, $
$ filler11 changed from a7 to a9 in feb 06
$ did not balance on job hrs so changed excel to number and resent
$ then had to change back to a7


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
And a FILEDEF or APP FI.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Member
posted Hide Post
Thanks to everyone's help & the tech info (see below). I set up the ODBC connection & my admin was able to configure WF for Excel. The info is located at http://techsupport.informationbuilders.com/tech/wbf/wbf_tcn_068.html.


WebFOCUS 7.6.11, Windows XP, Excel, HTML, PDF
 
Posts: 25 | Location: Salt Lake City | Registered: June 03, 2008Report 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     [SOLVED] Can you import directly from Excel into Mainframe FOCUS?

Copyright © 1996-2020 Information Builders