SlideShare uma empresa Scribd logo
1 de 4
Please visit the website: www.go4as400.com
 Session or device error
Below are the situations which can lead to session or device error:
Incorrect record number in subfile SFLRCDNBR or SFLSIZ field.
In program code, at display(EXFMT) subfile code, check the value of RRN. If is zero and you are making
on the SFLDSP indicator *ON or it is un-conditional and doing display subfile. Then it will give you the
same error.
Trying to show empty subfile.
Field and position in Display file DDS is not correct.
The keywords are not properly organized in Display file DDS.
Trying to write more than 9999 record on the Display file for Load All subfile i.e.
Example
Session or device error while loading more than 9999 records in load-all subfile
Below are the steps to simulate the session or device error situation:

a) First of all write a program to fill the PF with records more than 9999.
Physical file: REC11000PF
Columns . . . :
1 80
Browse
AMIT/QRPGLESRC
SEU==>REC11000PF
FMT PF .....A..........T.Name++++++RLen++TDpB......Functions+++++++++++++++++++++++++++
*************** Beginning of data ************************************************
0001.00
0002.00
A
R REC
0003.00
A
FLD01
05S 0
0004.00
A
K FLD01
****************** End of data ***************************************************

b) Create a program to fill the physical file REC11000PF with 11000 records
Columns . . . :
6 80Browse AMIT/QRPGLESRC
SEU==>
REC11000
FMT FX FFilename++IPEASF.....L.....A.Device+.Keywords+++++++++++++++++++++++++++++
*************** Beginning of data ****************************************************
0001.00 FREC11000PFUF A E
K DISK
0002.00 DI
S
5 0
0003.00 C
FOR
I=00000 BY 1 TO 11000
Please visit the website: www.go4as400.com
0004.00 C
EVAL
FLD01=I
0005.00 C
WRITE
REC
0006.00 C
ENDFOR
0007.00 C
SETON
LR
0008.00 *
0009.00 *
0010.00 *
****************** End of data *******************************************************

c) Create a display file to demonstrate the session or device error
Columns . . . :
1 80Browse
AMIT/QRPGLESRC
SEU==>
REC9999DSP
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 RECSFL
SFL
0004.00
A
S_FLD01
5 0B 07 20
0005.00
A
R RECCTL
SFLCTL(RECSFL)
0006.00
A
SFLPAG(15)
0007.00
A
SFLSIZ(9999)
0008.00
A 40
SFLCLR
0009.00
A 41
SFLDSP
0010.00
A 42
SFLDSPCTL
0011.00
A 45
SFLEND(*MORE)
0012.00
A
RCDNBR
4S 0H
SFLRCDNBR(CURSOR)
0013.00
A
01 25'TEST TO CHECK THE BUFFER OVERFLOW'
0014.00
A
05 20'FLD01'
0015.00
A
DSPATR(HI)
****************** End of data **************************************************

d) Create the below Program to demonstrate the session or device error
Columns . . . :
6 80Browse
AMIT/QRPGLESRC
SEU==>
REC9999RPG
FMT FX FFilename++IPEASF.....L.....A.Device+.Keywords+++++++++++++++++++++++++++++
*************** Beginning of data ****************************************************
0001.00 FREC11000PFUF A E
K DISK
0002.00 FREC9999DSPCF
E
WORKSTN SFILE(RECSFL:RRN)
0003.00 DI
S
5 0
0004.00 DRRN
S
5 0
0005.00 C
EVAL
RCDNBR=9999
0006.00 C
DOW
*IN03=*OFF
0007.00 C
03
LEAVE
0008.00 C
EXSR
CLRSFL
0009.00 C
EXSR
FILSFL
0010.00 C
EXSR
DSPSFL
0011.00 C
ENDDO
0012.00 C
SETON
LR
0013.00 *
0014.00 C
CLRSFL
BEGSR
0015.00 C
SETON
40
0016.00 C
WRITE
RECCTL
0017.00 C
SETOFF
40
0018.00 C
ENDSR
0019.00 *
0020.00 C
FILSFL
BEGSR
Please visit the website: www.go4as400.com
0021.00 C
FOR
I=0001 BY 1 TO 9999
0022.00 C
EVAL
RRN=RRN+1
0023.00 C
EVAL
S_FLD01=I
0024.00 C
WRITE
RECSFL
0025.00 C
ENDFOR
0026.00 C
ENDSR
0027.00 *
0028.00 C
DSPSFL
BEGSR
0029.00 C
SETON
4142
0030.00 C
EXFMT
RECCTL
0031.00 C
SETOFF
4142
0032.00 C
ENDSR
****************** End of data *******************************************************

