Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

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

New User


Joined: 02 Jul 2009
Posts: 14
Location: Mumbai

PostPosted: Wed Apr 22, 2015 6:51 pm    Post subject: Is it possible to FTP the COBOL program load modules to PC?
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Apr 22, 2015 7:28 pm    Post subject: Reply to: Is it possible to FTP the COBOL program load modules to PC?
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Apr 22, 2015 7:54 pm    Post subject: Reply to: Is it possible to FTP the COBOL program load modules to PC?
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: 516
Location: The Universe

PostPosted: Wed Apr 22, 2015 8:28 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Wed Apr 22, 2015 8:32 pm    Post subject: Reply to: Is it possible to FTP the COBOL program load modules to PC?
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Apr 22, 2015 9:06 pm    Post subject: Reply to: Is it possible to FTP the COBOL program load modules to PC?
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: 2433
Location: Netherlands, Amstelveen

PostPosted: Wed Apr 22, 2015 9:18 pm    Post subject:
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: 1755
Location: Bloomington, IL

PostPosted: Wed Apr 22, 2015 9:31 pm    Post subject:
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: 516
Location: The Universe

PostPosted: Wed Apr 22, 2015 9:31 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Wed Apr 22, 2015 10:33 pm    Post subject:
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: 14
Location: Mumbai

PostPosted: Thu Apr 23, 2015 7:05 pm    Post subject:
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: 1018
Location: Oostende, Belgium

PostPosted: Thu Apr 23, 2015 7:15 pm    Post subject:
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: 1788
Location: UK

PostPosted: Thu Apr 23, 2015 10:41 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us