SlideShare a Scribd company logo
Find many more at website: www.go4as400.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.



In this case SFLSIZ should be at-least 1 greater than the SFLPAG.



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.

 Load all subfile Example
Physical file used in the program= MASTER
ORG CODE ACC NUMBER
190
A00000000001
190
A00000000002
190
A00000000004
190
A00000000005
191
A00000000006
191
A00000000007
191
A00000000008
192
A00000000009
192
A00000000010
192
A00000000011
192
A00000000012
******** End of data

CURRENCY OPEN DATE PARTY NUM
EUR
20120605 P00000000001
USD
20120605 P00000000002
EUR
1072012 P00000000004
USD
6072011 P00000000005
USD
9082012 P00000000006
EUR
9082000 P00000000007
USD
9082007 P00000000008
TRY
6092000 P00000000009
INR
1012012 P00000000001
INR
1012022 P00000000012
INR
1012022 P00000000002
********

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

REC STS TIMESTAMP
2
2012-06-05-03.07.34.011000
2
2012-06-05-03.07.49.859000
2
0001-01-01-00.00.00.000000
1
0001-01-01-00.00.00.000000
1
0001-01-01-00.00.00.000000
1
0001-01-01-00.00.00.000000
1
0001-01-01-00.00.00.000000
2
0001-01-01-00.00.00.000000
2
0001-01-01-00.00.00.000001
2
0001-01-01-00.00.00.000021
2
0001-01-01-00.00.00.000011

Display file used in the program= LOAD_DSP
Columns . . . :
1 80Browse
AMIT/QRPGLESRC
SEU==>
LOAD_DSP
FMT DP .....AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions+++++++++++++++++++++++++++
*************** Beginning of data *****************************************************
0001.00
A
DSPSIZ(24 80 *DS3)
0002.00
A
CA03(03 'EXIT')
0003.00
A
R HEADER
0004.00
A
OVERLAY
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

1

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 80Browse
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 thedisplay 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*_____________________________________________

**** To see full example please visit website: www.go4as400.com

0068.00 *- - Don't write to subfile buffer if RRN>9999
0069.00 C
IF
RRN>9999
0070.00 C
LEAVE
0071.00 C
ENDIF
0072.00 C
WRITE
EXPD_SFL
0073.00 C
ENDDO
0074.00 C
ENDSR
0075.00 C*_________________________________________________
0076.00 C*
0077.00 C
DSPSFL
BEGSR
0078.00 C
SETON
5152
0079.00 * - - - Handle session device error if RRN<=0 i.e. no data in the buffer
0080.00 C
IF
RRN<=0
0081.00 C
SETOFF
52
0082.00 C
ENDIF
0083.00 *
0084.00 C
WRITE
HEADER
0085.00 C
WRITE
FOOTER
0086.00 C
EXFMT
EXPD_CTL
0087.00 C
EVAL
S_RECNO=RECNO
0088.00 C
SETOFF
5152
0089.00 C
ENDSR
****************** End of data *****************************************************

OUTPUT
ARUN

DISPLAY THE LOADALL SUBFILE

ORG CODE

ACCOUNT NUMBER
190
190
190
190
191

2/21/13
08:07:59

CURRENCY

A00000000001
A00000000002
A00000000004
A00000000005
A00000000006

EUR
USD
EUR
USD
USD
More...

F3 = EXIT

F12 =PREVIOUS

Find many more at website: www.go4as400.com

More Related Content

Similar to As400 load all subfile

What is in All of Those SSTable Files Not Just the Data One but All the Rest ...
What is in All of Those SSTable Files Not Just the Data One but All the Rest ...What is in All of Those SSTable Files Not Just the Data One but All the Rest ...
What is in All of Those SSTable Files Not Just the Data One but All the Rest ...
DataStax
 
Redo logfile addition in oracle rac 12c
Redo logfile addition in oracle rac 12cRedo logfile addition in oracle rac 12c
Redo logfile addition in oracle rac 12c
Debasish Nayak
 
pstack, truss etc to understand deeper issues in Oracle database
pstack, truss etc to understand deeper issues in Oracle databasepstack, truss etc to understand deeper issues in Oracle database
pstack, truss etc to understand deeper issues in Oracle database
Riyaj Shamsudeen
 