OUTPUT
First loop of the program leads to below output.
TEST TO CHECK THE BUFFER OVERFLOW

FLD01
9991
9992
9993
9994
9995
9996
9997
9998
9999
More...

Now we press Enter and the DOW LOOP runs second time to produce Session or device error.
Because the 2nd time value of RRN starts from 9999 as an initial value and when incremented
by 1 leads to the below error.
Display Program Messages
Session or device error occurred in file REC9999DSP (C G D F).
Please visit the website: www.go4as400.com
Type reply, press Enter.
Reply . . ._________________________________________________
_______________________________________________________________
F3=Exit

F12=Cancel

Mais conteúdo relacionado

Mais procurados

Apostila volumetria de oxirredução
Apostila volumetria de oxirreduçãoApostila volumetria de oxirredução
Apostila volumetria de oxirreduçãoGraziela Leal
 
75755565 relatorio-8-determinacao-do-ferro-numa-agua-natural-por-espectrofoto...
75755565 relatorio-8-determinacao-do-ferro-numa-agua-natural-por-espectrofoto...75755565 relatorio-8-determinacao-do-ferro-numa-agua-natural-por-espectrofoto...
75755565 relatorio-8-determinacao-do-ferro-numa-agua-natural-por-espectrofoto...AlaydeSimedo
 
Análise gravimétrica
Análise gravimétricaAnálise gravimétrica
Análise gravimétricaMaria Teixiera
 
Lista - fenômenos de superfície
Lista - fenômenos de superfícieLista - fenômenos de superfície
Lista - fenômenos de superfícieMárcio Martins
 
Capitulo 5 oxidação e redução
Capitulo 5 oxidação e reduçãoCapitulo 5 oxidação e redução
Capitulo 5 oxidação e reduçãoFlavio Cardoso Reis
 
Química inorgânica não tão concisa j.d. lee
Química inorgânica não tão concisa   j.d. leeQuímica inorgânica não tão concisa   j.d. lee
Química inorgânica não tão concisa j.d. leeRê Magna
 
Relatório - Volumetria de Complexação: determinação de dureza da água.
Relatório - Volumetria de Complexação: determinação de dureza da água.Relatório - Volumetria de Complexação: determinação de dureza da água.
Relatório - Volumetria de Complexação: determinação de dureza da água.Dhion Meyg Fernandes
 
45715687 aplikasi-senyawa-kompleks
45715687 aplikasi-senyawa-kompleks45715687 aplikasi-senyawa-kompleks
45715687 aplikasi-senyawa-kompleksandragrup01
 
Padronização de HCl e teor de NaOH
Padronização de HCl e teor de NaOHPadronização de HCl e teor de NaOH
Padronização de HCl e teor de NaOHRodrigo Henrique
 
Aula 18 teoria da ligacao de valencia
Aula 18   teoria da ligacao de valenciaAula 18   teoria da ligacao de valencia
Aula 18 teoria da ligacao de valenciaTaline Cunha
 
Relatório experimento 11 e 12 - volumetria de neutralização.docx
Relatório experimento 11 e 12 - volumetria de neutralização.docxRelatório experimento 11 e 12 - volumetria de neutralização.docx
Relatório experimento 11 e 12 - volumetria de neutralização.docxFernanda Borges de Souza
 
Como decorar a tebela periódica
Como decorar a tebela periódicaComo decorar a tebela periódica
Como decorar a tebela periódicaRicardo Bruno Nunes
 
Um guia para resolver problemas e interpretar espectros em espectrometria de ...
Um guia para resolver problemas e interpretar espectros em espectrometria de ...Um guia para resolver problemas e interpretar espectros em espectrometria de ...
Um guia para resolver problemas e interpretar espectros em espectrometria de ...Evellyn Santos
 
