Previous Topic: ExampleNext Topic: Delete DL/I Segments


Copy a DL/I Segment

Copy a DL/I segment from one database to another.

  1. To retrieve the segment you want to copy, specify the following, and then press Enter:
    FUNC= a DL/I get function
    PSB and DBD of source database
    SIZE= size of the DL/I segment
    
    
    
  2. Enter the following optional information, and then press Enter:
    SSA= SSAs needed to retrieve the requested segmentFILE displays the segment.
    
  3. Specify the following, and then press Enter:
    FUNC= ADDU
    PSB and/or DBD of destination database
    SIZE= size of the DL/I segment
    
    
    
  4. Make any necessary changes.
  5. Specify the following, and then press Enter:
    FUNC= ISRT
    SSA= SSAs necessary to insert segment into proper
         position in database
    

The segment is copied if the call is successful.

Note: To copy additional segments, repeat Steps 1 through 5.

Example

To copy a SKILL segment whose key is ARTIST and whose length is 100 bytes from one database to another, follow these steps:

1. Specify the following, and then press Enter:

FUNC= GU 
PSB= OLDBASE 
DBD= DBD0025 
SIZE= 100              (or 64 for FORMAT= D) 
SSA= SKILL (SKILCODE= ARTIST)

2. Specify the following, and then press Enter:

FUNC= ADDU 
PSB= NEWBASE 
DBD= DBD0010 
SIZE= 100              (or 64 for FORMAT= D)

3. Specify the following, and then press Enter:

FUNC= ISRT 
SSA= SKILL (SKILCODE= ARTIST)