Cassandra Community Webinar August 29th 2013 - In Case Of Emergency, Break Glass
Cassandra Community Webinar August 29th 2013 - In Case Of Emergency, Break GlassCassandra Community Webinar August 29th 2013 - In Case Of Emergency, Break Glass
Cassandra Community Webinar August 29th 2013 - In Case Of Emergency, Break Glass
aaronmorton
 
Cassandra Community Webinar | In Case of Emergency Break Glass
Cassandra Community Webinar | In Case of Emergency Break GlassCassandra Community Webinar | In Case of Emergency Break Glass
Cassandra Community Webinar | In Case of Emergency Break Glass
DataStax
 
[Tdb] vrf 360 cst for tk ver 1.0
[Tdb] vrf 360 cst for tk ver 1.0[Tdb] vrf 360 cst for tk ver 1.0
[Tdb] vrf 360 cst for tk ver 1.0
Haluk TOSUN
 
Xml pres 1
Xml pres 1 Xml pres 1
Xml pres 1
PeterWinstanley1
 
제 6회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 6회 엑셈 수요 세미나 자료 연구컨텐츠팀제 6회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 6회 엑셈 수요 세미나 자료 연구컨텐츠팀
EXEM
 
001 network toi_basics_v1
001 network toi_basics_v1001 network toi_basics_v1
001 network toi_basics_v1
Hisao Tsujimura
 
Debugging Ruby
Debugging RubyDebugging Ruby
Debugging Ruby
Aman Gupta
 
2004 polaris 800 pro xr snowmobile service repair manual
2004 polaris 800 pro xr snowmobile service repair manual2004 polaris 800 pro xr snowmobile service repair manual
2004 polaris 800 pro xr snowmobile service repair manual
fjjfyjsekdmme
 
2004 polaris 800 pro x snowmobile service repair manual
2004 polaris 800 pro x snowmobile service repair manual2004 polaris 800 pro x snowmobile service repair manual
2004 polaris 800 pro x snowmobile service repair manual
fjskemdzaqmme
 
Debugging Ruby Systems
Debugging Ruby SystemsDebugging Ruby Systems
Debugging Ruby Systems
Engine Yard
 
Samsung Android Crash & Performance Analysis
Samsung Android Crash & Performance AnalysisSamsung Android Crash & Performance Analysis
Samsung Android Crash & Performance Analysis
Apteligent
 
PROYECTO VLANS
PROYECTO VLANSPROYECTO VLANS
PROYECTO VLANS
rubendavidsuarez
 
Diseno albanileria confinada.xls
Diseno albanileria confinada.xlsDiseno albanileria confinada.xls
Diseno albanileria confinada.xls
Waldo Ramirez
 
Marketing DC Overivew
Marketing DC OverivewMarketing DC Overivew
Marketing DC OverivewBob Relyea
 
[INSIGHT OUT 2011] A23 database io performance measuring planning(alex)
[INSIGHT OUT 2011] A23 database io performance measuring planning(alex)[INSIGHT OUT 2011] A23 database io performance measuring planning(alex)
[INSIGHT OUT 2011] A23 database io performance measuring planning(alex)Insight Technology, Inc.
 

Similar to As400 load all subfile (20)

What is in All of Those SSTable Files Not Just the Data One but All the Rest ...
What is in All of Those SSTable Files Not Just the Data One but All the Rest ...What is in All of Those SSTable Files Not Just the Data One but All the Rest ...
What is in All of Those SSTable Files Not Just the Data One but All the Rest ...
 
Redo logfile addition in oracle rac 12c
Redo logfile addition in oracle rac 12cRedo logfile addition in oracle rac 12c
Redo logfile addition in oracle rac 12c
 
pstack, truss etc to understand deeper issues in Oracle database
pstack, truss etc to understand deeper issues in Oracle databasepstack, truss etc to understand deeper issues in Oracle database
pstack, truss etc to understand deeper issues in Oracle database
 
