Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
com
Load-All Subfile
In Load-All subfile all the records are written to the subfile buffer at once and then the data in the subfile
loaded from the buffer.
If we are writing more records in the subfile buffer than the SFLSIZ declared and SFLSIZ<9999, then the
SFLSIZ is extended to accommodate all records till the size of 9999. 9999 is the buffer limit.
In this case PAGEUP AND PAGEDOWN is taken care by system. SFLPAG should be less than SFLSIZ.
In load-All subfile if we do PAGEDOWN and then press ENTER on the page, by-default ENTER bring the
display screen to the very first page irrespective of the current page number. To avoid this situation, we use
file information data structure to get the current page RRN number and pass it to the SFLRCDNBR hidden
field defined in the display file DDS.
A/C STS
2
3
2
1
2
2
1
2
2
1
2
ENT STS
1
1
2
1
1
1
1
2
1
2
2
VER STS
1
1
1
1
1
1
1
2
1
1
1
AUT STS
1
1
1
1
1
1
1
2
1
1
1
0005.00
A
0006.00
A
0007.00
A
0008.00
A
0009.00
A
0010.00
A
0011.00
A
0012.00
A
0013.00
A
0014.00
A
0015.00
A
0016.00
A
0017.00
A
0018.00
A
R
0019.00
A
0020.00
A
0021.00
A
0022.00
A
0023.00
A
0024.00
A
0025.00
A
0026.00
A
0027.00
A
0028.00
A
R
0029.00
A 56
0030.00
A
0031.00
A
0032.00
A
0033.00
A
R
0034.00
A
0035.00
A 52
0036.00
A 51
0037.00
A 50
0038.00
A 45
0039.00
A
0040.00
A
0041.00
A
0042.00
A
0043.00
A
0044.00
A
****************** End of
3USER
DSPATR(HI)
COLOR(BLU)
1 71DATE
EDTCDE(Y)
DSPATR(HI)
COLOR(BLU)
2 71TIME
DSPATR(HI)
COLOR(BLU)
1 23'DISPLAY THE LOADALL SUBFILE'
DSPATR(HI)
COLOR(BLU)
FOOTER
OVERLAY
7'F3'
DSPATR(RI)
COLOR(WHT)
23 10'= EXIT'
23 26'F12'
DSPATR(HI)
DSPATR(RI)
23 30'=PREVIOUS'
EXPD_SFL
SFL
SFLNXTCHG
S_ORG
3S 0O 8 12
S_ACC
12A O 8 28
S_CCY
3A O 8 49
EXPD_CTL
SFLCTL(EXPD_SFL)
OVERLAY
SFLDSP
SFLDSPCTL
SFLCLR
SFLEND(*MORE)
SFLSIZ(0006)
SFLPAG(0005)
S_RECNO
4S 0H
SFLRCDNBR
6 12'ORG CODE'
6 27'ACCOUNT NUMBER'
6 48'CURRENCY'
data ******************************************************
23
MAIN PROGRAM
Columns . . . :
6 80
Browse
AMIT/QRPGLESRC
SEU==>
LOAD_RPGLE
FMT *
*. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...+... 8
*************** Beginning of data ****************************************************
0001.00
0002.00 HDEBUG(*YES)
0003.00 HOPTION(*NODEBUGIO)
0004.00 *
0005.00 FMASTER
IF
E
K DISK
0006.00
0007.00
0008.00
0009.00
0010.00
0011.00
0012.00
0013.00
0014.00
0015.00
0015.01
0015.02
0015.02
0016.00
0017.00
0018.00
0019.00
0020.00
0021.00
0022.00
0023.00
FLOAD_DSP CF
E
WORKSTN
F
SFILE(EXPD_SFL:RRN)
F
INFDS(infds)
*
Dinfds
DS
DRECNO
378
379I 0
*____________________________________________________________________
*______ In load-All subfile if we do PAGEDOWN and then press ENTER on
*______ the page, by-default ENTER bring the display screen to the very
*______ first page irrespective of the current page number. To avoid
*______ this situation, we use file information data structure to get the
*______ the current page RRN number and pass it to the SFLRCDNBR hidden
*______ field defined in the display file DDS.
*____________________________________________________________________
C
*IN03
DOWEQ
*OFF
C
EXSR
MAIN
C
EXSR
DSPSFL
C
ENDDO
C
SETON
LR
C*
C*_____________________________________________
OUTPUT
ARUN
ORG CODE
190
190
190
190
191
ACCOUNT NUMBER
A00000000001
A00000000002
A00000000004
A00000000005
A00000000006
2/21/13
08:07:59
CURRENCY
EUR
USD
EUR
USD
USD
More...
F3 = EXIT
F12 =PREVIOUS