2013-01-22 30 views

回答

1

圖片9(14).9(2)實質上是一個Pic X字段。你可以建立重新定義的字段 或使用引用修改

 03 F1     PIC 9(14).9(2). 
     03 filler redefines F1. 
      05 F1-Int   pic 9(14). 
      05 filler   pic X. 
      05 F1-decimal  pic 9(2). 

     03 F2     PIC 9(14)V9(2). 
     03 filler redefines F2. 
      05 F2-Int   pic 9(14). 
      05 F2-decimal  pic 9(2). 

     Move F1-int   to f2-int. 
     Move F1-decimal  to f2-decimal. 

or  
     Move F1(1:14)  to F2(1:14). 
     Move F1(16:2)  to F2(15:2). // Forgoten the correct format for cobol 
+0

謝謝。已經以相似的方式整理出來了,但是,您的方法非常有效。 :) – ikartik90

+0

你使用了哪一種有效的方法,如果你不介意我問什麼,那麼在什麼方面「高效」? –

相關問題