Cassandra Community Webinar August 29th 2013 - In Case Of Emergency, Break Glass
Cassandra Community Webinar August 29th 2013 - In Case Of Emergency, Break GlassCassandra Community Webinar August 29th 2013 - In Case Of Emergency, Break Glass
Cassandra Community Webinar August 29th 2013 - In Case Of Emergency, Break Glass
 
Cassandra Community Webinar | In Case of Emergency Break Glass
Cassandra Community Webinar | In Case of Emergency Break GlassCassandra Community Webinar | In Case of Emergency Break Glass
Cassandra Community Webinar | In Case of Emergency Break Glass
 
[Tdb] vrf 360 cst for tk ver 1.0
[Tdb] vrf 360 cst for tk ver 1.0[Tdb] vrf 360 cst for tk ver 1.0
[Tdb] vrf 360 cst for tk ver 1.0
 
Xml pres 1
Xml pres 1 Xml pres 1
Xml pres 1
 
제 6회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 6회 엑셈 수요 세미나 자료 연구컨텐츠팀제 6회 엑셈 수요 세미나 자료 연구컨텐츠팀
제 6회 엑셈 수요 세미나 자료 연구컨텐츠팀
 
001 network toi_basics_v1
001 network toi_basics_v1001 network toi_basics_v1
001 network toi_basics_v1
 
Debugging Ruby
Debugging RubyDebugging Ruby
Debugging Ruby
 
2004 polaris 800 pro xr snowmobile service repair manual
2004 polaris 800 pro xr snowmobile service repair manual2004 polaris 800 pro xr snowmobile service repair manual
2004 polaris 800 pro xr snowmobile service repair manual
 
2004 polaris 800 pro x snowmobile service repair manual
2004 polaris 800 pro x snowmobile service repair manual2004 polaris 800 pro x snowmobile service repair manual
2004 polaris 800 pro x snowmobile service repair manual
 
Debugging Ruby Systems
Debugging Ruby SystemsDebugging Ruby Systems
Debugging Ruby Systems
 
5638
56385638
5638
 
Samsung Android Crash & Performance Analysis
Samsung Android Crash & Performance AnalysisSamsung Android Crash & Performance Analysis
Samsung Android Crash & Performance Analysis
 
Biddeford_7.28.15
Biddeford_7.28.15Biddeford_7.28.15
Biddeford_7.28.15
 
PROYECTO VLANS
PROYECTO VLANSPROYECTO VLANS
PROYECTO VLANS
 
Diseno albanileria confinada.xls
Diseno albanileria confinada.xlsDiseno albanileria confinada.xls
Diseno albanileria confinada.xls
 
Marketing DC Overivew
Marketing DC OverivewMarketing DC Overivew
Marketing DC Overivew
 
[INSIGHT OUT 2011] A23 database io performance measuring planning(alex)
[INSIGHT OUT 2011] A23 database io performance measuring planning(alex)[INSIGHT OUT 2011] A23 database io performance measuring planning(alex)
[INSIGHT OUT 2011] A23 database io performance measuring planning(alex)
 

More from aminem_mp

as400 built in function- %YEARS
as400 built in function- %YEARSas400 built in function- %YEARS
as400 built in function- %YEARS
aminem_mp
 
as400 built in function- %TIMESTAMP
as400 built in function- %TIMESTAMPas400 built in function- %TIMESTAMP
as400 built in function- %TIMESTAMP
aminem_mp
 
as400 built in function- %STATUS
as400 built in function- %STATUSas400 built in function- %STATUS
as400 built in function- %STATUS
aminem_mp
 
as400 built in function- %SIZE
as400 built in function- %SIZEas400 built in function- %SIZE
as400 built in function- %SIZE
aminem_mp
 
as400 built in function- %SECONDS
as400 built in function- %SECONDSas400 built in function- %SECONDS
as400 built in function- %SECONDS
aminem_mp
 
as400 built in function- %SCAN
as400 built in function- %SCANas400 built in function- %SCAN
as400 built in function- %SCAN
aminem_mp
 
as400 built in function- %REPLACE
as400 built in function- %REPLACEas400 built in function- %REPLACE
as400 built in function- %REPLACE
aminem_mp
 
as400 built in function- %PARMS
as400 built in function- %PARMSas400 built in function- %PARMS
as400 built in function- %PARMS
aminem_mp
 
