2.56
2.57
2.58
2.59
2.60
2.61
2.62
2.63
2.64
2.65
2.66
2.67
2.68
2.69
2.70
2.71
2.72
2.73
2.74
2.75
2.76
2.77
2.78
2.79
RPG02:
Interactive Program :
Detail Description.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
2.1
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Customer Code:
BBBBB
F04=Selection
F03=Exit
F12=Cancel
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
.... ....1.... ....2.... ....3.... ....4.... ....5.... ....6.... ....7.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
Customer Code:
OOOOO
Customer Name:
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
Customer Address:
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
BBBBBBBB
Customer City:
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
Customer Date:
999999
OOOOOOOOOOOOOOOOOOOOOOOOOOO
F11=Delete
F03=Exit
F12=Cancel
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
.... ....1.... ....2.... ....3.... ....4.... ....5.... ....6.... ....7.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
Name
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
Code
OOOOO
OOOOO
OOOOO
OOOOO
OOOOO
OOOOO
OOOOO
OOOOO
OOOOO
OOOOO
OOOOO
OOOOO
F03=Exit
F12=Cancel
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
.... ....1.... ....2.... ....3.... ....4.... ....5.... ....6.... ....7.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
2.2
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
2.3
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
2.4
Program Header
*****************************************************************
*
*
* Description
: Customer Maintenance
*
*
*
* Author
: RVA
*
*
*
* Creation date : 20.05.99
*
*
*
*****************************************************************
*
GENERATED BY THE PROGRAM GENERATOR
*
*
*
*
IIIII
DDDD
DDDD
OOOO
SSSSS
*
*
I
D
D
D
D
O
O
S
*
*
I
D
D
D
D
O
O
SSSSS
*
*
I
D
D
D
D
O
O
S
*
*
IIIII
DDDD
DDDD
OOOO
SSSSS
*
*
*
*
(C) COPYRIGHT Real Software N.V. 1999
*
*****************************************************************
Description :
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
Fig. 1
..................................................................................
: INTEGRATED DEVELOPMENT & DOCUMENTATION SYSTEM
Hotline 9.1 level 10 ID002RGI :
: Programs
S02 :
:
:
: Program . . . . . . . . : RV006RGI
:
: Standard . . . . . . . . . *YES *YES, *NO
:
: Subsystem id . . . . . . . RV +
:
: Type . . . . . . . . . . . RPG
+
Coding in /FREE . N (Y/N)
:
: Description . . . . . . . Customer Maintenance
:
: Kind . . . . . . . . . . . I +
:
: Exit . . . . . . . . . . . *PERM *PERM, *TEMP, *USER
:
: Use IDPARM . . . . . . . . Y (Y/N)
:
: ERRSFL . . . . . . . . . . N (Y/N)
:
: UIM . . . . . . . . . . . N (Y/N/F/U)
:
: Module . . . . . . . . . . N (Y/N)
:
: Program . . . . . . . . . N (Y/N/S)
:
: Activation group . . . . .
(Name, *DFT, *NEW, *CALLER)
:
:
:
:
:
:
:
:
Language .
+ :
:
Copy . . .
+ :
: F3=Exit
F4=Prompt
F5=Messages
F9=Copy
F12=Cancel
:
: F13=Conventions
F14=Description
F24=More keys
:
:
:
:................................................................................:
Author :
The user name of the user, who generated the program
source.
Creation Date :
Date of generation of the program.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
10
2.5
The H-specification.
H
/J
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
11
2.6
WORKSTN
KINFDS ##DSDF
KINFSR *PSSR
##RN03KSFILE S03SFL
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
12
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
13
2.7
DISK
A
KINFDS ##DS01
KINFSR *PSSR
Fig. 3
....................................................................................
:
INTEGRATED DEVELOPMENT & DOCUMENTATION SYSTEM
Documentation system ID018RGI :
: INTERACTIVE program design
S01 :
:
:
: Files used in program . . . . . . . : MN003RGI
:
:
:
: Type options, press Enter.
:
:
1=Detail
2=Recfmt
4=Delete
5=Browse
9=Keywords
:
:
7=DB-access
8=Based on
:
: Opt Nr Filename
Internal
Text
Use :
:
01 MN02LF
MN02LF
Logical file MN02LF
U K A:
02 MN01PF
MN01PF
Physical file MN01PF
U
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
: F3=Exit
F6=New DB file
F8=Formats
:
: F10=Files
F12=Cancel
:
:
:
:..................................................................................:
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
14
Fig. 4
....................................................................................
:
INTEGRATED DEVELOPMENT & DOCUMENTATION SYSTEM
Documentation system ID020RGI :
: INTERACTIVE program design
S01 :
:
:
: Program . . . . . . . . : MN003RGI
:
:
:
+
:
: File . . . . . . . . . . . MN01PF
: System . . . . . . . . . . DOCU
:
: Internal name . . . . . . MN01PF
:
:
: File number . . . . . . . 02
: File type . . . . . . . . I
:
:
: Keyed file . . . . . . . .
:
: Add file . . . . . . . . .
: Use . . . . . . . . . . . B
:
:
: User controlled . . . . . N
: Commitment control . . . . N
:
:
:
:
:
:
:
:
:
:
: Generation INFSR
Y
:
:
:
:
: F3=Exit
F4=Prompt
F12=Cancel
:
:
:
:..................................................................................:
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
15
Fig. 5
....................................................................................
:
INTEGRATED DEVELOPMENT & DOCUMENTATION SYSTEM
Documentation system ID118RGI :
: Records in program
S01 :
:
:
: Selection record format for file . . . : MN02LF
:
:
renamed as :
:
:
in program : MN003RGI
:
:
:
: Ignore Number Record format Renamed Record format
:
:
Y/N
:
:
N
01
MN02LFR
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
: F12=Cancel
:
:
:
:..................................................................................:
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
16
2.8
##I
50
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
17
2.9
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
18
2.10
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
19
2.11
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
20
2.12
I##DS01
I
I
I
I
DS
400
38 45 ##FM01
46 52 ##CP01
B 397 4000##RF01
*STATUS ##FS01
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
21
2.13
Manual IDDOS 13
- ##KLID :
- ##TLCD:
- ##TLCU:
- ##CMDC :
RPG02
Interactive Program: Detail Description
22
Manual IDDOS 13
- ##DTSV :
- ##MLTU :
- ##UPRM :
RPG02
Interactive Program: Detail Description
23
2.14
I
I
I
DS
P
1
1
15 ##ALFA
159##PACK
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
24
2.15
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
25
2.16
Keylist Section.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
26
2.17
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
27
2.18
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
28
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
29
- ##FMTI :
- ##ERNR
- ##MESS
Manual IDDOS 13
- ##F
- ##TLCU
- ##PGNM
RPG02
Interactive Program: Detail Description
30
ERROR HANDLING.
The parameters used by the Execution Environment
program IP099CLI (Error Handling) are :
- ##DSDF : the File Information Data Structure
- ##PGDS : the Program Status Data Structure
- ##RETN : the return value
The program IP099CLI is the route to the error handling
circuit. An abnormal end of the calling program will be
evoked because IP099CLI returns the '*CANCL' value
in the ##RETN field. Only in the case of record lock,
can the user return to the calling program without
cancelling. In that case, blanks are returned in the
##RETN field.
DATE CONVERSION.
The parameters used by the date conversion program
IP031RGB (Century support date conversion) are :
- ##DTIC : the input date
- ##DTOC : the output date
- ##FMIC : the input date format
- ##FMOC : the output date format
- ##DTSV : system value QDATFMT
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
31
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
32
2.19
C
C
*NAMVAR
*LOCK
DEFN IDPARM
IN
##PARM
##PARM
Ext. parms
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
33
2.20
EXSR $I99
Initialize
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
34
2.21
C
C*
C
C
C
C
C*
C
##NSBR
DOWNE99
##NSBR
##NSBR
##NSBR
CASEQ01
CASEQ02
CASEQ03
END
$S01
$S02
$S03
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
35
2.22
##EXIT
DOWEQ*BLANKS
*
************************************************************
*IDDOS: User Code : Driver routine
*
************************************************************
*---> CASE routine driver
*
C
MOVEL'EXIT'
##EXIT
*
************************************************************
*IDDOS: User Code : End program Conditioning
*
************************************************************
*
C
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
36
2.23
##END
TAG
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
37
2.24
OUT
##PARM
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
38
2.25
C
C
C
C
C
C
##ENDP
##ENDP
IFEQ 'LR'
MOVEL'1'
END
IFEQ 'RT'
RETRN
END
*INLR
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
39
2.26
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
40
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
41
2.27
C
C
C
C
C
##RPNT
IFEQ 1
Z-ADD10
Z-ADD0
EXSR $V01
END
##RPNT
##INSL
Pre-Display
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
42
2.28
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
##RPNT
##RPNT
##RPNT
##F
*LOCK
IFEQ 10
OREQ 20
OREQ 30
Z-ADD40
##RPNT
Z-ADD##F
##ERNR
IFEQ 0
MOVEL*BLANKS
##MESS
ELSE
OUT ##PARM
CALL 'IP010RGB'##PLMS
IN
##PARM
Z-ADD0
##F
END
EXSR $D01
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
43
2.29
C
C
C
C
C
C
C
C
C
C
##RPNT
##RPNT
##RPNT
##F
IFEQ 10
OREQ 20
OREQ 30
Z-ADD40
##RPNT
IFEQ 0
CALL 'IP060CLB'##PLES
Z-ADD0
##F
END
EXSR $D01
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
44
2.30
C
C
C*
C
C
C
C
C
C
C
C
C
C
C
C
C
C*
C
C
C
C
C
C*
C
C
C
C
C*
C
C
C*
C
C
C
C*
C
C
C
C
C
C
C*
C
Manual IDDOS 13
##RPNT
IFEQ 40
Z-ADD50
##PREV
IFNE 01
MOVEL'0'
MOVEL'0'
MOVEL'0'
ELSE
MOVEL'1'
MOVEL'1'
MOVEL'1'
IFEQ '0'
MOVEL'1'
MOVEL'0'
END
END
##NEW
##OVRL
##INSL
##INSL
IFEQ '0'
MOVEL'0'
ELSE
MOVEL'1'
END
IFLT 1
ORGT 1
Z-ADD1
END
WRITEM99CTL
MOVEL'1'
##INSL
##RPNT
No Redisplay
*IN81
*IN82
*IN91
Same screen
*IN81
*IN82
*IN91
##NEW
*IN81
*IN92
*IN92
##INSL
Messages
*IN92
Error subfile
Error subfile
IFEQ 1
WRITES01IL1
END
MOVEL'1'
Z-ADD01
EXFMTS01FMT
MOVEL'0'
MOVEL'0'
MOVEL'0'
*IN92
##PREV
*IN81
*IN82
*IN91
Reset 1
END
RPG02
Interactive Program: Detail Description
45
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
46
2.31
C
C
C*
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C*
C
C
C
C
C
C
C
C
C
C
C
C
C
Manual IDDOS 13
##RPNT
*IN99
*INKY
*INKD
*IN99
*INKD
*IN99
*LOCK
*INKY
##OVRL
##INSL
##INSL
##INSL
*INKD
##SWPR
*LOCK
##FLDN
##FLDN
##FLDN
##FLDN
*INKD
##F
*LOCK
##OVRL
IFEQ 50
Z-ADD60
##RPNT
DOWEQ'1'
OREQ '1'
OREQ '1'
IFEQ '1'
OREQ '1'
MOVE ##LNNR
##ALF
Z-ADD##BIN
##LINE
MOVE ##PSNR
##ALF
Z-ADD##BIN
##POS
Z-ADD0
##PREV
END
IFEQ '1'
OUT ##PARM
CALL 'IP250RGB'##PLHT
IN
##PARM
MOVEL'0'
*IN99
MOVEL'1'
*IN91
END
IFEQ '1'
MOVEL'1'
*IN91
IFEQ '0'
MOVEL'0'
*IN92
ELSE
MOVEL'1'
*IN92
END
ADD 1
##INSL
IFLT 1
ORGT 1
Z-ADD1
##INSL
END
IFEQ 1
WRITES01IL1
END
END
IFEQ '1'
EXSR PR0104
IFEQ 'Y'
OUT ##PARM
CALL 'IP039RGI'##PLVA
IN
##PARM
IFEQ *BLANKS
Z-ADD30
##RPNT
Z-ADD996
##F
END
IFNE '*NONE '
IFEQ 'ACCD#1'
MOVEL##CVAL
ACCD#1
END
IFEQ 'COCD#1'
MOVEL##CVAL
COCD#1
END
END
ELSE
MOVEL'Y'
##SWPR
END
IFEQ '1'
EXSR PS0104
END
MOVEL'1'
*IN91
MOVEL'1'
*IN82
MOVEL'1'
*IN81
HELP
CF24
*PROMPT
Z-ADD##F
##ERNR
IFEQ 0
MOVEL*BLANKS
##MESS
ELSE
OUT ##PARM
CALL 'IP010RGB'##PLMS
IN
##PARM
Z-ADD0
##F
END
IFEQ '0'
MOVEL'0'
*IN92
ELSE
MOVEL'1'
*IN92
RPG02
Interactive Program: Detail Description
47
C
C
C
C
C
C*
C
C
C
C
C*
C*
C
C
C
C
C
C
C*
C
C*
C
##INSL
END
IFEQ 1
WRITES01IL1
END
END
MOVEL'1'
WRITES01FMT
READ S01FMT
END
*IN92
89
MOVEL'0'
*IN91
MOVEL'0'
*IN92
Z-ADD0
##LINE
Z-ADD0
##POS
MOVEA##I
*IN,1
CALL 'IP061CLB'
Reset 2
Error subfile
EXSR $C01
Cmd-keys
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
48
2.32
C
C
C*
C
C
C
C
C
C
C*
C
C*
C
##RPNT
IFEQ 50
Z-ADD60
##RPNT
MOVEL'0'
*IN91
MOVEL'0'
*IN92
Z-ADD0
##LINE
Z-ADD0
##POS
MOVEA##I
*IN,1
CALL 'IP061CLB'
Reset 2
EXSR $C01
Cmd-keys
Error subfile
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
49
2.33
C
C
C
C
C
C*
C
C
C
C
##RPNT
##RPNT
##RPNT
IFEQ 60
OREQ 61
OREQ 62
Z-ADD90
EXSR $P01
MOVEL'0'
MOVEL'0'
MOVEL'0'
END
##RPNT
Post-Display
##AD01
##UP01
##DL01
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
50
2.34
C
C
C*
C
C
C
C
C
C
C
C
C
C
C
C*
C
##RPNT
##TF99
IFEQ 90
Z-ADD99
IFNE 0
Z-ADD##TF99
Z-ADD0
Z-ADD61
ELSE
MOVEL'0'
Z-ADD##NSBR
Z-ADD##NPNT
Z-ADD02
Z-ADD01
END
##RPNT
##NSBR
##TF99
##NPNT
##OVRL
##PSBR
##PPNT
##NSBR
##NPNT
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
51
2.35
Manual IDDOS 13
IFEQ 90
point 90
END
END
ENDSR
RPG02
Interactive Program: Detail Description
52
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
53
2.36
C
C
C
C
C
##RPNT
IFEQ 1
Z-ADD10
Z-ADD0
EXSR $V03
END
##RPNT
##INSL
Pre-Display
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
54
2.37
C
C
C*
C
C
C
C*
C
C
C
C
C
C
C*
C
C
C
C
C
C
C
C*
C
##RPNT
##KL02
*IN87
##ST03
IFEQ 10
Z-ADD20
##RPNT
MOVEL'1'
WRITES03CTL
MOVEL'0'
*IN97
Z-ADD0
Z-ADD0
MOVEL'N'
MOVEL'N'
MOVEL'N'
MOVEL'N'
##RN03
##RH03
##ES03
##EF03
##RA03
##NDSP
SETLLMNCUMAR2
IFEQ '1'
MOVEL'Y'
IFEQ 'Y'
MOVEL'Y'
END
END
SFLCLR
*IN97
87
##EF03
##ES03
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
55
2.38
C
C
C*
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C*
C
C
C
C*
C
C
C*
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C*
C
Manual IDDOS 13
##RPNT
##SFLL
##EF03
*IN89
##ST03
##ES03
##EF03
##NDSP
##NDSP
##EF03
##ES03
##EF03
##SWES
*IN89
##ST03
##NDSP
##EF03
IFEQ 20
Z-ADD30
Z-ADD0
DOWLT12
IFEQ 'N'
READ MNCUMAR2
IFEQ '1'
MOVEL'Y'
IFEQ 'Y'
MOVEL'Y'
END
END
END
IFEQ 'Y'
Z-ADD12
ELSE
IFEQ 'Y'
MOVEL'N'
EXSR $B02
EXSR $I03
ELSE
EXSR $R03
IFEQ 'N'
EXSR $F02
EXSR $A03
END
END
IFEQ 'N'
ADD 1
ADD 1
WRITES03SFL
ELSE
MOVEL'N'
END
END
END
##RPNT
##SFLL
SFLLOAD
N
##ES03
##SFLL
##NDSP
##RN03
##SFLL
##NDSP
IFEQ 'N'
MOVELCUNMCU
END
##0103
Z-ADD##RN03
Z-ADD##RN03
##RS03
##RH03
IFEQ 'N'
ANDEQ'N'
Z-ADD##RF02
MOVEL*BLANKS
DOWEQ*BLANKS
READ MNCUMAR2
IFEQ '1'
MOVEL'S'
MOVEL'Y'
IFEQ 'Y'
MOVEL'Y'
END
ELSE
EXSR $R03
IFEQ 'Y'
MOVEL'N'
ELSE
MOVEL'S'
END
IFEQ 'Y'
MOVEL'S'
END
END
END
END
89
##EF03
SAVE KEYS
SET RRN
Subfile End?
##RL03
##SWES
89
##SWES
##EF03
##ES03
##NDSP
##SWES
##SWES
END
RPG02
Interactive Program: Detail Description
56
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
57
2.39
C
C
C
C
C
C
C
C
C
C
C
C
C
##RPNT
##F
*LOCK
IFEQ 30
Z-ADD40
##RPNT
Z-ADD##F
##ERNR
IFEQ 0
MOVEL*BLANKS
##MESS
ELSE
OUT ##PARM
CALL 'IP010RGB'##PLMS
IN
##PARM
Z-ADD0
##F
END
EXSR $D03
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
58
2.40
C
C
C
C
C
C
C
C
C
C
##RPNT
##RPNT
##RPNT
##F
IFEQ 10
OREQ 20
OREQ 30
Z-ADD40
##RPNT
IFEQ 0
CALL 'IP060CLB'##PLES
Z-ADD0
##F
END
EXSR $D03
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
59
2.41
C
C
C*
C
C
C
C
C
C*
C
C
C
C
C
C*
C
C
C
C
C
C
C
C
C
C
C
C
C
C*
C
C
C
C
C
C*
C
C
C
C
C*
C
C
C*
C
C
C
C*
C
C*
C
C
C
C
C
C
C*
C
##RPNT
##RH03
##ES03
##PREV
##NEW
##OVRL
##INSL
##INSL
IFEQ 40
Z-ADD50
IFEQ 0
MOVEL'0'
ELSE
MOVEL'1'
END
IFEQ 'N'
MOVEL'0'
ELSE
MOVEL'1'
END
IFNE 03
MOVEL'0'
MOVEL'0'
MOVEL'0'
ELSE
MOVEL'1'
MOVEL'1'
MOVEL'1'
IFEQ '0'
MOVEL'1'
MOVEL'0'
END
END
IFEQ '0'
MOVEL'0'
ELSE
MOVEL'1'
END
IFLT 1
ORGT 1
Z-ADD1
END
WRITEM03CTL
MOVEL'1'
##INSL
##RPNT
*IN96
*IN96
*IN84
*IN84
*IN81
*IN82
*IN91
*IN81
*IN82
*IN91
##NEW
*IN81
*IN92
*IN92
##INSL
Messages
*IN92
Error subfile
Error subfile
IFEQ 1
WRITES03IL1
END
MOVEL'1'
*IN92
Z-ADD03
EXFMTS03CTL
MOVEL'0'
MOVEL'0'
MOVEL'0'
MOVEL'0'
##PREV
*IN81
*IN82
*IN91
*IN96
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
60
2.42
Manual IDDOS 13
##RPNT
*IN99
*INKY
*IN99
*LOCK
*INKY
##OVRL
##INSL
##INSL
##INSL
##RFDF
IFEQ 50
Z-ADD60
##RPNT
DOWEQ'1'
OREQ '1'
IFEQ '1'
MOVE ##LNNR
##ALF
Z-ADD##BIN
##LINE
MOVE ##PSNR
##ALF
Z-ADD##BIN
##POS
Z-ADD0
##PREV
OUT ##PARM
CALL 'IP250RGB'##PLHT
IN
##PARM
MOVEL'0'
*IN99
MOVEL'1'
*IN91
END
IFEQ '1'
MOVEL'1'
*IN91
IFEQ '0'
MOVEL'0'
*IN92
ELSE
MOVEL'1'
*IN92
END
ADD 1
##INSL
IFLT 1
ORGT 1
Z-ADD1
##INSL
END
IFEQ 1
WRITES03IL1
END
END
MOVEL'1'
*IN92
WRITES03CTL
READ S03CTL
IFNE 0
Z-ADD##RFDF
##RS03
END
END
HELP
CF24
89
MOVEL'0'
*IN91
MOVEL'0'
*IN92
Z-ADD0
##LINE
Z-ADD0
##POS
MOVEA##I
*IN,1
CALL 'IP061CLB'
*IN95
##EF03
##KL02
*IN87
##RF02
*IN89
CUNMCU
##KL02
IFEQ '1'
Z-ADD20
Z-ADD##RH03
IFEQ 'N'
MOVEL##0103
SETLLMNCUMAR2
IFEQ '1'
MOVEL'Y'
ELSE
DOUEQ##RL03
READ MNCUMAR2
IFEQ '1'
MOVEL'Y'
Z-ADD##RL03
ELSE
IFNE ##0103
SETLLMNCUMAR2
Z-ADD##RL03
END
END
END
END
END
ELSE
EXSR $C03
END
Error subfile
Roll Up
##RPNT
##RN03
CUNM02
87
##EF03
89
##EF03
##RF02
##RF02
END
RPG02
Interactive Program: Detail Description
61
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
62
2.43
Manual IDDOS 13
##RPNT
IFEQ 50
Z-ADD60
##RPNT
MOVEL'0'
*IN91
MOVEL'0'
*IN92
Z-ADD0
##LINE
Z-ADD0
##POS
MOVEA##I
*IN,1
CALL 'IP061CLB'
*IN95
##EF03
##KL02
*IN87
##RF02
*IN89
CUNMCU
##KL02
IFEQ '1'
Z-ADD20
Z-ADD##RH03
IFEQ 'N'
MOVEL##0103
SETLLMNCUMAR2
IFEQ '1'
MOVEL'Y'
ELSE
DOUEQ##RL03
READ MNCUMAR2
IFEQ '1'
MOVEL'Y'
Z-ADD##RL03
ELSE
IFNE ##0103
SETLLMNCUMAR2
Z-ADD##RL03
END
END
END
END
END
ELSE
EXSR $C03
END
Error subfile
Roll Up
##RPNT
##RN03
CUNM02
87
##EF03
89
##EF03
##RF02
##RF02
END
RPG02
Interactive Program: Detail Description
63
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
64
2.44
C
C
C
C
##RPNT
IFEQ 60
Z-ADD61
EXSR $L03
END
##RPNT
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
65
2.45
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
##RPNT
##RH03
*IN80
##RPNT
IFEQ 61
Z-ADD62
IFNE 0
Z-ADD03
READCS03SFL
DOWEQ'0'
EXSR $X03
IFEQ 62
READCS03SFL
ELSE
MOVEL'1'
END
END
END
END
##RPNT
##TF99
80
80
*IN80
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
66
2.46
C
C
C
C
C*
C
C
C
C*
C
C
C
C*
C
##RPNT
##TF03
IFEQ 62
Z-ADD90
Z-ADD0
EXSR $P03
##RPNT
##TF99
MOVEL'0'
MOVEL'0'
MOVEL'0'
##AD03
##UP03
##DL03
IFNE 0
Z-ADD##TF03
END
##TF99
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
67
2.47
C
C
C*
C
C
C
C
C
C
C
C
C
C
C
C*
C
##RPNT
##TF99
IFEQ 90
Z-ADD99
IFNE 0
Z-ADD##TF99
Z-ADD0
Z-ADD61
ELSE
MOVEL'0'
Z-ADD##NSBR
Z-ADD##NPNT
Z-ADD01
Z-ADD01
END
##RPNT
##NSBR
##TF99
##NPNT
##OVRL
##PSBR
##PPNT
##NSBR
##NPNT
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
68
2.48
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
69
2.49
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
70
2.50
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
71
2.51
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
72
2.52
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
73
2.53
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
74
2.54
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
75
2.55
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
76
2.56
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
77
2.57
C*---------------------------------------------------------C*IDDOS: initialization
C*---------------------------------------------------------C
$I99
BEGSR
C*
C*----------------------------------------C* File 01 : MNCUMAL1
: Customer master by Customer Code
C*
C*
C* Key-list fields
C*
C
*LIKE
DEFN CUCDCU
CUCD01
C*----------------------------------------C* File 02 : MNCUMAL2
: Customer Master by Name
C*
C
*LIKE
DEFN CUACCU
CUAC#2
C
*LIKE
DEFN CUADCU
CUAD#2
C
*LIKE
DEFN CUCTCU
CUCT#2
C
*LIKE
DEFN CUDTCU
CUDT#2
C
*LIKE
DEFN CUZPCU
CUZP#2
C*
C* Key-list fields
C*
C
*LIKE
DEFN CUNMCU
CUNM02
C*
C* Key-list save-fields to control Roll-up
C*
C
*LIKE
DEFN CUNMCU
##0103
C*----------------------------------------C
CALL 'IP061CLB'
Clear error subfile
C*----------------------------------------C* Fields IDDOS-parameter lists
C*
C
Z-ADD0
##ERNR 50
C*
C
MOVEL*BLANKS
##DDCD 10
C
MOVEL*BLANKS
##CVAL 15
C
MOVEL*BLANKS
##OMSC 30
C
MOVEL*BLANKS
##DBVL 15
C
MOVEL*BLANKS
##SWVR 1
C
MOVEL*BLANKS
##FLDN 6
C*
C
MOVEL*BLANKS
##DATI 6
C
MOVEL*BLANKS
##FMTI 1
C
MOVEL*BLANKS
##FMTO 1
C
MOVEL*BLANKS
##DATO 6
C
MOVEL*BLANKS
##DATC 7
C*
C
MOVEL*BLANKS
##DTIC 10
C
MOVEL*BLANKS
##DTOC 10
C
MOVEL*BLANKS
##FMIC 7
C
MOVEL*BLANKS
##FMOC 7
C*
C
MOVEL*BLANKS
##RETN 6
C
MOVEL*BLANKS
##NAME 20
C*
C
MOVEL*BLANKS
##LYNR 20
C
MOVEL*BLANKS
##FMAT 8
C*----------------------------------------C* IDDOS : Generator fields : general
C*
C
MOVEA##MLTU
*IN,61
C
MOVEA*ALL'0'
##I
C
MOVE *LOVAL
##ALF
C
MOVEL*BLANKS
##EXIT 4
C
MOVEL'Y'
##SWPR 1
C
Z-ADD1
##NSBR 20
C
Z-ADD1
##NPNT 20
C
Z-ADD1
##PSBR 20
C
Z-ADD1
##PPNT 20
C
Z-ADD0
##RPNT 20
C
Z-ADD0
##SC99 20
C
MOVEL'LR'
##ENDP 2
C
MOVEL'0'
##SWER 1
C
MOVEL'0'
##OVRL 1
C
MOVEL'1'
##NEW
1
C
Z-ADD0
##PREV 20
C
Z-ADD0
##F
50
C
Z-ADD0
##TF99 20
C
Z-ADD0
##RFSV 40
C
Z-ADD1
##INSL 10
C*
C
Z-ADD0
##SFLL 40
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
78
C
MOVEL'N'
##NDSP
C
MOVEL*BLANKS
##SWES
C*----------------------------------------C* IDDOS : Generator fields : format 01
C*
C
MOVEL'0'
##AD01
C
MOVEL'0'
##UP01
C
MOVEL'0'
##DL01
C*----------------------------------------C* IDDOS : Generator fields : format 02
C*
C
MOVEL'0'
##AD02
C
MOVEL'0'
##UP02
C
MOVEL'0'
##DL02
C
Z-ADD6
##WL02
C
Z-ADD12
##WP02
C
Z-ADD0
##WC02
1
1
1
1
1
1
1
1
Only if window
Only if window
30 Only if window
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
79
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
80
2.58
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
81
2.59
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
82
2.60
C
$F01
BEGSR
C*
C*IDDOS: Transfer file --> screen
C*
C
MOVELCUCDCU
CUCD#1
C
MOVELCUNMCU
CUNM#1
C
MOVELCUADCU
CUAD#1
C
MOVELCUZPCU
CUZP#1
C
MOVELCUCTCU
CUCT#1
C
MOVELCUACCU
CUAC#1
C
MOVELCUDTCU
##DATI
C
MOVEL'Y'
##FMTI
C
MOVEL'S'
##FMTO
C
EXSR $U99
C
MOVEL##DATO
CUDT#1
C*Date conversion with century support dates
C
MOVELDATECU
##DTIC
C
MOVEL'*ISO'
##FMIC
C
MOVEL'S
'
##FMOC
C
CALL 'IP032RGB'##PLCS
C
MOVEL##DTOC
DATE#1
C*
C
$F01ZZ
ENDSR
P Century support
P Century support
P Century support
Century support
P Century support
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
83
2.61
C
$T01
BEGSR
C*
C*IDDOS: Transfer screen --> file
C*
C
MOVELCUCD#1
CUCDCU
C
MOVELCUNM#1
CUNMCU
C
MOVELCUAD#1
CUADCU
C
MOVELCUZP#1
CUZPCU
C
MOVELCUCT#1
CUCTCU
C
MOVELCUAC#1
CUACCU
C
MOVELCUDT#1
##DATI
C
MOVEL'S'
##FMTI
C
MOVEL'Y'
##FMTO
C
EXSR $U99
C
MOVEL##DATO
CUDTCU
C*Date conversion with century support dates
C
MOVELDATE#1
##DTIC
C
MOVEL'S
'
##FMIC
C
MOVEL'*ISO'
##FMOC
C
CALL 'IP032RGB'##PLCS
C
MOVEL##DTOC
DATECU
C*
C
$T01ZZ
ENDSR
P Century support
P Century support
P Century support
Century support
P Century support
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
84
2.62
C
$B01
C*
C*IDDOS: Init non-key
C*
C
C
C
C
C
C
C*
C
$B01ZZ
BEGSR
fields
MOVEL*BLANKS
MOVEL*BLANKS
MOVEL*BLANKS
MOVEL*BLANKS
MOVEL*BLANKS
Z-ADD*ZEROS
CUNM#1
CUAD#1
CUZP#1
CUCT#1
CUAC#1
CUDT#1
ENDSR
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
85
2.63
C
$K01
C*
C*IDDOS: Fill keylist
C*
C
C*
C
$K01ZZ
BEGSR
from screen
MOVELCUCD#1
CUCD01
ENDSR
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
86
2.64
C
C
C
C
C
C
C
C*
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
$U99
##FMTI
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
##FMTO
##FMTI
##DATI
##DATI
##FMTI
##FMTO
##FMTO
##FMTO
##CYY
##FMTI
##FMTO
##FMTO
C
##FMTO
##CYY
##FMTI
##FMTO
Manual IDDOS 13
BEGSR
IFEQ 'S'
MOVE ##DTSV
ENDIF
IFEQ 'S'
MOVE ##DTSV
ENDIF
IFEQ ##FMTO
OREQ '000000'
OREQ '
'
MOVE *ZEROS
MOVE ##DATI
ELSE
IFEQ 'D'
MOVE ##DATI
IFEQ 'M'
MOVE ##DDD
MOVE ##DMM
MOVE ##DYY
MOVE ##MDAT
ENDIF
IFEQ 'Y'
MOVE ##DDD
MOVE ##DMM
MOVE ##DYY
MOVE ##YDAT
ENDIF
IFEQ 'C'
MOVE ##DDD
MOVE ##DMM
MOVE ##DYY
IFGE '40'
MOVE '0'
ELSE
MOVE '1'
ENDIF
MOVE ##CDAT
ENDIF
ENDIF
IFEQ 'M'
MOVE ##DATI
IFEQ 'D'
MOVE ##MMM
MOVE ##MDD
MOVE ##MYY
MOVE ##DDAT
ENDIF
IFEQ 'Y'
MOVE ##MMM
MOVE ##MDD
MOVE ##MYY
MOVE ##YDAT
IFEQ 'C'
MOVE ##MDD
MOVE ##MMM
MOVE ##MYY
IFGE '40'
MOVE '0'
ELSE
MOVE '1'
ENDIF
MOVE ##CDAT
ENDIF
ENDIF
IFEQ 'Y'
MOVE ##DATI
IFEQ 'D'
MOVE ##YYY
##FMTI
##FMTO
##DATC
##DATO
##DDAT
##MDD
##MMM
##MYY
##DATO
##YDD
##YMM
##YYY
##DATO
##CDD
##CMM
##CYY
##CCC
##CCC
##DATC
##MDAT
##DMM
##DDD
##DYY
##DATO
##YMM
##YDD
##YYY
##DATO
ENDIF
##CDD
##CMM
##CYY
##CCC
##CCC
##DATC
##YDAT
##DYY
RPG02
Interactive Program: Detail Description
87
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
C
##FMTO
##FMTO
##CYY
##FMTI
##FMTO
##FMTO
##FMTO
$U99ZZ
MOVE ##YMM
MOVE ##YDD
MOVE ##DDAT
ENDIF
IFEQ 'M'
MOVE ##YYY
MOVE ##YMM
MOVE ##YDD
MOVE ##MDAT
ENDIF
IFEQ 'C'
MOVE ##YDD
MOVE ##YMM
MOVE ##YYY
IFGE '40'
MOVE '0'
ELSE
MOVE '1'
ENDIF
MOVE ##CDAT
ENDIF
ENDIF
IFEQ 'C'
MOVE ##DATI
IFEQ 'D'
MOVE ##CYY
MOVE ##CMM
MOVE ##CDD
MOVE ##DDAT
ENDIF
IFEQ 'M'
MOVE ##CYY
MOVE ##CMM
MOVE ##CDD
MOVE ##MDAT
ENDIF
IFEQ 'Y'
MOVE ##CMM
MOVE ##CDD
MOVE ##CYY
MOVE ##YDAT
ENDIF
ENDIF
ENDIF
ENDSR
##DMM
##DDD
##DATO
##MYY
##MMM
##MDD
##DATO
##CDD
##CMM
##CYY
##CCC
##CCC
##DATC
##CDAT
##DYY
##DMM
##DDD
##DATO
##MYY
##MMM
##MDD
##DATO
##YMM
##YDD
##YYY
##DATO
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
88
2.65
Program tables.
*----------------------------------------------------------*IDDOS: Tables
*----------------------------------------------------------*
************************************************************
*IDDOS: User code : Tables
*
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
89
2.66
Fig. 7
....................................................................................
Documentation system ID037RGI :
:
INTEGRATED DEVELOPMENT & DOCUMENTATION SYSTEM
: Database accesses
S01 :
:
:
: Program . . . . . . . . : MN003RGI
:
: Routine . . . . . . . . : V02
:
:
:
: Filenbr Access mode
Release
Filename
Internal
Keyroutine
:
:
1
I
R
MN02LF
MN02LF
*DEFAULT
:
:
:
:
:
:
:
:
:
:
:
: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - :
:
:
: Filenbr Filename
Internal Type Description
:
:
01
MN02LF
MN02LF
U Logical file MN02LF
:
:
:
:
:
:
:
:
:
:
:
: F3=Exit
F12=Cancel
:
:
:
:..................................................................................:
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
90
*IN88
##KL01
*IN88
*IN87
EXSR $K01
DOUEQ'0'
CHAINMNCUMAR
IFEQ '1'
EXSR *PSSR
END
END
IFEQ '0'
EXSR $F01
EXCPTREL01
ELSE
EXSR $B01
END
8788
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
91
2.67
Fig. 8
....................................................................................
Documentation system ID037RGI :
:
INTEGRATED DEVELOPMENT & DOCUMENTATION SYSTEM
: Database accesses
S01 :
:
:
: Program . . . . . . . . : MN003RGI
:
: Routine . . . . . . . . : P02
:
:
:
: Filenbr Access mode
Release
Filename
Internal
Keyroutine
:
:
1
U
A
MN02LF
MN02LF
*DEFAULT
:
:
:
:
:
:
:
:
:
:
:
: - - - - - - - - - - - - - - - - - - - - - - - - - - - :
:
:
: Filenbr Filename
Internal Type Description
:
:
01
MN02LF
MN02LF
U Logical file MN02LF
:
:
:
:
:
:
:
:
:
:
:
: F3=Exit
F12=Cancel
:
:
:
:..................................................................................:
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
92
*IN88
##KL01
*IN88
*IN87
##DL02
##DL02
EXSR $K01
DOUEQ'0'
CHAINMNCUMAR
IFEQ '1'
EXSR *PSSR
END
END
IFEQ '0'
IFEQ '1'
DELETMNCUMAR
ELSE
EXSR $T01
UPDATMNCUMAR
END
ELSE
IFNE '1'
EXSR $T01
WRITEMNCUMAR
END
END
8788
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
93
2.68
Fig. 9
....................................................................................
Documentation system ID005RGI :
:
INTEGRATED DEVELOPMENT & DOCUMENTATION SYSTEM
: Attribute base
S021 :
:
:
:
:
: Attribute field . . . . : ORDQ
:
: Description . . . . . . . Ordered quantity
:
: Column heading . . . . . Ordered
:
:
Quantity
:
:
:
:
:
: Field length . . . . . .
9
:
:
: Type . . . . . . . . . . P
: Decimals . . . . . . . . 0
:
:
:
: FRF fieldname . . . . . . ORDQ
:
: FRF name . . . . . . . . ##FRF
+
:
:
:
:
:
+ :
:
Language .
:
Copy . . .
+ :
:
:
: F3=Exit
F4=Prompt
F5=Validation
F7=Keywords
F12=Cancel
:
: F14=Description
F18=Edit text
F19=View text
F20=Print text
:
:
:
:..................................................................................:
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
94
Error subfile
Error subfile
MOVEL*BLANKS
MOVEL'CUAC'
##DDCD
##DDCD
MOVEL*BLANKS
MOVELCUAC#1
##CVAL
##CVAL
*LOCK
OUT ##PARM
CALL 'IP020RGB'##PLVR
IN
##PARM
##SWVR
IFEQ 'N'
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
95
C
C
C
C
C
C
C
MOVEL'1'
*IN06
Z-ADD999
##F
CALL 'IP060CLB'##PLES
Z-ADD0
##F
Z-ADD30
##RPNT
GOTO $P02ZZ
END
Error subfile
Error subfile
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
96
2.69
Fig. 10
....................................................................................
:
INTEGRATED DEVELOPMENT & DOCUMENTATION SYSTEM
Documentation system ID005RGI :
: Attribute base
S022 :
:
:
:
:
: Attribute field . . . . : ORDQ
:
:
: Validation . . . . . . . F
: Date format . . . . . . .
+
:
+
:
: Edit code . . . . . . . .
:
: Edit word . . . . . . . .
: REFSHIFT . . . . . . . .
+
:
: CCSID . . . . . . . . . .
+
:
:
: DFT numeric . . . . . . .
: DFT alfanumeric . . . . .
:
:
:
:
:
:
:
:
:
:
:
:
Language .
+ :
:
Copy . . .
+ :
:
:
: F3=Exit
F4=Prompt
F5=Validation
F7=Keywords
F12=Cancel
:
: F14=Description
F18=Edit text
F19=View text
F20=Print text
:
:
:
:..................................................................................:
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
97
C*IDDOS:
C*IDDOS:
C*IDDOS:
C*
##KL01
*IN87
##F
MOVELCUZP#1
CUZP01
CHAINWSZIPCR
IFEQ '1'
MOVEL'1'
*IN03
IFEQ 0
Z-ADD00995
##F
CALL 'IP060CLB'##PLES
Z-ADD0
##F
END
Z-ADD30
##RPNT
GOTO $P02ZZ
END
87
Error subfile
Error subfile
MOVELCUZP#1
CUZP01
##KL01
*IN87
##F
CHAINWSZIPCR
IFEQ '1'
MOVEL'1'
*IN03
IFEQ 0
Z-ADD00995
##F
CALL 'IP060CLB'##PLES
Z-ADD0
##F
END
Z-ADD30
##RPNT
GOTO $P02ZZ
END
87
Error subfile
Error subfile
Read the file. If the read fails then the error indicator is
set, the error number is filled in and a goto is performed
to the end of the routine.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
98
2.70
Fig. 11
....................................................................................
Documentation system ID005RGI :
:
INTEGRATED DEVELOPMENT & DOCUMENTATION SYSTEM
: Attribute base
S022 :
:
:
:
:
: Attribute field . . . . : BIDT
:
: Validation . . . . . . .
:
:
: Date format . . . . . . . *YMD +
: Edit code . . . . . . . . Y +
:
: Edit word . . . . . . . .
:
: REFSHIFT . . . . . . . .
+
:
: CCSID . . . . . . . . . .
+
:
:
: DFT numeric . . . . . . .
: DFT alfanumeric . . . . .
:
:
:
:
:
:
:
:
:
:
:
:
Language .
+ :
:
Copy . . .
+ :
:
:
: F3=Exit
F4=Prompt
F5=Validation
F7=Keywords
F12=Cancel
:
: F14=Description
F18=Edit text
F19=View text
F20=Print text
:
:
:
:..................................................................................:
Error subfile
Error subfile
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
99
MOVELCUDT#1
##DATI
MOVEL'S'
##FMTI
MOVEL'Y'
##FMTO
MOVEL*BLANKS
##DATO
*LOCK
OUT ##PARM
CALL 'IP030RGB'##PLDT
IN
##PARM
##DATO
IFEQ '999999'
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
100
C
C
C
C
C
C
C
MOVEL'1'
*IN..
Z-ADD997
##F
CALL 'IP060CLB'##PLES
Z-ADD0
##F
Z-ADD30
##RPNT
GOTO $P02ZZ
END
Error subfile
Error subfile
##DATO
P
P
P
IFEQ '999999'
Manual IDDOS 13
MOVEL'1'
*IN..
Z-ADD997
##F
CALL 'IP060CLB'##PLES
Z-ADD0
##F
Z-ADD30
##RPNT
GOTO $P02ZZ
END
Error subfile
Error subfile
RPG02
Interactive Program: Detail Description
101
2.71
Fig. 12
....................................................................................
:
INTEGRATED DEVELOPMENT & DOCUMENTATION SYSTEM
Documentation system ID028RGI :
: Command lines
S01 :
:
:
: Display file . . . . . . : MN003RGD
:
: Format . . . . . . . . . : S02FMT
:
:
:
: Cmdkey Text
A/U/D Program
Plist
Pre-sbr Post-sbr Format Pointer :
: CF03
Exit
99
:
: CF04
*PROMPT
:
: CF12
Cancel
1
1
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
:
+ :
:
:
: F3=Exit
F12=Cancel
:
:
:
:..................................................................................:
IFEQ '1'
EXSR ......
OUT ##PARM
CALL '........'......
IN
##PARM
MOVEL'.'
##AD..
MOVEL'.'
##UP..
MOVEL'.'
##DL..
MOVEL'0'
##OVRL
Z-ADD..
##NSBR
Z-ADD..
##NPNT
Z-ADD99
##RPNT
EXSR ......
END
On the first line, the text entered for the command key,
is generated as a comment statement.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
102
*IN..
IFEQ '1'
EXSR ......
*LOCK
OUT ##PARM
CALL '........'......
IN
##PARM
C
C
C
MOVEL'.'
MOVEL'.'
MOVEL'.'
##AD..
##UP..
##DL..
Manual IDDOS 13
MOVEL'0'
Z-ADD..
Z-ADD..
Z-ADD99
##OVRL
##NSBR
##NPNT
##RPNT
RPG02
Interactive Program: Detail Description
103
EXSR ......
END
RPG02
Interactive Program: Detail Description
104
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
105
2.72
C
C
C
C
C
C
C
C
..........test...........
MOVEL'1'
*IN..
Z-ADD...
##F
CALL 'IP060CLB'
Z-ADD0
##F
Z-ADD30
##RPNT
GOTO $P..ZZ
END
Error subfile
Error subfile
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
106
2.73
C
C
C
C
C
C
C
C
C
C*
C
C
C
C
C
C
C
C
C
C*...
C
C
C
C
C
C
C
C
C
C*
C
C
C
..........test 1 ........
MOVEL'1'
*IN..
##F
IFEQ 0
Z-ADD...
##F
CALL 'IP060CLB'
Z-ADD0
##F
Z-ADD30
##RPNT
END
END
..........test 2 ........
MOVEL'1'
*IN..
##F
IFEQ 0
Z-ADD...
##F
CALL 'IP060CLB'
Z-ADD0
##F
Z-ADD30
##RPNT
END
END
..........test 3 ........
MOVEL'1'
*IN..
##F
IFEQ 0
Z-ADD...
##F
CALL 'IP060CLB'
Z-ADD0
##F
Z-ADD30
##RPNT
END
END
##RPNT
Error subfile
Error subfile
Error subfile
Error subfile
Error subfile
Error subfile
IFEQ 30
GOTO $P..ZZ
END
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
107
2.74
C
C
C
C
C
C
C
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
108
2.75
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
109
2.76
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
110
2.77
Program indicators.
In IDDOS interactive programs, indicators must be
used, according to the following rules :
""
""
90 : SFLNXTCHG
91 : PUTOVR
92 : OVERLAY PROTECT
93 : error on READ for display file/ALARM in display
file
95 : Rollup
96 : SFLDSP
97 : SFLCLR
98 : error on call (*PSSR)
99 : HELP
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
111
2.78
Program routines.
The names of subroutines in IDDOS interactive
programs are built using the following conventions :
position 1 = $
position 2 = A-Z
position 3-4 = 0-9
position 5-6 = ZZ (for ENDSR; the first 4 positions
have to be the first 4 positions of the BEGSR name)
Each routine has a different function. The routines
found in interactive programs are :
$Ann Routine, including extra detail instructions to be
executed when a record, which has been
retrieved from the based-on file, must be written
to the subfile.
--> each subfile format
$Bff Routine, used to blank the non-key program fields
for the file with number ff.
--> each data base file, used in the program and
not only used for a filecheck.
$Cnn Post-display command key processing.
--> each format in the program
$Dnn Display navigation routine.
--> each format in the program
$Fff Routine, used to transfer file field contents to the
corresponding program fields.
--> each data base file, if used for input in the
program and not only used for a filecheck.
$I99 General initialization routine (at program start)
--> program level routine
$Inn Routine containing extra detail instructions for
blank subfile records.
--> each subfile format
$Kff Routine, used to transfer program fields to the
corresponding key list fields.
--> each data base file, if keyed access is used in
the program and not only used for a filecheck.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
112
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
113
2.79
Program fields.
The interactive generator uses a set of predefined
program fields. When adding your own program fields,
you must make sure you avoid conflicts.
Program fields, derived from file fields, are built
according to the following rules :
For each file in the program, a set of fields is used,
derived from the file fields.
To build these fields, the move-part of the field
name is concatenated with '#f', where 'f' stands for
the number of the file in the program (1-9,A-Z).
For each keyed file in the program, a KLIST is
defined by the generator. To build the fields in this
keylist, the move-part of the field name is
concatenated with 'ff', where 'ff' stands for the
number of the file in the program (01-35).
Furthermore, a set of program fields is used to execute
particular functions. These program fields start with the
characters '##'.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
114
##ALF A(2)
Normally, a binary field needs 2 or 4 bytes to store
the
information. This rule was not respected in the File
Information Data Structure (binary fields of 1 byte
were used). To access the information contained in
these fields, a conversion routine must be executed.
##ALF is part of the intermediate data structure
used by this routine.
##ALFA A(15)
##ALFA is part of a data structure to convert
packed fields to alfanumeric fields in a range check.
##BIN B(4,0)
Part of the intermediate data structure used to
convert 1-byte binary fields.
##CMDC A(2)
This field is an element from the data structure
##PARM. The last pressed command key can be
placed in this field, to make this information
available to the calling program. In future releases,
a routine can be expected to fill this field
automatically. In that case, the following rules will
be followed: 'KA' = F01, 'KB' = F02,... , 'RU' =
Roll-up, 'RD' = Roll-down,
'EN' = Enter, ...
##CSFL A(10)
Used in the display with RTNCSRLOC keyword,
contains the field name.
##CSPS P(4,0)
Used in the display with RTNCSRLOC keyword,
contains the position in the field.
##CSRC A(10)
Used in the display with RTNCSRLOC keyword,
contains the record name.
##CSRR P(5,0)
Used in the display with SFLCSRRRN keyword,
contains the subfile relative record number.
##CVAL A(15).
This field is an element of the parameter list for the
Execution Environment program IP020RGB, which
is used to check the entered value on the screen
against a value list or a field range.
##CVAL must contain the value to be checked.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
115
##DATI A(6)
This field is an element of the parameter list for the
Execution Environment program IP030RGB, which
is used to check the validity of the date, entered on
the screen. ##DATI must contain the date to be
checked.
##DATO A(6)
This field is an element of the parameter list for the
Execution Environment program IP030RGB, which
is used to check the validity of the date, entered on
the screen. ##DATO will contain the checked date
in the format, determined by the ##FMTO
parameter.
##DBVL A(15)
This field is an element of the parameter listfor the
execution environment program IP020RGB, which
is used to check the entered value on the screen
against a value list or a field range. This field is
intended for future use.
##DDAT DS(6)
This field is the data structure name of one of the
data structures, which is used in the routine $U99 to
reformat dates on screen. The ##DDAT data
structure will contain the dates in DMY format.
##DDCD A(10).
This field is an element of the parameter list for the
Execution Environment program IP020RGB, which
is used to check the entered value on the screen
against a value list or a field range. ##DDCD must
contain the name of the attribute base field for
which the value tables or ranges were defined.
##DDD A(2)
This field is a part of the data structure ##DDAT,
which is used in the routine $U99 to reformat dates
on screen. The ##DDD field will contain the day
part of the dates in DMY format.
##DLnn A(1)
Delete-status for format nn. This is used to make
'delete' the default data base access when data base
accesses are generated
!!! Every update access will be changed to delete.
'0' : the delete-status is OFF
'1' : the delete-status is ON
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
116
##DMM A(2)
This field is a part of the data structure ##DDAT,
which is used in the routine $U99 to reformat dates
on screen. The ##DMM field will contain the month
part of the dates in DMY format.
##DSDF DS(400)
The name of the File Information Data Structure
used for the display file.
##DSff DS(400)
The name of the File Information Data Structure
used for the data base file with number ff.
##DTIC A(10)
This field is used in the parameter lists for date
checking and conversion with century support
(IP031RGB and IP032RGB).
##DTOC A(10)
This field is used in the parameter lists for date
checking and conversion with century support
(IP031RGB and IP032RGB).
##DTSV A(1)
This field is an element from the data structure
##PARM. If the value 'S' was used for the 'date
format on panel' status, the system value
QDATFMT will decide the date format on panels.
If QDATFMT = 'DMY', ##DTSV = 'D'
If QDATFMT = 'MDY', ##DTSV = 'M'
If QDATFMT = 'YMD', ##DTSV = 'Y'
The routine $U99 uses this value to reformat the
date on screen.
##DYY A(2)
This field is a part of the data structure ##DDAT,
which is used in the routine $U99 to reformat dates
on screen. The ##DYY field will contain the year
part of the dates in DMY format.
##EFnn A(1)
The end-of-file status for the based-on file when
when subfile number nn is being loaded.
'N' = *default
'Y' =
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
117
##ENDP A(2)
End-of-program status.
This field decides how to stop the program.
The field is assigned an initial value when the
program is started.
--> 'LR' for a '*PERM' program exit.
--> 'RT' for a '*TEMP' program exit.
--> ' ' for a '*USER' program exit.
##ERNR P(3,0)
This field is an element of the parameter list for the
Execution Environment program IP050RGB, which
is used to bring up the HELP-facilities.
This field contains the number of the error-message,
issued by the program. If HELP was pressed on the
message line (line 24), the second-level screen for
the message will be shown.
##ESnn A(1)
The end-of-subfile status for subfile nn.
'N' = *default
'Y' =
##EXIT A(4)
This field can be used to force the program main
driver to be executed more than once.
The value 'EXIT' is provided automatically to stop
the program after execution of the program main
driver. This value has to be changed to *BLANKS
in the END process point to provide another
execution of the program main driver.
##F P(3,0)
This field contains the error number for the message
to be shown on the panel. This field must be filled
through user process code.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
118
##FLNM A(8)
This field is an element of the parameter list for the
Execution Environment program IP050RGB, which
is used to bring up the ELP-facilities. This field
contains the name of the display file in the program.
This field is also found as an element of the data
structure ##DSDF, the file information data
structure for the splay file. If HELP was pressed,
the field ##FLNM is a utomatically passed to the
HELP circuit.
##FMAT A(8)
This field is used in the parameterlist ##PLFS to
pass the name of the screen to the IDDOS program.
##FMIC A(7)
This field is used in the parameter lists for date
checking and conversion with century support
(IP031RGB and IP032RGB).
##FMOC A(7)
This field is used in the parameter lists for date
checking and conversion with century support
(IP031RGB and IP032RGB).
##FMTI A(1)
This field is an element of the parameter list for the
Execution Environment program IP030RGB, which
is used to check the validity if the date, entered on
the screen. ##FMTI must contain the format of the
date, found in ##DATI.
##FMTO A(1)
This field is an element of the parameter list for the
Execution Environment program IP030RGB, which
is used to check the validity if the date, entered on
the screen. ##FMTO must contain the format of the
date, found in ##DATO.
##FRMT A(8)
This field is an element of the parameter list for the
Execution Environment program IP050RGB, which
is used to bring up the HELP-facilities.
This field contains the name of the display file in the
program. This field is also found as an element of
the data structure #DSDF, the file information data
structure for the display file. HELP waspressed, the
field ##FLNM is automatically passed to the HELP
circuit.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
119
##FSDF Z(5,0)
This field is an element of the data structure
##DSDF, the file information data structure for the
display file. ##FSDF will contain the *STATUS
code for file accesses to the display file.
##FSff Z(5,0)
This field is an element of the data structure ##FSff,
the file information data structure for the data base
file with number ff in the program. ##FSff will
contain the *STATUS code for file accesses on the
data base file with number ff.
##I(50) A(1)
This is an array to contain the settings of the first 50
program-indicators. Initially, this array is filled
with *ALL'0'.
This array will be used to overwrite the contents of
the program indicators after each EXFMT.
##INSL P(1,0)
This field is used to define which instruction format
must be sent. The possible values for this field are
1, 2, 3 and 4, depending upon the number of
available instruction formats for each panel to
display.
If ##INSL = 1, format SnnIL1 will be sent.
If ##INSL = 2, format SnnIL2 will be sent.
If ##INSL = 3, format SnnIL3 will be sent.
If ##INSL = 4, format SnnIL4 will be sent.
IF ##INSL contains any other value, format SnnIL1
will be sent.
##KLff KLIST
This is the key-list name for the file with number ff.
##LINE P(3,0)
This field contains the line position of the cursor in
the CRSLOC keyword in the display file.
##LNNR A(1)
This field is an element from the file information
data structure of the display file. It contains the line
position of the cursor. (1 byte binary information).
This field must be converted to numeric using the
##ALF and ##BIN fields.
##LYNR P(2,0)
This field is used in the parameterlist ##PLFS to get
the first line number of a subfile on the screen when
using the *PROMPT generated by IDDOS.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
120
##MDAT DS(6)
This field is one of the data structures, used in the
routine $U99 to reformat dates on screen. The
##MDAT data structure will contain the dates in
MDY format.
##MDD A(2)
This field is a part of the data structure ##MDAT,
used in the routine $U99 to reformat dates on
screen.
The ##MDD field will contain the day part of the
dates in MDY format.
##MESS A(78)
This field is an element of the parameter list for the
Execution Environment program IP010RGB, which
is used to retrieve the message descriptions.
This field name is also used for the instruction
formats, which removes the need for move
statements.
##MLTU A(6)
This field is an element of the data structure
##PARM. It contains the language code of the user.
##MMM A(2)
This field is a part of the data structure ##MDAT,
used in the routine $U99 to reformat dates on
screen. The ##MMM field will contain the month
part of the dates in MDY format.
##MYY A(2)
This field is a part of the data structure ##MDAT,
used in the routine $U99 to reformat dates on
screen. The ##MMM field will contain the year part
of the dates in MDY format.
##NDSP A(1)
This field is used to decide whether or not to add a
record from the based-on file to the subfile.
'N' : the non-display status is OFF and the record
will be loaded to the subfile
'Y' : the non-display status is ON and the record
will not be loaded to the subfile.
Initially, this value will be set OFF.
The programmer must decide, in the Rnn
routine, if a record from the based-on file
must be loaded to the subfile. If not, the value
must be set to ON in the user code. This value
will be automatically reset to off before the
next execution of the Rnn routine.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
121
##NEW A(1)
This field is used to decide if the OVRDTA
keyword for output fields must be active (indicator
81 on).
'N' : OVRDTA not in effect. Output fields on the
screen remain unchanged.
'Y' : OVRDTA in effect. Changes in output fields on
the screen will be displayed.
Initially, this value will be set to 'Y'.
In that case, output fields will be redisplayed.
If this is not wanted, the programmer must assign,
in the user process code, a value 'N' to this field.
The next EXFMT will not redisplay output fields.
This EXFMT however, will reset the value to 'Y'.
##NPNT P(2,0)
This field is used to determine the starting point in
the format handling routine.
##NSBR P(2,0)
This field is used in the main program driver. It
holds the format number of the format to be
handled.
##OMSC A(30)
This field is an element of the parameter list for the
Execution Environment program IP020RGB, which
is used to check the entered value on the screen
against a value list or a field range.
##OMSC brings the description of the value item
back to the program.
##OPTN A(1)
Option field to enter subfile selections.
Available for each program, containing a subfile.
##OVRL A(1)
Overlay status.
'N' = no overlay
'Y' = EXFMT with overlay
In end-of-format processing (pointer 90), IDDOS
decides if the ##OVRL status must be made
effective. ##OVRL is set to 'Y' if the current format
is specified as the format number to be kept in
overlay when the format, specified in the ##NSBR
field is sent.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
122
##PACK P(15,9)
##PACK is part of a data structure to convert
packed fields to alfanumeric fields in a range check.
##PARM DS(1024)
The data structure to define the compositional
elements for the data area IDPARM.
##PGDS DS(429)
The data structure to define the compositional
elements for the program status data structure.
##PGFL A(8)
This field is an element of the data structure
##PGDS, which is used as the program status data
structure.
The ##PGFL field contains the name of the last data
base file, accessed by the program.
##PGLB A(10)
This field is an element of the data structure
##PGDS, which is used as the program status data
structure.
The ##PGLB field contains the library name, where
the program in execution is stored.
##PGNM A(10)
This field is an element of the data structure
##PGDS, which is used as the program status data
structure. The ##PGNM field contains the name of
the program in execution.
##PGPM Z(3,0)
This field is an element of the data structure
##PGDS, which is used as the program status data
structure. The ##PGPM field contains the number of
parameters, passed to the program.
##PGST Z(5,0)
This field is an element of the data structure
##PGDS, which is used as the program status data
structure.
The ##PGST field contains the program (error)
status.
##PGUS A(10)
This field is an element of the data structure
##PGDS, which is used as the program status data
structure. The ##PGUS field contains the name of
the user executing the program.
##PLCS PLIST
Parameterlist for date checking and conversion with
century support (IP031RGB and IP032RGB).
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
123
##PLDT PLIST
This field is the parameter list name for the
Execution Environment program IP030RGB, which
is used to check date validity.
##PLER PLIST
This field is the parameter list name for the
Execution Environment program IP099CLI, which
is used as the error-handling program.
##PLHT PLIST
This field is the parameter list name for the
Execution Environment program IP250RGB, which
is used to bring up the HELP-facilities.
##PLMS PLIST
This field is the parameter list name for the
Execution Environment program IP010RGB, which
is used to retrieve the error message text.
##PLVR PLIST
This field is the parameter list name for the
Execution Environment program IP020RGB, which
is used to check values and ranges.
##POS P(3,0)
This field contains the column position of the cursor
in the CRSLOC keyword in the display file.
##PPNT P(2,0)
This field contains the previously used pointer
number.
##PREV P(2,0)
This field contains the number of the previously
displayed panel format. This field will be used to
control the PUTOVR/OVRDTA situation.
##PSBR P(2,0)
This field contains the previously used format
number.
##PSNR A(1)
This field is an element from the file information
data structure of the display file. It contains the
column position of the cursor. (1 byte binary
information). This field must be converted to
numeric using the ##ALF and ##BIN fields.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
124
##RAnn A(1)
This field will indicate whether the pointer in the
file must be repositioned (record not available) or
not (record available) before loading a new page in
the subfile after ROLLUP was pressed.
'N' = record is not available
'Y' = record is available necessary when the based
on file of the subfile is a join logical file
##RETN A(6)
This field is an element of the parameter list for the
Execution Environment program IP099CLI, which
is used to handle program-errors. This field returns
the value '*CANCL' or blanks to the calling
program.
##RFDF B(4,0)
This field is an element of the data structure
##DSDF, the file information data structure for the
display file. ##RFDF will contain the subfile record
number for the last accessed subfile.
##RFSV P(4,0)
Field used by IDDOS to save the subfile record
number of the last accessed subfile.
##RFff B(9,0)
This field is an element of the data structure ##DSff,
the file information data structure for data base file
ff. ##RFff will contain the last accessed relative
record number for file ff.
##RHnn P(4,0)
This field contains the highest subfile record
number, loaded into subfile number nn.
##RLnn P(10,0)
This field is contains the relative record number of
the last loaded record in the based-on file for subfile
format nn.
##RNnn P(4,0)
The field used in the KSFILE extension to contain
the record number for subfile format nn.
##RPNT P(2,0)
This field controls the format handling.
This field is used to drive the format handling
routine by executing the processing points one by
one. If changes to this default process must be
made, it must be done by changing the ##RPNT
value.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
125
##RSnn P(4,0)
This field is used for the SFLRCDNBR keyword for
subfile format nn.
##SCnn P(2,0)
Field used to control the display of a particular
format when using multiple screen fixed formats.
##SC99 P(2,0)
Field used to control the display of a particular
format when using multiple screen fixed formats.
##SFLL P(4,0)
Subfile loading status
##SFnn P(2,0)
Subfile Size
##SMnn P(2,0)
Subfile Multiplier
##STnn A(1)
Subfile loading stop status
'Y' = the subfile will contain only records from the
based-on file. Loading of the subfile will be
stopped when the based-on file reaches end-of-file.
'N' = when the based-on file reaches end-of-file,
blank records will be added to the subfile.
##SWES A(1)
Switch used by IDDOS to control end of subfile
indication. Can be used for other purposes by the
developer.
##SWPR A(1)
This field will determine whether the *PROMPT
function will be executed or not.
'N' = *PROMPT function will not be executed
'Y' = *PROMPT function will be executed
The value of the field ##SWPR can only be set to
'N' in user code. IDDOS will automatically reset
this to 'Y', the default value.
##SWVR A(1)
This field is an element of the parameter list for the
Execution Environment program IP020RGB, which
is used to check the entered value on the screen
against a value list or a field range. ##SWVR is
returned to the calling program.
'N' = incorrect value or range
'Y' = correct value or range
##TFnn P(2,0)
Transfer flag for subfile nn
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
126
##TF99 P(2,0)
General transfer flag.
Used to control multiple subfile select processing
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
127
##TLCD A(1)
This field is an element of the data structure
##PARM. It contains the language code of the
application system.
##TLCU A(1)
This field is an element of the data structure
##PARM. It contains the language code of the user.
##UPRM A(256)
This field is an element of the data structure
##PARM. It contains the user parameter list. This
parameter list can be used or inter program
communication.
##UPnn A(1)
Update-status for format nn. This is used to make
'update' the default data base access when data base
accesses are generated '0' : the update-status is OFF
'1' : the update-status is ON
##WCnn P(3,0)
Field used by IDDOS to control help function and
IDDOS generated prompting in window formats
when the help function isn't implemented through
UIM.
##WLnn P(2,0)
Field containing the start line number for a
windowed format. This field is initialised in the
$I99 routine and can be modified in user coding.
##WPnn P(3,0)
Field containing the start position number for a
windowed format.
This field is initialised in the $I99 routine and can
be modified in user coding.
##YDAT DS(6)
This field is the data structure name of one of the
data structures, used in the routine $U99 to reformat
dates on screen. The ##YDAT data structure will
contain the dates in YMD format.
##YDD A(2)
This field is a part of the data structure ##YDAT,
used in the routine $U99 to reformat dates on
screen. The ##YDD field will contain the day part
of the dates in YMD format.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
128
##YMM A(2)
This field is a part of the data structure ##YDAT,
used in the routine $U99 to reformat dates on
screen. The ##YMM field will contain the month
part of the dates in YMD format.
##YYY A(2)
This field is a part of the data structure ##YDAT,
used in the routine $U99 to reformat dates on
screen. The ##YYY field will contain the year part
of the dates in YMD format.
##XXnn
Field to save the contents of key-field number XX
for the last loaded record in the based-on file for
subfile format nn.
Manual IDDOS 13
RPG02
Interactive Program: Detail Description
129