DETERMINAÇÃO DA CONCENTRAÇÃO POR ESPECTOFOTOMETRIA
DETERMINAÇÃO DA CONCENTRAÇÃO POR ESPECTOFOTOMETRIADETERMINAÇÃO DA CONCENTRAÇÃO POR ESPECTOFOTOMETRIA
DETERMINAÇÃO DA CONCENTRAÇÃO POR ESPECTOFOTOMETRIATaline Góes
 

Mais procurados (20)

Mol a unidade da química
Mol a unidade da químicaMol a unidade da química
Mol a unidade da química
 
Apostila volumetria de oxirredução
Apostila volumetria de oxirreduçãoApostila volumetria de oxirredução
Apostila volumetria de oxirredução
 
75755565 relatorio-8-determinacao-do-ferro-numa-agua-natural-por-espectrofoto...
75755565 relatorio-8-determinacao-do-ferro-numa-agua-natural-por-espectrofoto...75755565 relatorio-8-determinacao-do-ferro-numa-agua-natural-por-espectrofoto...
75755565 relatorio-8-determinacao-do-ferro-numa-agua-natural-por-espectrofoto...
 
Análise gravimétrica
Análise gravimétricaAnálise gravimétrica
Análise gravimétrica
 
Lista - fenômenos de superfície
Lista - fenômenos de superfícieLista - fenômenos de superfície
Lista - fenômenos de superfície
 
Determinação de-cloretos
Determinação de-cloretosDeterminação de-cloretos
Determinação de-cloretos
 
Capitulo 5 oxidação e redução
Capitulo 5 oxidação e reduçãoCapitulo 5 oxidação e redução
Capitulo 5 oxidação e redução
 
Analise retrossintetica
Analise  retrossinteticaAnalise  retrossintetica
Analise retrossintetica
 
Química inorgânica não tão concisa j.d. lee
Química inorgânica não tão concisa   j.d. leeQuímica inorgânica não tão concisa   j.d. lee
Química inorgânica não tão concisa j.d. lee
 
Relatório - Volumetria de Complexação: determinação de dureza da água.
Relatório - Volumetria de Complexação: determinação de dureza da água.Relatório - Volumetria de Complexação: determinação de dureza da água.
Relatório - Volumetria de Complexação: determinação de dureza da água.
 
Volumetria de neutralizacao
Volumetria de neutralizacaoVolumetria de neutralizacao
Volumetria de neutralizacao
 
Condutometria relatorio
Condutometria   relatorioCondutometria   relatorio
Condutometria relatorio
 
45715687 aplikasi-senyawa-kompleks
45715687 aplikasi-senyawa-kompleks45715687 aplikasi-senyawa-kompleks
45715687 aplikasi-senyawa-kompleks
 
Padronização de HCl e teor de NaOH
Padronização de HCl e teor de NaOHPadronização de HCl e teor de NaOH
Padronização de HCl e teor de NaOH
 
Aula 18 teoria da ligacao de valencia
Aula 18   teoria da ligacao de valenciaAula 18   teoria da ligacao de valencia
Aula 18 teoria da ligacao de valencia
 
Relatório experimento 11 e 12 - volumetria de neutralização.docx
Relatório experimento 11 e 12 - volumetria de neutralização.docxRelatório experimento 11 e 12 - volumetria de neutralização.docx
Relatório experimento 11 e 12 - volumetria de neutralização.docx
 
Como decorar a tebela periódica
Como decorar a tebela periódicaComo decorar a tebela periódica
Como decorar a tebela periódica
 
Um guia para resolver problemas e interpretar espectros em espectrometria de ...
Um guia para resolver problemas e interpretar espectros em espectrometria de ...Um guia para resolver problemas e interpretar espectros em espectrometria de ...
Um guia para resolver problemas e interpretar espectros em espectrometria de ...
 
Calorimetro de baixo custo
Calorimetro de baixo custoCalorimetro de baixo custo
Calorimetro de baixo custo
 
