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

Copying Load Modules


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rick Walker

New User


Joined: 14 Sep 2009
Posts: 5
Location: Des Plaines, IL.

PostPosted: Tue Sep 15, 2009 11:49 pm
Reply with quote

I need to copy load modules to a flat sequential file, FTP this file to a client site, then create a new PDS and load the modules.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 15, 2009 11:54 pm
Reply with quote

IEBCOPY will unload a PDS to a sequential file, along with rebuild it on the other end.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 15, 2009 11:54 pm
Reply with quote

Hello Rick and welcome to the forum,

At the top of the page is a link to "IBM Manuals". In the second set of manuals (Batch Processing) is the IBM JCL Utilities Guide for DFSMS.

In that manual look at IEBCOPY. You can use this to both unload and subsequently re-load on the target system.
Back to top
View user's profile Send private message
Rick Walker

New User


Joined: 14 Sep 2009
Posts: 5
Location: Des Plaines, IL.

PostPosted: Wed Sep 16, 2009 12:27 am
Reply with quote

Thank you...I'll research IEBCOPY and test it.
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Wed Sep 16, 2009 12:39 am
Reply with quote

Here the process ( sourcedsn=your PDS with load modules )

Unload phase

1. On the source MVS.
At a TSO command prompt (option 6 from the main ISPF screen) :
XMIT X.X DA('sourcedsn') OUTDA('tempdsn')
tempdsn is a FB 80 dataset. It can be preallocated or not.

2. On the intermediate platform (Unix, PC, ...).
open FTP connection to the source MVS
BINARY
GET 'tempdsn' 'pcfile'
close FTP connection

Restore phase

1. On the intermediate platform (Unix, PC, ...).
open FTP connection to the target MVS
BINARY
PROMPT OFF
QUOTE SITE FIXRECFM 80
PUT 'pcfile' 'tempdsn'
close FTP connection.

tempdsn is a FB 80 dataset. It can be preallocated or not.
If the transfer abends because tempdsn is too small, either preallocate it
(FB 80) the correct size or type the following commands before PUT... :
BLOCKS
PRI=nnn (with nnn the primary quantity in BLOCKS)
SEC=nnn (with nnn the secondary quantity in BLOCKS)

2. On the target MVS.
At a TSO command prompt (option 6 from the main ISPF screen) :
RECEIVE INDA('tempdsn')
At the prompt, enter :
DS('targetdsn')

That's all folks !!!
Back to top
View user's profile Send private message
Rick Walker

New User


Joined: 14 Sep 2009
Posts: 5
Location: Des Plaines, IL.

PostPosted: Wed Sep 16, 2009 1:29 am
Reply with quote

I've run IEBCOPY to copy a couple of load modules to a sequential file. It created the file, but it can't be opened because of an invalid record length. Here is the JCL for the output dataset...

//SYSUT2 DD DSN=output.name,
// DISP=(,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=0,BLKSIZE=23200),
// SPACE=(CYL,(1,1),RLSE),UNIT=SYSDA

IEBCOPY converts to a format of VS, record length of 23216. What needs to be changed?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 16, 2009 1:36 am
Reply with quote

Hello,

Quote:
but it can't be opened because of an invalid record length.
What is failing on the open?
Back to top
View user's profile Send private message
Rick Walker

New User


Joined: 14 Sep 2009
Posts: 5
Location: Des Plaines, IL.

PostPosted: Wed Sep 16, 2009 1:45 am
Reply with quote

When I try to browse the dataset it's not allowed because of an invalid record length. It has a cylinder of space used so there is data in it, but not readable. Load modules are probably variable length records, but load PDS's are defined as RECFM=U, LRECL=0, BLKSIZE=23200. I need this to be a readable, sequential flat file for FTP purposes.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 16, 2009 2:18 am
Reply with quote

Hi Rick,

Yup, kinda what i expected. . .

Suggest you ftp the file as a binary file and continue from there.
Back to top
View user's profile Send private message
Rick Walker

New User


Joined: 14 Sep 2009
Posts: 5
Location: Des Plaines, IL.

PostPosted: Wed Sep 16, 2009 2:22 am
Reply with quote

I believe that would be best. Thanks for your time.

RW
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Sep 16, 2009 2:46 am
Reply with quote

You're welcome - good luck icon_smile.gif

Someone will be here if there are questions or problems,

d
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 16, 2009 2:47 am
Reply with quote

Quote:
I need this to be a readable, sequential flat file for FTP purposes.
Why? Binary transfers work fine, and unloaded load module PDS are not in a format you'd want to browse, anyway. IEBCOPY has its own internal format for unloaded PDS files and as long as I transfer in binary it can be reconstructed just fine on the other end -- without being able to look at the data.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts How to load to DB2 with column level ... DB2 6
No new posts REASON 00D70014 in load utility DB2 6
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
Search our Forums:

Back to Top