as400 built in function- %OPEN
as400 built in function- %OPENas400 built in function- %OPEN
as400 built in function- %OPEN
aminem_mp
 
as400 built in function- %MONTHS
as400 built in function- %MONTHSas400 built in function- %MONTHS
as400 built in function- %MONTHS
aminem_mp
 
as400 built in function- %MINUTES
as400 built in function- %MINUTESas400 built in function- %MINUTES
as400 built in function- %MINUTES
aminem_mp
 
as400 built in function- %INTH
as400 built in function- %INTHas400 built in function- %INTH
as400 built in function- %INTH
aminem_mp
 
as400 built in function-list
as400 built in function-listas400 built in function-list
as400 built in function-list
aminem_mp
 
as400 built in function- %ELEM
as400 built in function- %ELEMas400 built in function- %ELEM
as400 built in function- %ELEM
aminem_mp
 
as400 built in function- %DIFF
as400 built in function- %DIFFas400 built in function- %DIFF
as400 built in function- %DIFF
aminem_mp
 
as400 built in function- %DAYS
as400 built in function- %DAYSas400 built in function- %DAYS
as400 built in function- %DAYS
aminem_mp
 
as400 built in function- %CHAR
as400 built in function- %CHARas400 built in function- %CHAR
as400 built in function- %CHAR
aminem_mp
 
as400 built in function- %ABS
as400 built in function- %ABSas400 built in function- %ABS
as400 built in function- %ABS
aminem_mp
 
as400 built in function- %HOURS
as400 built in function- %HOURSas400 built in function- %HOURS
as400 built in function- %HOURS
aminem_mp
 
as400 built in function- %MSSECONDS
as400 built in function- %MSSECONDSas400 built in function- %MSSECONDS
as400 built in function- %MSSECONDS
aminem_mp
 

More from aminem_mp (20)

as400 built in function- %YEARS
as400 built in function- %YEARSas400 built in function- %YEARS
as400 built in function- %YEARS
 
as400 built in function- %TIMESTAMP
as400 built in function- %TIMESTAMPas400 built in function- %TIMESTAMP
as400 built in function- %TIMESTAMP
 
as400 built in function- %STATUS
as400 built in function- %STATUSas400 built in function- %STATUS
as400 built in function- %STATUS
 
as400 built in function- %SIZE
as400 built in function- %SIZEas400 built in function- %SIZE
as400 built in function- %SIZE
 
as400 built in function- %SECONDS
as400 built in function- %SECONDSas400 built in function- %SECONDS
as400 built in function- %SECONDS
 
as400 built in function- %SCAN
as400 built in function- %SCANas400 built in function- %SCAN
as400 built in function- %SCAN
 
as400 built in function- %REPLACE
as400 built in function- %REPLACEas400 built in function- %REPLACE
as400 built in function- %REPLACE
 
as400 built in function- %PARMS
as400 built in function- %PARMSas400 built in function- %PARMS
as400 built in function- %PARMS
 
as400 built in function- %OPEN
as400 built in function- %OPENas400 built in function- %OPEN
as400 built in function- %OPEN
 
as400 built in function- %MONTHS
as400 built in function- %MONTHSas400 built in function- %MONTHS
as400 built in function- %MONTHS
 
as400 built in function- %MINUTES
as400 built in function- %MINUTESas400 built in function- %MINUTES
as400 built in function- %MINUTES
 
as400 built in function- %INTH
as400 built in function- %INTHas400 built in function- %INTH
as400 built in function- %INTH
 
as400 built in function-list
as400 built in function-listas400 built in function-list
as400 built in function-list
 
as400 built in function- %ELEM
as400 built in function- %ELEMas400 built in function- %ELEM
as400 built in function- %ELEM
 
as400 built in function- %DIFF
as400 built in function- %DIFFas400 built in function- %DIFF
as400 built in function- %DIFF
 
as400 built in function- %DAYS
as400 built in function- %DAYSas400 built in function- %DAYS
as400 built in function- %DAYS
 
as400 built in function- %CHAR
as400 built in function- %CHARas400 built in function- %CHAR
as400 built in function- %CHAR
 
