読者です 読者をやめる 読者になる 読者になる

メンバーのコピーや書き込み

メインフレーム

・COPYコマンド
編集中のメンバーにほかのメンバーの内容をCOPYしてくる。
空のメンバーにCOPYする場合の動き

   File  Edit  Edit_Settings  Menu  Utilities  Compilers  Test  Help            
 -------------------------------------------------------------------------------
 EDIT       AU00530.JCL(STUDY) - 01.03                      Columns 00001 00072 
 Command ===>                                                  Scroll ===> PAGE 
 ****** ***************************** Top of Data ******************************
 ****** **************************** Bottom of Data ****************************

COPY [member|dsname(member)] [AFTER label] [startrow endrow]
COPY 'AU00530.JCL(GUESS)'

   File  Edit  Edit_Settings  Menu  Utilities  Compilers  Test  Help            
 -------------------------------------------------------------------------------
 EDIT       AU00530.JCL(STUDY) - 01.03                      Member GUESS copied 
 Command ===>                                                  Scroll ===> PAGE 
 ****** ***************************** Top of Data ******************************
 000001 //GUESS    JOB  1,NOTIFY=&SYSUID                                        
 000002 //********************************//                                    
 000003 //*** COBOL Compile **************//                                    
 000004 //********************************//                                    
 000005 //COMPILE  EXEC IGYWCL,MBR=GUESS                                        
 ****** **************************** Bottom of Data ****************************

内容のあるメンバーにCOPYしてくる場合

  File  Edit  Edit_Settings  Menu  Utilities  Compilers  Test  Help            
-------------------------------------------------------------------------------
EDIT       AU00530.JCL(STUDY) - 01.03                             COPY pending 
Command ===> COPY 'AU00530.JCL(GUESS)'                        Scroll ===> PAGE 
****** ***************************** Top of Data ******************************
000001 //GUESS    JOB  1,NOTIFY=&SYSUID                                        
000002 //********************************//                                    
000003 //*** COBOL Compile **************//                                    
000004 //********************************//                                    
000005 //COMPILE  EXEC IGYWCL,MBR=GUESS                                        
****** **************************** Bottom of Data ****************************

そのままCOPYコマンドを実行すると「COPY pending」と出力される。
F1で詳細何言ってるのか確認。
さらにF1押すとCOPYコマンドの詳細が見れる。

An A or B line command or a valid label has not been specified. 

どうやらAはAfter BはBefore。
LINEコマンド実行する場所にAかBを打つ。

COPYコマンドの詳細は、HELPで確認できる。
その他CREATEコマンドなどもあり。

 TUTORIAL ------------- EDIT EXTERNAL DATA PRIMARY COMMANDS ----------- TUTORIAL
 OPTION  ===>                                                                   
                                                                                
   The external data commands listed below allow you to move or copy data       
   from an external source (sequential data set, member of a partitioned        
   data set, or z/OS UNIX file) into the data currently being edited, or        
   to move or copy data that is currently being edited out to a sequential      
   data set, member, or z/OS UNIX file.                                         
                                                                                
 The following topics are presented in sequence, or may be selected by name:    
                                                                                
   INTRO    - Introduction to external data commands                            
   CREATE   - to create a new member of a partitioned data set, sequential      
              data set or z/OS UNIX file.                                       
   REPLACE  - to replace a member, an entire sequential data set or             
              z/OS UNIX file.                                                   
   COPY     - to copy data from a member, sequential data set or z/OS UNIX file.
   MOVE     - to move (copy and delete) a member, sequential data set or        
              z/OS UNIX file.                                                   
   CUT      - to copy or move data to a clipboard.                              
   PASTE    - to copy or move data from a clipboard.                            
   MODEL    - to copy a predefined model.                                       
   SCREATE  - to create a new member within SCLM.                               
   SREPLACE - to replace a member within SCLM.                                  
   SMOVE    - to move (copy and delete) a member within SCLM.