0 pts.
 Mainframe
Hi everyone, I'm a complete newcomer to the mainframe world, and have been tasked with writing some procedures to copy data (not just files, but directories... pds i think its called?) from one mainframe to another. I've researched it a bit, and it seems that FTP is probably the best way to go about it. I know nothing about what I'm getting into, but he powers that be have told me to "figure it out". No training is available, and Google for once is next to useless. Questions: 1. Is ftp the way to go? 2. I've read about REXX scripts, would this be the best way to go? 3. Is it even possible? Our resident mainframe guru says it should be, but he is too busy to spend time on this. 4. Any suggestions on how to start? 5. Any good website(s) that would be of use? Thanks in advance, -Shawn

Software/Hardware used:
ASKED: November 30, 2005  3:19 PM
UPDATED: May 20, 2011  10:25 AM

Answer Wiki:
FTP it. If you have some REXX program from someone you know and trust, and it is tried and true go for it. But I think FTP is going to be your best answer. Keep up with your Record format, record length, block sizes and cylinders. Backup everything, delete nothing. You will be alright.
Last Wiki Answer Submitted:  November 30, 2005  4:05 pm  by  BHFORMS   0 pts.
All Answer Wiki Contributors:  BHFORMS   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Is this a one time thing or will this be a daily thing, etc.? Not knowing the scenario I?ll assume its daily and you have job scheduling capabilities. If you?ve worked with FTP before (i.e, get, put, etc.) an FTP batch job should look familiar. For example:

//jobcard
//*
//STEP010 EXEC FTP
//*
//INPUT DD *
ip adrress
user id
password
TYPE I
PUT ‘XXX.YYY.ZZZ’ ‘AAA.BBB.CCC’
QUIT
/*

For more information take a look at z/OS Communications Server IP User?s Guide and Commands (SC31-8780).

If you?re trying to put something together using ISPF dialogs take a look at FTPB (http://www.lbdsoftware.com/) or other solutions at CBT Tape (http://www.cbttape.org/).

 0 pts.

 

Since you stated that you need to get the PDS directories as well as the data, why not use the IEHMOVE utility to unload the PDS to tape, then restore it on the target system. It would accomplish the task and you’d have the copy on tape for backup.

See z/OS DFSMSdfp Utilities SC26-7414-01

 10 pts.

 

Wow thanks for all the fast replies. I should have been a little more clear with what I need to do. I need to have a script (REXX I suppose) that end users will be able to run to move data between mainframes. The would have to be able to input the proper parameters… ie. where the data is and where it has to go. Then they can submit the job whenever they need to.

Is REXX the way to go? Where’s a good REXX reference site?

Thanks again.

 0 pts.

 

Take a look at FTPB. I believe it already does what you want to do.

 0 pts.

 

The URL was supplied in my first reply. You can obtain it from http://www.lbdsoftware.com. Specifically I believe it?s at http://www.lbdsoftware.com/ftpb216.zip. Let me know how it works out for you.

 0 pts.

 

Thanks muchly. I had found it earlier. Having some problems getting it transferred up to the mainframe properly, but our resident guru should be able to help me with that.

I’ll definately let you know how I make out.. thanks again!

-Shawn

 0 pts.

 

Something like this should work:

//ALLOC EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//TEMP DD DSN=???.FTPB.TEMP,
// DISP=(NEW,CATLG,DELETE),
// STORCLAS=???,MGMTCLAS=???,
// DCB=(RECFM=FB,DSORG=PS,LRECL=80),
// SPACE=(TRK,(5,1),RLSE)
//*
//FTP EXEC FTP
//*
//INPUT DD *
???.???.???.???
logon
password
BIN
get ftpb.xmit ‘???.FTPB.TEMP’ (replace
QUIT

 0 pts.

 

Shawn,

My advice is to get another job you have been set up to fail. What you want to do is not necessarily difficult but will depend on:

a) how the machines are connected
b) how they are configured
c) what tools are available
d) whether this is a one time job or will be executed on a schedule
e) whether it is important that the data be transferred correctly 100% of the time
f) the types of alerts or notifications that are expected for the success/failure of the copy

Examples:

1) if the machines share DASD subsystems, then there is no need to copy the file at all; both machines can access the data.

2) if the machines are connected only with an intranet behind a firewall and this can be an occasional manual process, then FTP could be used.

3) the data could be copied to removable media (usually tape on a mainfame) and mailed to the receiving site.

4) if the data is going to be moved over an insecure network (outside the firewall) then it might be necessary to encrypt it for.

Hope this helps at least a little,
Bill

 0 pts.