The Update Log File, SAMPLE UPDLOG I UPDATING 'SAMPLE ASSEMBLE Al' WITH .j * REVISION BY DLC UPDATE Al' UPDATE LOG -- PAGE 11 1 1 000005001 .j R 500 DELETING ••• INSERTING ••• j R 700 1000 DELETING ••• INSERTING ••• RETURN .j I 1200 INSERTING... ERROR .j D 1500 DELETING... AGE
.j I 1600 INSERTING... PLIST DOCFN LINEDIT TEXT='PLEASE ENTER YOUR NAME' LINEDIT TEXT='WHAT"S YOUR NAME7',DOT=NO LINEDIT TEXT='PLEASE ENTER YOUR AGE' RDTERM AGE
LINEDIT TEXT='HI, •••••••••• , YOU JUST TOLD ME YOO SUB=(CHARA,NAME,CHARA,AGE),RENT=NO LINEDIT TEXT='HI, •••••••••• , ENTER THE SUB= (CHARA, NAME) RDTERM NAME MVC DOCFN,NAME LA 1,PLIST SVC 202 DC AL4 (ERROR) EQU * EQU * WRTERM 'FILE NOT FOUND' B RETURN DC DS DC
DC
DC
DC
DC CL130' , OD CL8'TYPE' CL8' , CL8'FILE'
CL8'A1' 8X'FF' The Updated output File, $SAMPLE ASSEMBLE SAMPLE RETURN ERROR NAME SAVRET PTJIST DOCFN CSECT USING SAMPLE,R12 LR R12,R15 ST R14,SAVRET LINEDIT TEXT='WHAT"S YOUR NAME?',DOi=NO RDTERM NAME LINEDIT TEXT='HI, •••••••••• , ENTER THE DOCNAME', SUB= (CHARA, NAME) RDTERM NAME MVC DOCFN,NAME LA 1,PLIST SVC 202 DC AL4 (ERROR) EQU *
L R14,SAVRET BR R14 EQU * WRTERM 'FILE NOT FOUND' B RETURN EJECT
DC CL 130' , DC F'O' DS OD DC CL8'TYPE' DC CL8" DC CL8'FILE'
DC CL8'Al' DC 8X'FF' REGEQU END
Figure 22. Updating source Files with the UPDATE Command (Part 2 of 2)
256 IBM VM/370 eMS User's Guide ********1 1 000007001 000008001 00001000 x********
********
********
********
********
********
********
********
********
******** ********1 1 000015001 1 ********1 ********1 ********1 ********1 ********1 ********1 I 000001001 00000200 00000300 00000400 ******** 00000600 x********
********
********
********
********
********
********
******** 00001100 00001200 ********
********
******** 00001300 00001400 00001600 ********
********
********
********
********
******** 00001700 00001800
The INSERT and REPLACE statements allow you to control the numbering increment of records that you add to a source file. Notice, in Figure
22, that inserted records have the character string '********' in
columns 73 through 80. If you want sequence numbers on the inserted
records, you must do two things:
1. Use the INC option on the UPDATE command line. If you use the CTL
option, you do not have to specify the INC option. The CTL option
is described below, under "Multiple Updates."
2. Include a dollar sign ($) on the INSERT or REPLACE statement,
optionally followed by operands indicating how the records should be sequenced.
For example, to sequence the records added in Figure 22, the control
statements would appear as:
./ R 500 $
./ R 700 1000 $
./ I 1200 $
./ I 1600 $
and you would issue the UPDATE command: update sample (inc
The UPDATE command sequences inserted records by increments of 10. If you want to control the numbering, for example, if you need to insert more than 10 statements between two existing statements, you can specify
an alternate sequencing scheme:
./ I 1800 $ 1805 5
Records introduced following this INSERT statement are numbered 00001805, 00001810, 00001815, and so on. (If the NOSEQ8 option is in
effect, then the records would be IIX01805, IXX01810, and so on, where
xxx is the three-character identifier used in columns 73 through 75.) MULTIPLE UPDATES If you have several UPDATE files to apply to the same source, you may apply them in a series of UPDATE commands. For example, if you have
updates named FICA UPDTUP1, FICA UPDTUP2, and FICA UPDTUP3 to apply to
the source file FICA PLIOPT, you could do the following:
1. Update the source file with TEST1 UPDATE: update fica pliopt a fica updtup1
2. Update the source file produced by the above command with the TEST2 UPDATE: update $fica pliopt a fica updtup2
3. Update the new source file with TEST3: update $$fica pliopt a fica updtup3 Section 13. Programming for the CMS Environment 257
Previous Page Next Page