IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Convert IBM Mainframe FOCUS db files to WebFOCUS db files
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
Hi Folks,

I have been working with ibi Support for a few weeks on this and I have tried the suggestions here
http://techsupport.informationbuilders.com/tech/cof/cof_tcn_039.html without success. I have also tried some of the relevant suggestions from my search on this forum.

I am very sure somebody has done this already. Can anybody share with me the right set of code to convert a mainframe focus dababase file in EBCDIC format to its useable format in WebFOCUS. We are running Developer Studio 7.6.5 on Windows XP Pro. Both WebFOCUS and Developer Studiao are installed and configured on one workstation.

Here is what I have tried. From a single segment file:

Step 1.
On the Mainframe:
TABLE FILE XXXXX
PRINT *
ON TABLE HOLD FORMAT ALPHA AS HLD
END

Query on HLD in mainframe shows it contains data.

Step2.
Transfer HLD.FOCTEMP as HLD.FTM and HLD.MASTER as HLD.MAS from Mainframe to WebFOCUS using IND$FILE, a 3270 emulator.

Step 3.
From a WebFOCUS Procedure:
APP HOLD BASEAPP
TABLE FILE HLD
PRINT *
ON TABLE HOLD FORMAT FOCUS AS XXXXX
END


Results:

--------------------------------------------------------------------------------
No HTML Output!
--------------------------------------------------------------------------------

SET GRAPHSERVURL=http://localhost:8080/ibi_apps/IBIGraphServlet
SET GRAPHENGINE=GRAPH53
APP PATH BASEAPP
TABLE FILE HLD
PRINT *
ON TABLE HOLD FORMAT FOCUS AS XXXXX
END
0 NUMBER OF RECORDS IN TABLE= 0 LINES= 0


Any help will be greatly appreciated.


Prod: DevStudio 7.6.5 Servlet - Self Service - MS Windows XP SP2 - Apache Tomcat 5.0.28
Dev: DevStudio 7.6.5 Servlet - Self Service - MS Windows XP SP2 - Apache Tomcat 5.0.28
 
Posts: 1 | Registered: June 11, 2008Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
Don't Know, Who???,

You have to FILEDEF hold files, they are not FOCUS files...
You also "may" have to use (RECFM F LRECL xxx

As Prairie has reminded all newcomers to the Forum(this was her designated week), please do the following:

????...welcome to the Forum. Please go in and update your signature with which version you are running. Thanks

** Update signature
1) Logon to Focal Point and go into your complete profile.
2) Scroll down the page until you see the “Signature” field.
3) Fill in the signature you want to use. Here is a sample to model:

Prod: WebFOCUS 5.2.3 on Win 2K/IIS 6/ISAPI Mode
Test: WebFOCUS 7.1 on Win 2K/IIS 6/Weblogic 8.1/Servlet Mode

4) Once all changes are made/added, scroll down to the bottom of the page and click on the Submit button.


Tom


Tom Flynn
WebFOCUS 5.2.2 thru 7.6.x
Windows, Unix, MVS
 
Posts: 669 | Location: Richmond, VA | Registered: January 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
Expert
Posted Hide Post
If you see the master and data files in the Windows folder, then the transfer worked successfully.

Unfortunately, APP PATH BASEAPP isn't enough to allocate the data file, you have to use FILEDEF as Tom mentions. APP PATH is alright for the Master, though in this case, if it's in BASEAPP, the command is not necessary, as BASEAPP is always part of the PATH.

Because the data file is in an App folder, The FILEDEF command would look something like this:

FILEDEF HLD DISK baseapp/HLD.FTM

It could be coded like this, using the Windows directory structure as well:

FILEDEF HLD DISK c:\ibi\apps\baseapp\HLD.FTM


I don't understand why you would have to be "working with ibi Support for a few weeks on this".

An alternative to

TABLE FILE XXXXX
PRINT *
ON TABLE HOLD FORMAT ALPHA AS HLD
END

would be to use the REBUILD DUMP and LOAD commands.


Francis



