View previous topic :: View next topic
|
Author |
Message |
ankit.jain
New User
Joined: 02 Jul 2009 Posts: 18 Location: Mumbai
|
|
|
|
Is it possible to FTP the COBOL program load modules from Mainframe to PC and then back from PC to Mainframe and be able to use them?
We have a mainframe tape that contains COBOL program load modules and some other items (like sequential files, JCLs, resource definition files, etc.) but it doesn’t contain any source modules. We use this tape to build a mainframe CICS environment. This works fine.
However, for certain reasons, we want to stop using the mainframe tape. Therefore, we are planning to unload the tape, download the unloaded datasets (and members) to PC, so that whenever we need to build the mainframe CICS environment, we can upload these datasets from PC to mainframe.
That said, we know that this process (download the datasets/members to PC and then upload them back to mainframe) works for source programs, JCLs, sequential files (after PACKing them), etc. However, we are not sure if it works for LOAD modules. I gave it a try and it seems that it doesn’t work – I downloaded them in both ASCII and BINARY format and uploaded them back in the same format but the LOAD modules failed to new copy. Is there any way we can download the LOAD modules to PC and be able to upload and use them on mainframe later? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
MY preferred and IMO safest approach is to use XMIT/RECEIVE
with the OUTDATASET/INDATASET options
for all the things that have to be shuffled around using a PC as intermediate store
XMIT will create an OUTDATASET with FIXED LENGTH RECORDS
which will make the FTP process easier to handle
just FTP the XMIT output with the binary option |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
I use the same method as enrico, and have found it unproblematic. I've even e-mailed loadlibraries as attachments :-) |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
The TS states they have the load libs on tape. In what format? IEBCOPY unload format?
Mr. Sorichetti's and Mr. Woodger's approach is fine as long as the libraries are on disk as a PDS, since XMIT runs the PDS through IEBCOPY and then transforms the IEBCOPY unload data set to its FB/80 format. You could even run the raw IEBCOPY unload data set through XMIT, but I don't think RECEIVE would build a PDS from it. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
Quote: |
You could even run the raw IEBCOPY unload data set through XMIT, but I don't think RECEIVE would build a PDS from it. |
the receive would create a PS dataset with the proper attributes to be used as
input to IEBCOPY |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
The tape is not the source of the load modules, it is just the method they are transferred from one machine to another at the moment, which will no longer be used. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Why would one want to transfer mainframe load modules to a pc?
A kind of backup?
Did I miss something? |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
The OP suggests that the programmable calculator is being used as storage, although why the tape can't just be archived is unclear to me. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
PeterHolland wrote: |
Why would one want to transfer mainframe load modules to a pc?
A kind of backup?
Did I miss something? |
I's about the only use I can imagine! |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
PeterHolland wrote: |
Why would one want to transfer mainframe load modules to a pc?
A kind of backup?
Did I miss something? |
I think it is this:
CICS system running on Machine A
Same CICS system required on Machine B in a different location
Currently tape used to transfer CICS application loadmodules
The tape is wearing thin, so a new method:
Machine A ftp to PC
PC ftp to Machine B
This saves Machine A having to ftp to Machine B.
Not sure why that would be good. |
|
Back to top |
|
|
ankit.jain
New User
Joined: 02 Jul 2009 Posts: 18 Location: Mumbai
|
|
|
|
Thank you all for your prompt responses !
I will give XMIT/RECEIVE a try, and hopefully it will work for me.
We already use TERSE/UNTERSE to package and download any VB files, so I am wondering if it will work for Load Library PDS as well. I will give it a try too.
Thanks again, |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1315 Location: Vilnius, Lithuania
|
|
|
|
The TERSE/UNTERSE combo by itself cannot handle PDSE's, see recent thread on IBM-MAIN.
XMIT + TERSE -> UNTERSE + RECEIVE is of course not a problem. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
As this has nothing to do with COBOL but everything to do with FTP I have moved it to a more appropriate part of the forum. |
|
Back to top |
|
|
|