Tuesday, December 13, 2011

Utilities: Transfer dataset from one LPAR to another LPAR or one mainframe to another mainframe easily

If your installation has NDM (Connect:Direct), you can use “TSO NDM” command to easily transfer the dataset from one LPAR to another LPAR or one mainframe to another maninframe.

Type “TSO NDM” and this will show the below screen. In the below screen just type your TSO user id and press ENTER key. No need to enter the password.

CMD ==>                                                                       
                                                                                
                         Connect:Direct for z/OS                               
                                                                               
                         Sterling Commerce, Inc.                               
                                                                               
                        VERSION        : 04                                    
                        RELEASE        : 008                                   
                        MODIFICATION   : 000                                   
                        LEVEL          : 4802                                  
                                                                                
       TODAY IS   : 2011/09/13 (2011.347 )          THE TIME IS: 12:23         
                                                                               
 USER ID  => TSUBAQF                                                            
 PASSWORD =>                                                                   
 NEW PASS =>                                                                   
 NODE NAME =>                                                                   
 TRANSPORT =>                                                                  
 COMMUNICATION ADDRESS =>(       ,                                         )   
 DESCRIPTION =>                                                                
                                                                                
 ALL COMMANDS FOR THIS SESSION ARE TO BE CASE SENSITIVE ==> NO                 
                                                                               
                                                                               
In the below screen type CF

   View  Modify  Control  Create  Execute                                      
 TSTV               Connect:Direct PRIMARY OPTIONS MENU                        
 CMD ==> CF                                                                     
  Connect:Direct SIGNON process completed.                                     
 SELECT ONE OF THE FOLLOWING:                                                  
    CF  - COPY A FILE                                   ***********************
    SB  - SUBMIT A PREDEFINED PROCESS                   *                     *
    DF  - DEFINE A PROCESS USING ISPF EDIT              * TODAY: 12.13.2011   *
    SS  - VIEW STATISTICS FOR A COMPLETED PROCESS       * TIME:  12:24        *
    MB  - SUBMIT A BATCH TO Connect:Enterprise for z/OS *                     *
    CP  - CHANGE CHARACTERISTICS OF A PROCESS           ***********************
    DP  - DELETE A NON-EXECUTING PROCESS                                        
    FP  - FLUSH AN EXECUTING PROCESS                                           
    SP  - VIEW DATA ABOUT AN EXECUTING PROCESS                                 
    PS  - SUSPEND AN EXECUTING PROCESS                                          
    MSG - VIEW Connect:Direct MESSAGE TEXT                                     
    SW  - SWAP AMONG CONCURRENT Connect:Direct SESSIONS                        
    SD  - VIEW/CHANGE YOUR Connect:Direct SIGNON INFORMATION DEFAULTS           
    NM  - VIEW INFORMATION IN THE Connect:Direct NETWORK MAP                   
    WHO - VIEW CHARACTERISTICS OF YOUR Connect:Direct IUI ENVIRONMENT          
    SPF - ENTER ISPF/PDF                                                       
    AUTH - VIEW YOUR Connect:Direct FUNCTION AUTHORIZATION                     
    MS  - SIGN ON TO MULTIPLE Connect:Direct NODES CONCURRENTLY                
    ADMIN - PERFORM Connect:Direct ADMINISTRATIVE FUNCTIONS                    

In the below screen, type the below highlighted fields. Sending and receiving node name will differ from one installation to another installation.


TSTV               Connect:Direct COPY FILE MENU                   TIME: 12:24
 CMD ==>                                                                        
                                                                               
 SENDING   ENVIRONMENT: ZOS______        TRANSPORT: NETMAP                     
 NODE NAME: TSTPROD_________________________________________________________   
 RECEIVING ENVIRONMENT: ZOS______                                              
 NODE NAME: TSTV____________________________________________________________   
 PROCESS NAME:  COPYCF__                                                        
 CLASS:         ___         (NUMERIC)              VALIDATE ONLY ==>  N        
 HOLD:          N           (Y, N, OR C-CALL)                                  
 NOTIFY USER:   %USER___________________________________________________________
 PRIORITY:      __          (RANGE: 0 TO 15)                                   
 REQUEUE:       N           (Y OR N)                                           
 RETAIN ON TCQ: N           (Y, N, OR I-INITIAL)                               
 START DATE:    __________  TIME: __________                                   
 CHECKPOINT:    ________    (BYTE INTERVAL - NK|NM)                            
 DEBUG:         ________    (HEXADECIMAL)                                      
 PLEXCLASS:     ________ ________ (PNODE SNODE)                                
 COMPRESS:      N____       (Y, N, X-EXTENDED, X'XX', OR C'C')                 
 EXT COMPRESSION LEVEL: _  WINDOW: __  MEMORY: _                               
 OVERRIDE SECURITY: N       (Y OR N)                                            
                                                                               
 DO YOU WANT VALUES FOR THIS COPY TO BE CASE SENSITIVE? ==> NO___              
                                                                                