Env 1: WebFOCUS 5.3.2 Servlet - MRE/BID/Self Service/ReportCaster - MS Windows Server 2003 - IIS/New Atlanta ServletExec - MS SQL Server 2000 - DataMigrator 5.3.4
Env 2: WebFOCUS 7.6.5 Servlet - MRE/BID/Self Service - MS Windows XP SP2 - Apache Tomcat/5.5.25 - MS SQL Server 2000
Env 3: WebFOCUS 5.3.3 CGI - Self Service - AIX 5.2 - IBM DB2
Output formats: HTML, Excel 2000 and PDF
 
Posts: 3379 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
Actually what I would do, after the hold file is created, is ftp the hold ftm and mas file as well as the mas file for the focus file to the Windows platform.

Then after the appropriate APP FI or FILEDEF as suggested, I'd do:
MODIFY FILE HOLD
FIXFROM FROM HOLD
DATA ON HOLD
END

That way you won't get any spurious FOCLIST fields in your Windows FOCUS file.

I'd also recommend that in the TABLE that creates the hold file that you sort the data by the keys.


Ginny
---------------------------------
Prod: WF 7.6.5 with 7.6.6 WFRS; AIX 5.2; WebSphere 6.1.0.15
Dev: WF 7.6.5 with 7.6.6 WFRS; AIX 5.3; WebSphere 6.1.0.15
Primarily self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable
 
Posts: 1546 | Location: BNSF: Fort Worth, TX | Registered: April 05, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
whoelse, you do need a FILEDEF in WebFOCUS as I am sure the MDF does not have the dataset populated in it.

  
FILEDEF HLD DISK C:\ibi\apps\baseapp\?????.???


 
Posts: 610 | Location: Dallas, Texas | Registered: May 24, 2004Reply With QuoteEdit or Delete MessageReport This Post
Waz
Guru
Posted Hide Post
Are your FOCUS files flat (one segment) or is there a structure.

I've transfered a bundle of FOCUS DB's from MF (EBCIDIC) to PC, and ended up ...

  • Transfering the original Master to PC
  • Extracting each segment of each FOCUS file to ALPHA format
  • Transfer the extracted files with there masters to PC
  • Create the New FOCUS files with CREATE FILE
  • Use MODIFY to load each segment into the FOCUS file, making sure they are loaded top to bottom, hierarchy wise.


I still have the fexes that I write that did the unload and loadup.


Waz...
Prod:WebFOCUS 7.1.6Upgrade:WebFOCUS 7.6.6OS:UnixOutputs:PDF, CSV, Excel, TXT, XML, HTML

 
Posts: 386 | Location: Sydney, Australia | Registered: October 31, 2006Reply With QuoteEdit or Delete MessageReport This Post
Master
Posted Hide Post
If you have many files you can make this project more automatic by using the CHECK FILE ... HOLD command in order to generate for each file the appropriate dumping and loading of data.

Also, when loading beware of multiple indexes. It is better, for efficiency considerations, to load without and then do a REBUILD - INDEX to create all the indexes at once.


Daniel
wf 7.6/WinXP/IIS/SSA
www.wrapapp.com
www.srl.co.il

 
Posts: 594 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteEdit or Delete MessageReport This Post
Virtuoso
Posted Hide Post
As a caveat to what Danny said regarding the indexes, you MUST do a CREATE FILE on the master with indexes in order to set the slots on the root page, then do the load with the master without the indexes, then do a REBUILD INDEX using the master with the indexes.

If your file is large and have several indexes, this technique as Danny mentioned improves load performance dramatically.


Ginny
---------------------------------
Prod: WF 7.6.5 with 7.6.6 WFRS; AIX 5.2; WebSphere 6.1.0.15
Dev: WF 7.6.5 with 7.6.6 WFRS; AIX 5.3; WebSphere 6.1.0.15
Primarily self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable
 
Posts: 1546 | Location: BNSF: Fort Worth, TX | Registered: April 05, 2006Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Convert IBM Mainframe FOCUS db files to WebFOCUS db files

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.