DETERMINAÇÃO DA CONCENTRAÇÃO POR ESPECTOFOTOMETRIA
DETERMINAÇÃO DA CONCENTRAÇÃO POR ESPECTOFOTOMETRIADETERMINAÇÃO DA CONCENTRAÇÃO POR ESPECTOFOTOMETRIA
DETERMINAÇÃO DA CONCENTRAÇÃO POR ESPECTOFOTOMETRIA
 

Destaque

As400 load all subfile
As400   load all subfileAs400   load all subfile
As400 load all subfileaminem_mp
 
The emergence of the collaborative economy
The emergence of the collaborative economyThe emergence of the collaborative economy
The emergence of the collaborative economyBruno Borras
 
As400 journaling
As400   journalingAs400   journaling
As400 journalingaminem_mp
 
Modulo 4 adriana cabrera
Modulo 4 adriana cabreraModulo 4 adriana cabrera
Modulo 4 adriana cabreraadricabrera
 
E 4 d1 slope-int form mh
E 4 d1 slope-int form mhE 4 d1 slope-int form mh
E 4 d1 slope-int form mhjbianco9910
 
Prácticas tics en matemática
Prácticas tics en matemáticaPrácticas tics en matemática
Prácticas tics en matemáticamarialidiagon
 
Camilacartagena8b 130625102245-phpapp01
Camilacartagena8b 130625102245-phpapp01Camilacartagena8b 130625102245-phpapp01
Camilacartagena8b 130625102245-phpapp01KarlaEnriquez11
 
Ensayosimcenatcinned8n3blogger 131007123536-phpapp02
Ensayosimcenatcinned8n3blogger 131007123536-phpapp02Ensayosimcenatcinned8n3blogger 131007123536-phpapp02
Ensayosimcenatcinned8n3blogger 131007123536-phpapp02Valentina Leiva
 
Eupv godella (1)
Eupv godella (1)Eupv godella (1)
Eupv godella (1)anagogar
 
Facticidad y validez
Facticidad y validezFacticidad y validez
Facticidad y validezYaeliDohe
 
M.a.s péndulo elástico
M.a.s péndulo elásticoM.a.s péndulo elástico
M.a.s péndulo elásticopanickdiego
 
Lecture 1 module 1 - radar
Lecture 1   module 1 - radarLecture 1   module 1 - radar
Lecture 1 module 1 - radarArnab Sarkar
 
Psych 215 research report
Psych 215 research reportPsych 215 research report
Psych 215 research reportNicole Long
 

Destaque (20)

As400 load all subfile
As400   load all subfileAs400   load all subfile
As400 load all subfile
 
The emergence of the collaborative economy
The emergence of the collaborative economyThe emergence of the collaborative economy
The emergence of the collaborative economy
 
Oriflame consultant in india
Oriflame consultant in indiaOriflame consultant in india
Oriflame consultant in india
 
As400 journaling
As400   journalingAs400   journaling
As400 journaling
 
De Olho no Público Feminino
De Olho no Público FemininoDe Olho no Público Feminino
De Olho no Público Feminino
 
Modulo 4 adriana cabrera
Modulo 4 adriana cabreraModulo 4 adriana cabrera
Modulo 4 adriana cabrera
 
E 4 d1 slope-int form mh
E 4 d1 slope-int form mhE 4 d1 slope-int form mh
E 4 d1 slope-int form mh
 
Prácticas tics en matemática
Prácticas tics en matemáticaPrácticas tics en matemática
Prácticas tics en matemática
 
Agricultura y alimentación
Agricultura y alimentaciónAgricultura y alimentación
Agricultura y alimentación
 
Camilacartagena8b 130625102245-phpapp01
Camilacartagena8b 130625102245-phpapp01Camilacartagena8b 130625102245-phpapp01
Camilacartagena8b 130625102245-phpapp01
 
SC-006-O-M-NR-2007
SC-006-O-M-NR-2007SC-006-O-M-NR-2007
SC-006-O-M-NR-2007
 
Ensayosimcenatcinned8n3blogger 131007123536-phpapp02
Ensayosimcenatcinned8n3blogger 131007123536-phpapp02Ensayosimcenatcinned8n3blogger 131007123536-phpapp02
Ensayosimcenatcinned8n3blogger 131007123536-phpapp02
 
