In this session, you will create a map by using the layout of another map.
To create a map from a map layout
From the Edit Map menu, execute the
Initialize new Map function to create a map with the name
MAP003
.
On the Define Map Settings for MAP screen, change
Page Size to 60
, mark WRITE
Statement, unmark INPUT Statement, and enter
MAP002
next to Layout.
Press ENTER.
The map settings now look as follows:
16:57:39 Define Map Settings for MAP 2007-12-14 Delimiters Format Context ----------------- --------------------------- -------------------------- Cls Att CD Del Page Size ...... 60 Device Check .... ________ T D BLANK Line Size ...... 79 WRITE Statement X T I ? Column Shift ... 0 (0/1) INPUT Statement _ Layout ......... MAP002__ Help ____________________ dynamic ....... N (Y/N) as field default N (Y/N) Zero Print ..... N (Y/N) Case Default ... UC (UC/LC) Manual Skip .... N (Y/N) Automatic Rule Rank 1 O D + Decimal Char ... . Profile Name .... SYSPROF O I ( Standard Keys .. N (Y/N) Justification .. L (L/R) Filler Characters Print Mode ..... __ ------------------------ Optional, Partial .... Control Var .... ________ Required, Partial .... Optional, Complete ... Required, Complete ... Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12--- Help Exit Let |
Press ENTER.
The map editing screen appears with the layout of map MAP002.
Delete CITY:(XXXXXXXXXXXXXXXXXXXX
by using the field
command .T
.
Move the second of the remaining output fields to the position shown
below by using the field command .M
.
The screen then looks as follows:
Ob _ Ob D CLS ATT DEL CLS ATT DEL . . T D Blnk T I ? . . . . . . O D + . . O I ( . . 001 --010---+----+----+---030---+----+----+---050---+----+----+---070---+---- NAME:(XXXXXXXXXXXXXXXXXXXX (XXXXXXXXXXXXXXXXXXXX Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12--- Help Mset Exit Test Edit -- - + Full < > Let |
Insert the text FIRST NAME:
into the line as shown
below:
Ob _ Ob D CLS ATT DEL CLS ATT DEL . . T D Blnk T I ? . . . . . . O D + . . O I ( . . 001 --010---+----+----+---030---+----+----+---050---+----+----+---070---+---- NAME:(XXXXXXXXXXXXXXXXXXXX FIRST NAME: (XXXXXXXXXXXXXXXXXXXX Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12--- Help Mset Exit Test Edit -- - + Full < > Let |
Press PF3.
The Edit Map menu appears.
STOW
map MAP003 by using the appropriate
menu function.
You can now proceed with Invoking a Map with WRITE USING MAP.