In a message dated 9/20/2006 12:01:37 P.M. Central Standard Time,
[EMAIL PROTECTED] writes:
No idea how OCOPY is configured at this site... but entering a TSO
OCOPY
from the command line gives me
>>
RTFM?
3.TSOOCOPY.6 Examples
1. The following commands copy an MVS sequential data set to an HFS
file. This is text data, and there is no code page conversion.
* SYSUT1 is the ddname of the source data set, EMPLOYEE.DATA.
* PATHNAME is the ddname of the target, which is the existing file
/u/admin/employee/data.
ALLOCATE FILE(sysut1) DATASET('employee.data')
ALLOCATE FILE(pathname) PATH('/u/admin/employee/data')
OCOPY INDD(sysut1) OUTDD(pathname) TEXT
2. The following commands copy a binary file into a member of a
partitioned data set:
* BINARY is the ddname of the source file, bin/payroll. This file is in
the working directory.
* MVSPDS is the ddname of the target data set member,
APPL.CODES(PAYROLL)
ALLOCATE FILE(binary) PATH('/bin/payroll')
ALLOCATE FILE(mvspds) DATASET('appl.codes(payroll)')
OCOPY INDD(binary) OUTDD(mvspds) BINARY
3. The following commands copy system input from the MVS SYSIN data set
to the file system and perform code page conversion:
* SYSIN is the ddname of the source, IBMUSR.EMPLOYEE.DATA.
* PATHNAME is the ddname of the target, /u/admin/employee/data. This
file does not currently exist and is created by ALLOCATE.
* This is text data.
* The character conversion table is the default table, member BPXFX000
of the SYS1.BPXLATE data set. (BPXFX000 is an alias; when shipped by IBM, it
points to BPXFX111.)
* Because this is a copy from an MVS data set to a file, the section
TO1047 of the conversion table is used by default.
ALLOCATE FILE(sysin) DATASET('IBMUSR.EMPLOYEE.DATA')
ALLOCATE FILE(pathname) PATH('/u/admin/employee/data')
PATHMODE (sirwxu) PATHOPTS (ocreat, owronly)
OCOPY INDD(sysin) OUTDD(pathname) TEXT CONVERT((BPXFX000))
(BPXFX000 is an alias; when shipped by IBM, it points to
BPXFX111.)
4. The following OCOPY command copies data from one MVS sequential data
set to another MVS sequential data set and performs code page conversion.
This example shows just the OCOPY command; the necessary ALLOCATE commands are
not included.
* SYSUT1 is the ddname of the source data set.
* TRANSDD is the ddname of the target data set.
* This is text data.
* The data is converted using the user-specified character conversion
table and the TO1047 section of the table.
OCOPY INDD(sysut1) OUTDD(transdd) TEXT
CONVERT('sys1.mylib(mytab)') TO1047
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html