Hoja de producto canepro
Hoja de producto  caneproHoja de producto  canepro
Hoja de producto canepro
 
Ensayo3 131012215851-phpapp01
Ensayo3 131012215851-phpapp01Ensayo3 131012215851-phpapp01
Ensayo3 131012215851-phpapp01
 
Eupv godella (1)
Eupv godella (1)Eupv godella (1)
Eupv godella (1)
 
Facticidad y validez
Facticidad y validezFacticidad y validez
Facticidad y validez
 
M.a.s péndulo elástico
M.a.s péndulo elásticoM.a.s péndulo elástico
M.a.s péndulo elástico
 
Lecture 1 module 1 - radar
Lecture 1   module 1 - radarLecture 1   module 1 - radar
Lecture 1 module 1 - radar
 
Psych 215 research report
Psych 215 research reportPsych 215 research report
Psych 215 research report
 
Buzzient social crm for telecoms
Buzzient social crm for telecomsBuzzient social crm for telecoms
Buzzient social crm for telecoms
 

Semelhante a As400 session or device error

Eff Plsql
Eff PlsqlEff Plsql
Eff Plsqlafa reg
 
Post Exploitation Bliss: Loading Meterpreter on a Factory iPhone, Black Hat U...
Post Exploitation Bliss: Loading Meterpreter on a Factory iPhone, Black Hat U...Post Exploitation Bliss: Loading Meterpreter on a Factory iPhone, Black Hat U...
Post Exploitation Bliss: Loading Meterpreter on a Factory iPhone, Black Hat U...Vincenzo Iozzo
 
The ProblemUsing C programming language write a program that simul.pdf
The ProblemUsing C programming language write a program that simul.pdfThe ProblemUsing C programming language write a program that simul.pdf
The ProblemUsing C programming language write a program that simul.pdffederaleyecare
 
Sangam 2019 - The Latest Features
Sangam 2019 - The Latest FeaturesSangam 2019 - The Latest Features
Sangam 2019 - The Latest FeaturesConnor McDonald
 
Solve the colocation conundrum: Performance and density at scale with Kubernetes
Solve the colocation conundrum: Performance and density at scale with KubernetesSolve the colocation conundrum: Performance and density at scale with Kubernetes
Solve the colocation conundrum: Performance and density at scale with KubernetesNiklas Quarfot Nielsen
 
SAP Batch data communication
SAP Batch data communicationSAP Batch data communication
SAP Batch data communicationJugul Crasta
 
SecZone 2011: Scrubbing SAP clean with SOAP
SecZone 2011: Scrubbing SAP clean with SOAPSecZone 2011: Scrubbing SAP clean with SOAP
SecZone 2011: Scrubbing SAP clean with SOAPChris John Riley
 
Router and switch basics configuration
Router and switch basics configurationRouter and switch basics configuration
Router and switch basics configurationMissangae
 
Performance Tuning Using oratop
Performance Tuning Using oratop Performance Tuning Using oratop
Performance Tuning Using oratop Sandesh Rao
 
Db2 For I Parallel Data Load
Db2 For I Parallel Data LoadDb2 For I Parallel Data Load
Db2 For I Parallel Data LoadThomas Wolfe
 
How to tune a query - ODTUG 2012
How to tune a query - ODTUG 2012How to tune a query - ODTUG 2012
How to tune a query - ODTUG 2012Connor McDonald
 
你所不知道的Oracle后台进程Smon功能
你所不知道的Oracle后台进程Smon功能你所不知道的Oracle后台进程Smon功能
你所不知道的Oracle后台进程Smon功能maclean liu
 
bcc/BPF tools - Strategy, current tools, future challenges
bcc/BPF tools - Strategy, current tools, future challengesbcc/BPF tools - Strategy, current tools, future challenges
bcc/BPF tools - Strategy, current tools, future challengesIO Visor Project
 
Gift-VT Tools Development Overview
Gift-VT Tools Development OverviewGift-VT Tools Development Overview
Gift-VT Tools Development Overviewstn_tkiller
 
