Focal Point
[Case-Opened] Copy Sequential Files from one centre to another

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

May 03, 2011, 01:06 AM
Vinay Kumar
[Case-Opened] Copy Sequential Files from one centre to another
Hi All,

I have a requirement to copy a file (mainframe) from one centre to another centre thru Web Focus, each centre is configured and can be connected via REMOTE BEGIN/END.

But not sure how to do this (copying files between centres), could any one help me.


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
May 03, 2011, 12:50 PM
<JG>
quote:
centre to another centre

By this do you basically mean mainframe to mainframe?

If so batch ftp job.
May 03, 2011, 05:54 PM
Waz
What is the file you are copying ?

REMOTE BEGIN/END, ships code from one WebFOCUS server to another for executing, the chances for transfering files is limited.

WebFOCUS can pull data from one server to another, this is done several ways.


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!

May 03, 2011, 09:40 PM
Vinay Kumar
JG, ya mainframe to mainframe.

Waz, i want to copy a simple fixed block format file (80 bytes).

I tried using REMOTE BEGIN/END, but hasn't worked, could you pls share the sample code.


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
May 05, 2011, 06:47 AM
Vinay Kumar
JG & Waz, any solution for this?


WebFOCUS 7.6.4, Mainframe Focus
Windows XP, All Output Formats
May 06, 2011, 04:39 PM
Waz
When you say Mainframe to Mainframe, they are different mainframes ?, no shared places?

The best technique I can think of would be to create a fex on the source server that TABLE FILEs the data, and PCHOLDs it, then on the destination server use remote begin/end and execute the created fex, this should bring the data to the destination server.

e.g. Source Server Focexec getdata(.fex)
DYNAM ALLOC/FILEDEF ....
TABLE FILE data
....
ON TABLE PCHOLD
END


e.g. Destination server
REMOTE DEST node
REMOTE USER user     (If needed)
REMOTE PASSWORD password (If needed)
-REMOTE BEGIN
EX GETDATA
-REMOTE_END
....



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!