IEBCOPY to copy from data from mainframe to desktop
Moderators: Frank Yaeger, DikDude, Moderator Group
-
- Member
- Posts: 16
- Joined: Thu Aug 31, 2006 11:17 pm
- Location: pune india
IEBCOPY to copy from data from mainframe to desktop
Hi,
I want to copy mainframe PS or PDS on windows/PC/Desktop using IEBCOPY in some batch job.
Can you please provide any help on this. I can not do FTP, but i heard that FTP protocol is nothing but IEBCOPY. So being a generic utility i can use this in our product.
I want to copy mainframe PS or PDS on windows/PC/Desktop using IEBCOPY in some batch job.
Can you please provide any help on this. I can not do FTP, but i heard that FTP protocol is nothing but IEBCOPY. So being a generic utility i can use this in our product.
IEBCOPY is a dataset utility that is used to copy or merge members between one or more partitioned data sets, in full or in part. You can also use IEBCOPY to create a backup of a partitioned data set into a sequential data set (called an unload data set or PDSU), and to copy members from the backup into a partitioned data set.
So, you can use IEBCOPY to copy a PDS. You can use IEBCOPY to unload a PDS to a backup, and subsequently reload a PDS from that backup. If your goal is to simply use IEBCOPY to create the unload, and then store that unload file off of a mainframe for some future use, then yes, IEBCOPY will work. If your goal is to have useable copies of that data elsewhere, then IEBCOPY is not the right tool.
If the goal is to have to have copies of the PDS members which you can read and use elsewhere, then you need something else. You can use a utility such as IEBPTPCH to copy selected PDS members into a sequential dataset, which can then be used elsewhere. I've heard of some folks who use the TSO TRANSMIT command to convert a PDS into a sequential XMIT (.xmi) file. There are third-party tools that allow you to use .xmi formatted files in a Windows environment. If you have PKZIP available you can create a .zip archive of a PDS or dataset or even a mixture of both.
So, you can use IEBCOPY to copy a PDS. You can use IEBCOPY to unload a PDS to a backup, and subsequently reload a PDS from that backup. If your goal is to simply use IEBCOPY to create the unload, and then store that unload file off of a mainframe for some future use, then yes, IEBCOPY will work. If your goal is to have useable copies of that data elsewhere, then IEBCOPY is not the right tool.
If the goal is to have to have copies of the PDS members which you can read and use elsewhere, then you need something else. You can use a utility such as IEBPTPCH to copy selected PDS members into a sequential dataset, which can then be used elsewhere. I've heard of some folks who use the TSO TRANSMIT command to convert a PDS into a sequential XMIT (.xmi) file. There are third-party tools that allow you to use .xmi formatted files in a Windows environment. If you have PKZIP available you can create a .zip archive of a PDS or dataset or even a mixture of both.
-
- Member
- Posts: 16
- Joined: Thu Aug 31, 2006 11:17 pm
- Location: pune india
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
Here is a link to IEBCOPY (Library Copy) Program
and as MrSpock indicated, IEBCOPY is not a transmission program
(mainframe to pc and pc to mainframe)
and as MrSpock indicated, IEBCOPY is not a transmission program
(mainframe to pc and pc to mainframe)
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
hi, I would also like to know how to transfer flat files & pds members & a whole Load Library down to my pc & then I will transfer the files to a jump drive. I nolonger have access to 3480.90e Cart. drives as they have moved them from the NYC area to South Dakota. I have access to attachmate extra to do the file transfers itself but need to know whats to set in Extra for both download to the PC & for later to upload back to the mainframe. I know I can do each seq. flat file & flat PDS members. but I need a complete method for handling a LOAD library. without this I have no way to backup my progs & files except locally, Plz help me
-
- Member
- Posts: 16
- Joined: Thu Aug 31, 2006 11:17 pm
- Location: pune india
Ok. I got what MrSpock said. Actually my requirement is dat " we have to transfer PDS/PS data from mainframe to my desktop in TXT format. I can not use FTP utility for this.
I did google on it and found one option which is FILEXFER, which i can use in one REXX pgm. but still i have some proble with "ISPEXEC WSCON IP(IPADDR) CODEPAGE(0037) CHARSET(0697) NOGUIDSP" statement in my rexx pgm and it is showing following error.
-----------------------------------------------------------------------------
ISPX010
Transfer failed
The FILEXFER service failed because there is no connection to the
workstation.
Current dialog statement:
ISPEXEC FILEXFER WS(WSFN) HOST(OUTFILE) TO(HOST)
------------------------------------------------------------------
So i m unable to do file transfer. Rexx pgm what i used is
/* REXX */
IPADDR = '*'
OUTFILE = 'ITG47D.REXX.PROG'
WSFN = 'C:\sandeeptest\test.txt'
/* WSCON - CONNECT TO THE WSA */
"ISPEXEC WSCON IP(IPADDR) CODEPAGE(0037) CHARSET(0697) NOGUIDSP"
IF RC>0 THEN
"ISPEXEC FILEXFER WS(WSFN) HOST(OUTFILE) TO(HOST)"
IF RC=0 THEN
SAY SUCCESS
Please let me know the solution.
I did google on it and found one option which is FILEXFER, which i can use in one REXX pgm. but still i have some proble with "ISPEXEC WSCON IP(IPADDR) CODEPAGE(0037) CHARSET(0697) NOGUIDSP" statement in my rexx pgm and it is showing following error.
-----------------------------------------------------------------------------
ISPX010
Transfer failed
The FILEXFER service failed because there is no connection to the
workstation.
Current dialog statement:
ISPEXEC FILEXFER WS(WSFN) HOST(OUTFILE) TO(HOST)
------------------------------------------------------------------
So i m unable to do file transfer. Rexx pgm what i used is
/* REXX */
IPADDR = '*'
OUTFILE = 'ITG47D.REXX.PROG'
WSFN = 'C:\sandeeptest\test.txt'
/* WSCON - CONNECT TO THE WSA */
"ISPEXEC WSCON IP(IPADDR) CODEPAGE(0037) CHARSET(0697) NOGUIDSP"
IF RC>0 THEN
"ISPEXEC FILEXFER WS(WSFN) HOST(OUTFILE) TO(HOST)"
IF RC=0 THEN
SAY SUCCESS
Please let me know the solution.
-
- Member
- Posts: 16
- Joined: Thu Aug 31, 2006 11:17 pm
- Location: pune india
I have got successful run of REXX pgm RC=0 but i did not get any file on my PC at specified location.
RExx PGM is as follows
-----------------------------------------/* REXX */
IPADDR = 'My PC's IP Address'
OUTFILE = 'Zxmudga.REXX.PROG'
WSFN = 'C:\sandeeptest\test.xmit'
/* WSCON - CONNECT TO THE WSA */
"ISPEXEC WSCON IP(IPADDR) CODEPAGE(0037) CHARSET(0697) NOGUIDSP"
IF RC=0 THEN
"ISPEXEC FILEXFER WS(WSFN) HOST(OUTFILE) TO(HOST)"
IF RC=0 THEN
SAY SUCCESS
---------------------------------------------------------------
Why it is happening, i did search on it again but no success.
RExx PGM is as follows
-----------------------------------------/* REXX */
IPADDR = 'My PC's IP Address'
OUTFILE = 'Zxmudga.REXX.PROG'
WSFN = 'C:\sandeeptest\test.xmit'
/* WSCON - CONNECT TO THE WSA */
"ISPEXEC WSCON IP(IPADDR) CODEPAGE(0037) CHARSET(0697) NOGUIDSP"
IF RC=0 THEN
"ISPEXEC FILEXFER WS(WSFN) HOST(OUTFILE) TO(HOST)"
IF RC=0 THEN
SAY SUCCESS
---------------------------------------------------------------
Why it is happening, i did search on it again but no success.
-
- Member
- Posts: 16
- Joined: Thu Aug 31, 2006 11:17 pm
- Location: pune india
-
- Member
- Posts: 16
- Joined: Thu Aug 31, 2006 11:17 pm
- Location: pune india
I have one more question. I have given complete REXX code to u in above conversation. Dat all code i m using to do file transfer. but i think i need to login to mainframe server for doing file transfer. This is same as we do for FTP. Actually i m getting RC=16 in "ISPEXEC WSCON IP(IPADDR) CODEPAGE(0037) CHARSET(0697) NOGUIDSP" line.
.What u say. even if i need to do
.What u say. even if i need to do
-
- Member
- Posts: 16
- Joined: Thu Aug 31, 2006 11:17 pm
- Location: pune india
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page