04 - I love my OS, he protects me (sometimes, in specific circumstances)
04 - I love my OS, he protects me (sometimes, in specific circumstances)04 - I love my OS, he protects me (sometimes, in specific circumstances)
04 - I love my OS, he protects me (sometimes, in specific circumstances)Alexandre Moneger
 
The ultimate-guide-to-sql
The ultimate-guide-to-sqlThe ultimate-guide-to-sql
The ultimate-guide-to-sqlMcNamaraChiwaye
 
OpenSSL Basic Function Call Flow
OpenSSL Basic Function Call FlowOpenSSL Basic Function Call Flow
OpenSSL Basic Function Call FlowWilliam Lee
 

Semelhante a As400 session or device error (20)

Eff Plsql
Eff PlsqlEff Plsql
Eff Plsql
 
OS_lab_file.pdf
OS_lab_file.pdfOS_lab_file.pdf
OS_lab_file.pdf
 
Post Exploitation Bliss: Loading Meterpreter on a Factory iPhone, Black Hat U...
Post Exploitation Bliss: Loading Meterpreter on a Factory iPhone, Black Hat U...Post Exploitation Bliss: Loading Meterpreter on a Factory iPhone, Black Hat U...
Post Exploitation Bliss: Loading Meterpreter on a Factory iPhone, Black Hat U...
 
The ProblemUsing C programming language write a program that simul.pdf
The ProblemUsing C programming language write a program that simul.pdfThe ProblemUsing C programming language write a program that simul.pdf
The ProblemUsing C programming language write a program that simul.pdf
 
Sangam 2019 - The Latest Features
Sangam 2019 - The Latest FeaturesSangam 2019 - The Latest Features
Sangam 2019 - The Latest Features
 
Solve the colocation conundrum: Performance and density at scale with Kubernetes
Solve the colocation conundrum: Performance and density at scale with KubernetesSolve the colocation conundrum: Performance and density at scale with Kubernetes
Solve the colocation conundrum: Performance and density at scale with Kubernetes
 
SAP Batch data communication
SAP Batch data communicationSAP Batch data communication
SAP Batch data communication
 
SecZone 2011: Scrubbing SAP clean with SOAP
SecZone 2011: Scrubbing SAP clean with SOAPSecZone 2011: Scrubbing SAP clean with SOAP
SecZone 2011: Scrubbing SAP clean with SOAP
 
Router and switch basics configuration
Router and switch basics configurationRouter and switch basics configuration
Router and switch basics configuration
 
Performance Tuning Using oratop
Performance Tuning Using oratop Performance Tuning Using oratop
Performance Tuning Using oratop
 
Db2 For I Parallel Data Load
Db2 For I Parallel Data LoadDb2 For I Parallel Data Load
Db2 For I Parallel Data Load
 
How to tune a query - ODTUG 2012
How to tune a query - ODTUG 2012How to tune a query - ODTUG 2012
How to tune a query - ODTUG 2012
 
你所不知道的Oracle后台进程Smon功能
你所不知道的Oracle后台进程Smon功能你所不知道的Oracle后台进程Smon功能
你所不知道的Oracle后台进程Smon功能
 
bcc/BPF tools - Strategy, current tools, future challenges
bcc/BPF tools - Strategy, current tools, future challengesbcc/BPF tools - Strategy, current tools, future challenges
bcc/BPF tools - Strategy, current tools, future challenges
 
BPF Tools 2017
BPF Tools 2017BPF Tools 2017
BPF Tools 2017
 
Gift-VT Tools Development Overview
Gift-VT Tools Development OverviewGift-VT Tools Development Overview
Gift-VT Tools Development Overview
 
04 - I love my OS, he protects me (sometimes, in specific circumstances)
04 - I love my OS, he protects me (sometimes, in specific circumstances)04 - I love my OS, he protects me (sometimes, in specific circumstances)
04 - I love my OS, he protects me (sometimes, in specific circumstances)
 
The ultimate-guide-to-sql
The ultimate-guide-to-sqlThe ultimate-guide-to-sql
The ultimate-guide-to-sql
 
