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.
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
WazWhat 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.
May 03, 2011, 09:40 PM
Vinay KumarJG, 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.
May 05, 2011, 06:47 AM
Vinay KumarJG & Waz, any solution for this?
May 06, 2011, 04:39 PM
WazWhen 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
....