as400 built in function- %ABS
as400 built in function- %ABSas400 built in function- %ABS
as400 built in function- %ABS
 
as400 built in function- %HOURS
as400 built in function- %HOURSas400 built in function- %HOURS
as400 built in function- %HOURS
 
as400 built in function- %MSSECONDS
as400 built in function- %MSSECONDSas400 built in function- %MSSECONDS
as400 built in function- %MSSECONDS
 

Recently uploaded

UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
Thijs Feryn
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Jeffrey Haguewood
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
CatarinaPereira64715
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
Bhaskar Mitra
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
Abida Shariff
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 

Recently uploaded (20)

UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Search and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical FuturesSearch and Society: Reimagining Information Access for Radical Futures
Search and Society: Reimagining Information Access for Radical Futures
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 

As400 load all subfile

  • 1. Find many more at website: www.go4as400.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.  In this case SFLSIZ should be at-least 1 greater than the SFLPAG.  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.  Load all subfile Example Physical file used in the program= MASTER ORG CODE ACC NUMBER 190 A00000000001 190 A00000000002 190 A00000000004 190 A00000000005 191 A00000000006 191 A00000000007 191 A00000000008 192 A00000000009 192 A00000000010 192 A00000000011 192 A00000000012 ******** End of data CURRENCY OPEN DATE PARTY NUM EUR 20120605 P00000000001 USD 20120605 P00000000002 EUR 1072012 P00000000004 USD 6072011 P00000000005 USD 9082012 P00000000006 EUR 9082000 P00000000007 USD 9082007 P00000000008 TRY 6092000 P00000000009 INR 1012012 P00000000001 INR 1012022 P00000000012 INR 1012022 P00000000002 ******** 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 REC STS TIMESTAMP 2 2012-06-05-03.07.34.011000 2 2012-06-05-03.07.49.859000 2 0001-01-01-00.00.00.000000 1 0001-01-01-00.00.00.000000 1 0001-01-01-00.00.00.000000 1 0001-01-01-00.00.00.000000 1 0001-01-01-00.00.00.000000 2 0001-01-01-00.00.00.000000 2 0001-01-01-00.00.00.000001 2 0001-01-01-00.00.00.000021 2 0001-01-01-00.00.00.000011 Display file used in the program= LOAD_DSP Columns . . . : 1 80Browse AMIT/QRPGLESRC SEU==> LOAD_DSP FMT DP .....AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions+++++++++++++++++++++++++++ *************** Beginning of data ***************************************************** 0001.00 A DSPSIZ(24 80 *DS3) 0002.00 A CA03(03 'EXIT') 0003.00 A R HEADER 0004.00 A OVERLAY
  • 2. 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 1 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 80Browse 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
  • 3. 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 thedisplay 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*_____________________________________________ **** To see full example please visit website: www.go4as400.com 0068.00 *- - Don't write to subfile buffer if RRN>9999 0069.00 C IF RRN>9999 0070.00 C LEAVE 0071.00 C ENDIF 0072.00 C WRITE EXPD_SFL 0073.00 C ENDDO 0074.00 C ENDSR 0075.00 C*_________________________________________________ 0076.00 C* 0077.00 C DSPSFL BEGSR 0078.00 C SETON 5152 0079.00 * - - - Handle session device error if RRN<=0 i.e. no data in the buffer 0080.00 C IF RRN<=0 0081.00 C SETOFF 52 0082.00 C ENDIF 0083.00 * 0084.00 C WRITE HEADER 0085.00 C WRITE FOOTER 0086.00 C EXFMT EXPD_CTL 0087.00 C EVAL S_RECNO=RECNO 0088.00 C SETOFF 5152 0089.00 C ENDSR ****************** End of data ***************************************************** OUTPUT
  • 4. ARUN DISPLAY THE LOADALL SUBFILE ORG CODE ACCOUNT NUMBER 190 190 190 190 191 2/21/13 08:07:59 CURRENCY A00000000001 A00000000002 A00000000004 A00000000005 A00000000006 EUR USD EUR USD USD More... F3 = EXIT F12 =PREVIOUS Find many more at website: www.go4as400.com