OpenSSL Basic Function Call Flow
OpenSSL Basic Function Call FlowOpenSSL Basic Function Call Flow
OpenSSL Basic Function Call Flow
 
Readme
ReadmeReadme
Readme
 

Mais de aminem_mp

as400 built in function- %YEARS
as400 built in function- %YEARSas400 built in function- %YEARS
as400 built in function- %YEARSaminem_mp
 
as400 built in function- %TIMESTAMP
as400 built in function- %TIMESTAMPas400 built in function- %TIMESTAMP
as400 built in function- %TIMESTAMPaminem_mp
 
as400 built in function- %STATUS
as400 built in function- %STATUSas400 built in function- %STATUS
as400 built in function- %STATUSaminem_mp
 
as400 built in function- %SIZE
as400 built in function- %SIZEas400 built in function- %SIZE
as400 built in function- %SIZEaminem_mp
 
as400 built in function- %SECONDS
as400 built in function- %SECONDSas400 built in function- %SECONDS
as400 built in function- %SECONDSaminem_mp
 
as400 built in function- %SCAN
as400 built in function- %SCANas400 built in function- %SCAN
as400 built in function- %SCANaminem_mp
 
as400 built in function- %REPLACE
as400 built in function- %REPLACEas400 built in function- %REPLACE
as400 built in function- %REPLACEaminem_mp
 
as400 built in function- %PARMS
as400 built in function- %PARMSas400 built in function- %PARMS
as400 built in function- %PARMSaminem_mp
 
as400 built in function- %OPEN
as400 built in function- %OPENas400 built in function- %OPEN
as400 built in function- %OPENaminem_mp
 
as400 built in function- %MONTHS
as400 built in function- %MONTHSas400 built in function- %MONTHS
as400 built in function- %MONTHSaminem_mp
 
as400 built in function- %MINUTES
as400 built in function- %MINUTESas400 built in function- %MINUTES
as400 built in function- %MINUTESaminem_mp
 
as400 built in function- %INTH
as400 built in function- %INTHas400 built in function- %INTH
as400 built in function- %INTHaminem_mp
 
as400 built in function-list
as400 built in function-listas400 built in function-list
as400 built in function-listaminem_mp
 
as400 built in function- %ELEM
as400 built in function- %ELEMas400 built in function- %ELEM
as400 built in function- %ELEMaminem_mp
 
as400 built in function- %DIFF
as400 built in function- %DIFFas400 built in function- %DIFF
as400 built in function- %DIFFaminem_mp
 
as400 built in function- %DAYS
as400 built in function- %DAYSas400 built in function- %DAYS
as400 built in function- %DAYSaminem_mp
 
as400 built in function- %CHAR
as400 built in function- %CHARas400 built in function- %CHAR
as400 built in function- %CHARaminem_mp
 
as400 built in function- %ABS
as400 built in function- %ABSas400 built in function- %ABS
as400 built in function- %ABSaminem_mp
 
as400 built in function- %HOURS
as400 built in function- %HOURSas400 built in function- %HOURS
as400 built in function- %HOURSaminem_mp
 
as400 built in function- %MSSECONDS
as400 built in function- %MSSECONDSas400 built in function- %MSSECONDS
as400 built in function- %MSSECONDSaminem_mp
 

Mais de 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
 

Último

4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 

Último (20)

4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 

