IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is it possible to FTP the COBOL program load modules to PC?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ankit.jain

New User


Joined: 02 Jul 2009
Posts: 18
Location: Mumbai

PostPosted: Wed Apr 22, 2015 6:51 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Apr 22, 2015 7:28 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Apr 22, 2015 7:54 pm
Reply with quote

I use the same method as enrico, and have found it unproblematic. I've even e-mailed loadlibraries as attachments :-)
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Apr 22, 2015 8:28 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Apr 22, 2015 8:32 pm
Reply with quote

icon_redface.gif

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Apr 22, 2015 9:06 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Apr 22, 2015 9:18 pm
Reply with quote

Why would one want to transfer mainframe load modules to a pc?

A kind of backup?

Did I miss something?
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Wed Apr 22, 2015 9:31 pm
Reply with quote

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
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Apr 22, 2015 9:31 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Wed Apr 22, 2015 10:33 pm
Reply with quote

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
View user's profile Send private message
ankit.jain

New User


Joined: 02 Jul 2009
Posts: 18
Location: Mumbai

PostPosted: Thu Apr 23, 2015 7:05 pm
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Apr 23, 2015 7:15 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Apr 23, 2015 10:41 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts Load new table with Old unload - DB2 DB2 6
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top