Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

1.5.1.9.2 Reference Modification Examples



The following statement transfers the first 10 characters of the data-item referenced by WHOLE-NAME to the data-item referenced by FIRST-NAME.


     77  WHOLE-NAME  PIC X(25).
     77  FIRST-NAME  PIC X(10).

.
.
.


MOVE WHOLE-NAME(1:10) TO FIRST-NAME.

The following statement transfers the last 15 characters of the data-item referenced by WHOLE-NAME to the data-item referenced by LAST-NAME.


     77  WHOLE-NAME  PIC X(25).
     77  LAST-NAME   PIC X(15).

.
.
.


MOVE WHOLE-NAME(11:) TO LAST-NAME.

The following statement transfers the fourth and fifth characters of the third occurrence of TAB to the variable SUFFIX.


     01  TABLE-1.
         02  TAB  OCCURS 10 TIMES  PICTURE X(5).
     77  SUFFIX                    PICTURE X(2).

.
.
.


MOVE TAB OF TABLE-1 (3) (4:2) TO SUFFIX.



Previous Topic Next Topic © Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.





Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS


Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.