EXPORT

EXPORT exports an RFS file to an MVS™ dataset.

Read syntax diagramSkip visual syntax diagram EXPORT rfs_fileid dsn

Operands

dsn
specifies a fully qualified (without quotes) MVS physical sequential or partitioned organization dataset name. If the dataset is partitioned (DSORG=PO), the member name must be provided in parenthesis.
rfs_fileid
specifies a fully qualified REXX File System file ID.

Return codes

0
Normal return
1701
Invalid command
1702
Invalid operand
1723
RFS write error
1724
RFS read error
1725
Dynamic allocation failed
1726
Dynamic free failed
1727
Transient data queue open failed
1728
Member not enqueued
1729
Member in use
1730
Records truncated
1733
Input for export not found
1735
Transient data error
1736
Unexpected CICS error.
1737
Invalid request
1738
Invalid dataset name
1739
Invalid disposition
1741
Unsupported DSORG
1742
Error building transient data pool
1743
REXX transient data queue not available/found
1744
User not signed on/authorized for dataset access
1745
Empty dataset
1746
REXX queue not found
1748
No entry for ddname in Task Input/Output Table (TIOT)
1749
Cannot export to multi unit dataset
1750
ddname has more than one dataset in concatenation
1799
Internal error

Example

'EXPORT POOL1:\USERS\USER1\TEST.DATA USER1.TEST.DATA'

This example copies POOL1:\USERS\USER1\TEST.DATA from an RFS file to an MVS sequential dataset.

Note:
  1. This command performs an SVC 99 and therefore is not recommended for frequent use because performance concerns.
  2. The REXX/CICS-supplied CICSECX1 security exit is invoked to verify that your CICS sign-on user ID is authorized to access the specified MVS dataset. By default, the high level prefix of the dataset name must match your CICS sign on user ID. The CICS region must also have authorization to access the specified MVS dataset (for example, by an external security manager if external security is enabled).
  3. The MVS dataset is allocated DISP=OLD.
  4. The MVS data specified in dsn must already be allocated. If the dataset is sequential, it is replaced by the contents of the RFS file specified in rfs_fileid. If the dataset is partitioned and the member name specified already exists, it is replaced by the contents of the RFS file.
  5. If you export to an MVS dataset that is defined to the CICS region, the disposition of the dataset will be changed to OLD until the CICS region is recycled.