Focal Point
[SOLVED] MySQL VARCHAR columns and HOLD files

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/6927073326

August 20, 2012, 03:43 PM
Francis Mariani
[SOLVED] MySQL VARCHAR columns and HOLD files
I am currently working with two MySQL environments. In the past, on other types of databases, I used to be able to create a FORMAT ALPHA HOLD file on one environment, copy the ftm and mas to the second environment and then read the file without problem.

With MySQL tables, when I try this, I get format errors when reading the HOLD file in the second environment.

Does this have something to do with code pages being different on the two environments?

Thanks,

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 20, 2012, 05:41 PM
Waz
What OS are the two environments, and is the data source unicode ?


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!

August 21, 2012, 01:29 PM
Francis Mariani
They're both Windows 7. The source environment is set to ANSI and it appears that the target MYSQL environment (and WebFOCUS I assume) is set to UTF8. I managed by creating a COMT file, which might be a better format to transfer from one environment to another.

Cheers,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 21, 2012, 05:55 PM
Waz
The hold files should be fine.

How do you alloc file file on the other system ?

FILEDEF ....

Do you use LRECL and RECFM ?


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!

August 22, 2012, 09:37 AM
PBrightwell
Are you using an APP HOLD or an APP HOLDMETA to create your master? Have you tried using the file in a separate fex on the same server on which it was created? Does a previous master exist on either server in a different folder?


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
August 23, 2012, 11:10 AM
Francis Mariani
I use the master created by the ON TABLE HOLD command and which was saved because of the APP HOLD command. I am not issuing any FILEDEF - the master has the DATASET parameter, which has the file location and RECFM.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
August 23, 2012, 05:43 PM
Waz
I'm intrigued now.

Do you have an example, I'd love to check it out.


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!