As400 session or device error

  • 1. Please visit the website: www.go4as400.com  Session or device error Below are the situations which can lead to session or device error: Incorrect record number in subfile SFLRCDNBR or SFLSIZ field. In program code, at display(EXFMT) subfile code, check the value of RRN. If is zero and you are making on the SFLDSP indicator *ON or it is un-conditional and doing display subfile. Then it will give you the same error. Trying to show empty subfile. Field and position in Display file DDS is not correct. The keywords are not properly organized in Display file DDS. Trying to write more than 9999 record on the Display file for Load All subfile i.e. Example Session or device error while loading more than 9999 records in load-all subfile Below are the steps to simulate the session or device error situation: a) First of all write a program to fill the PF with records more than 9999. Physical file: REC11000PF Columns . . . : 1 80 Browse AMIT/QRPGLESRC SEU==>REC11000PF FMT PF .....A..........T.Name++++++RLen++TDpB......Functions+++++++++++++++++++++++++++ *************** Beginning of data ************************************************ 0001.00 0002.00 A R REC 0003.00 A FLD01 05S 0 0004.00 A K FLD01 ****************** End of data *************************************************** b) Create a program to fill the physical file REC11000PF with 11000 records Columns . . . : 6 80Browse AMIT/QRPGLESRC SEU==> REC11000 FMT FX FFilename++IPEASF.....L.....A.Device+.Keywords+++++++++++++++++++++++++++++ *************** Beginning of data **************************************************** 0001.00 FREC11000PFUF A E K DISK 0002.00 DI S 5 0 0003.00 C FOR I=00000 BY 1 TO 11000
  • 2. Please visit the website: www.go4as400.com 0004.00 C EVAL FLD01=I 0005.00 C WRITE REC 0006.00 C ENDFOR 0007.00 C SETON LR 0008.00 * 0009.00 * 0010.00 * ****************** End of data ******************************************************* c) Create a display file to demonstrate the session or device error Columns . . . : 1 80Browse AMIT/QRPGLESRC SEU==> REC9999DSP 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 RECSFL SFL 0004.00 A S_FLD01 5 0B 07 20 0005.00 A R RECCTL SFLCTL(RECSFL) 0006.00 A SFLPAG(15) 0007.00 A SFLSIZ(9999) 0008.00 A 40 SFLCLR 0009.00 A 41 SFLDSP 0010.00 A 42 SFLDSPCTL 0011.00 A 45 SFLEND(*MORE) 0012.00 A RCDNBR 4S 0H SFLRCDNBR(CURSOR) 0013.00 A 01 25'TEST TO CHECK THE BUFFER OVERFLOW' 0014.00 A 05 20'FLD01' 0015.00 A DSPATR(HI) ****************** End of data ************************************************** d) Create the below Program to demonstrate the session or device error Columns . . . : 6 80Browse AMIT/QRPGLESRC SEU==> REC9999RPG FMT FX FFilename++IPEASF.....L.....A.Device+.Keywords+++++++++++++++++++++++++++++ *************** Beginning of data **************************************************** 0001.00 FREC11000PFUF A E K DISK 0002.00 FREC9999DSPCF E WORKSTN SFILE(RECSFL:RRN) 0003.00 DI S 5 0 0004.00 DRRN S 5 0 0005.00 C EVAL RCDNBR=9999 0006.00 C DOW *IN03=*OFF 0007.00 C 03 LEAVE 0008.00 C EXSR CLRSFL 0009.00 C EXSR FILSFL 0010.00 C EXSR DSPSFL 0011.00 C ENDDO 0012.00 C SETON LR 0013.00 * 0014.00 C CLRSFL BEGSR 0015.00 C SETON 40 0016.00 C WRITE RECCTL 0017.00 C SETOFF 40 0018.00 C ENDSR 0019.00 * 0020.00 C FILSFL BEGSR
  • 3. Please visit the website: www.go4as400.com 0021.00 C FOR I=0001 BY 1 TO 9999 0022.00 C EVAL RRN=RRN+1 0023.00 C EVAL S_FLD01=I 0024.00 C WRITE RECSFL 0025.00 C ENDFOR 0026.00 C ENDSR 0027.00 * 0028.00 C DSPSFL BEGSR 0029.00 C SETON 4142 0030.00 C EXFMT RECCTL 0031.00 C SETOFF 4142 0032.00 C ENDSR ****************** End of data ******************************************************* OUTPUT First loop of the program leads to below output. TEST TO CHECK THE BUFFER OVERFLOW FLD01 9991 9992 9993 9994 9995 9996 9997 9998 9999 More... Now we press Enter and the DOW LOOP runs second time to produce Session or device error. Because the 2nd time value of RRN starts from 9999 as an initial value and when incremented by 1 leads to the below error. Display Program Messages Session or device error occurred in file REC9999DSP (C G D F).
  • 4. Please visit the website: www.go4as400.com Type reply, press Enter. Reply . . ._________________________________________________ _______________________________________________________________ F3=Exit F12=Cancel