In the below screen, type the source dataset name

TSTV               COPYFILE - SENDING FILE (z/OS or OS/390)        TIME: 12:24
 CMD ==>                                                                       
                                                                                
 NODE NAME: TSTPROD                                                            
 SENDING DSNAME:    SOURCE.DATASET.NAME____________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
______________________________                                                 
 UNIT PARAMETER:  ( ________________________________ )                         
 LABEL PARAMETER: ( ________________________________ )                         
 VOLUME SERIAL(S):( _______________________________________________________ )  
           RETAIN: _ (Y OR N)                                                   
 DCB PARAMETER:   ( ________________________________________________________ ) 
 TYPE KEY:          ________         MSVGP NAME:  ________                     
 SYSOPTS:  _____________________________________________________________________
 (PDS ONLY:)           REPLACE: Y (Y OR N)   ALIAS: Y (Y OR N)                 
 SELECTION CRITERIA: ( __________________________________________ )            
                     ( __________________________________________ )            
                                                                               
 EXCLUSION CRITERIA: ( __________________________________________ )            
                     ( __________________________________________ )            
                                                                               
                                                                               
In the below screen, type the new dataset name

TSTV               COPYFILE - RECEIVING FILE (z/OS or OS/390)      TIME: 12:24
 CMD ==>                                                                       
                                                                                
 NODE NAME: TSTV                                                               
 RECEIVING DSNAME:  TO.DATASET.NAME________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
______________________________                                                 
 DISPOSITION:     ( NEW , CATLG_ , CATLG_ )                                     
 UNIT PARAMETER:  ( ________________________________ )                         
 VOLUME SERIAL(S):( _______________________________________________________ )  )
        RETAIN: _ (Y OR N)   COUNT: ___ (1-255)                                 
 DCB PARAMETER:   ( __________________________________________________________ )
 LABEL PARAMETER: ( ____________________________________________ )             
 SPACE:           ( CYL,(10,10,50),RLSE_____________ )                         
 TYPE KEY:          ________    MSVGP NAME:  ________                          
 SYSOPTS:  _____________________________________________________________________
 SMS: DATA CLASS: ________  STORAGE CLASS: ________  MGMT CLASS: _________     
      AVERAGE RECORDS: _  DSNTYPE: _______                                     
      VSAM ORGANIZATION: ____ KEY LENGTH: ___   KEY OFFSET: _____              
      LIKE DSNAME:    ____________________________________________             
      SECURITY MODEL: ____________________________________________             
      GENERIC MODEL:  ___  (YES OR NO)                                         

In the below screen, you will receive the below highlighted message.
                                                                                

TSTV               COPYFILE - RECEIVING FILE (z/OS or   PROCESS NUMBER: 49,618
 CMD ==>                                                                       
 Submit process successful                                                      
 NODE NAME: TSTV                                                               
 RECEIVING DSNAME:  TO.DATASET.NAME_________________________________________________________________
________________________________________________________________________________
______________________________                                                 
 DISPOSITION:     ( NEW , CATLG_ , CATLG_ )                                    
 UNIT PARAMETER:  ( ________________________________ )                          
 VOLUME SERIAL(S):( _______________________________________________________ )  )
        RETAIN: _ (Y OR N)   COUNT: ___ (1-255)                                
 DCB PARAMETER:   ( __________________________________________________________ )
 LABEL PARAMETER: ( ____________________________________________ )             
 SPACE:           ( CYL,(10,10,50),RLSE_____________ )                         
 TYPE KEY:          ________    MSVGP NAME:  ________                          
 SYSOPTS:  _____________________________________________________________________
 SMS: DATA CLASS: ________  STORAGE CLASS: ________  MGMT CLASS: _________     
      AVERAGE RECORDS: _  DSNTYPE: _______                                     
      VSAM ORGANIZATION: ____ KEY LENGTH: ___   KEY OFFSET: _____              
      LIKE DSNAME:    ____________________________________________             
      SECURITY MODEL: ____________________________________________             
      GENERIC MODEL:  ___  (YES OR NO)                                          
                                                                               
Once the transfer is completed, you will receive the below message


SVTM052I COPYSTEP COPY     COPYCF  (  49,618) SNODE=TSTPROD        CN(INTERNAL)
         FROM SOURCE.DATASET.NAME
CN(INTERNAL)
         TO   TO.DATASET.NAME
CN(INTERNAL)
         COMPLETED  00000000/SCPA000I                               CN(INTERNAL)
 SVTM037I PROCESS ENDED     COPYCF  (  49,618) SNODE=TSTPROD        CN(INTERNAL)
 ***                                                                           

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.