SlideShare a Scribd company logo
1 of 2
 %PARMS (Return Number of Parameters)
%PARMS returns the number of parameters that were passed to the procedure in which
%PARMS is used. For the main procedure, %PARMS is the same as *PARMS.

Example – I
%PARMS in CALL BY VALUE
Columns . . . :
6 80
Browse
AMITCC/QRPGLESRC
SEU==>
PARM_PGM
FMT D DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++++++++
*************** Beginning of data ************** ******************* ***************
0001.00 DCALL1
PR
0002.00 DPARM1
2 0 VALUE
0003.00 DPARM2
2 0 VALUE
0004.00 DPARM_COUNT
S
2 0 INZ(*ZEROS)
0005.00 C
CALLP
CALL 1(11:22)
0006.00 C
SETON
LR
0007.00 PCALL1
B
0008.00 DCALL1
PI
0009.00 DPARM11
2 0 VALUE
0010.00 DPARM22
2 0 VALUE
0011.00 C
EVAL
PARM_COUNT=%PARMS + PARM22+ PARM11
0012.00 C
PARM_COUNT
DSPLY
0013.00 PCALL1
E
****************** End of data ***************************************************

OUTPUT
DSPLY 35

Example – II
%PARMS in CALL BY VALUE
Columns . . . :
6 80
Browse
AMITCC/QRPGLESRC
SEU==>
PARM_PGM2
FMT D DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++++++++
*************** Beginning of data ********************** **************************
0001.00 DCALL1
PR
0002.00 DPARM12 0
0003.00 DPARM2
2 0
0004.00 DPARM_COUNT
S
2 0 INZ(*ZEROS)
0005.00 DP1
S
2 0 INZ(11)
0006.00 DP2
S
2 0 INZ(22)
0007.00
0008.00 C
CALLP
CALL1(P1:P2)
0009.00 C
SETON
LR
0010.00 PCALL1
B
0011.00 DCALL1
PI
0012.00 DPA RM01
2 0
0013.00 DPARM02
2 0
0014.00 C
EVAL
PARM_COUNT=%PARMS + PARM02+ PARM01
0015.00 C
PARM_COUNT
DSPLY
0016.00 PCALL1
E
****************** End of data ********************* *****************************
OUTPUT
DSPLY 35

More Related Content

Viewers also liked

as400 built in function- %REPLACE
as400 built in function- %REPLACEas400 built in function- %REPLACE
as400 built in function- %REPLACEaminem_mp
 
Conferencia Alfonso Rico Rodríguez
Conferencia Alfonso Rico RodríguezConferencia Alfonso Rico Rodríguez
Conferencia Alfonso Rico RodríguezJuan Carreón
 
Introccion a la internet
Introccion a la internetIntroccion a la internet
Introccion a la internetElizabeth Roman
 
whats-your-brand-sound-like_2009_Rollins
whats-your-brand-sound-like_2009_Rollinswhats-your-brand-sound-like_2009_Rollins
whats-your-brand-sound-like_2009_RollinsNita Rollins, Ph.D.
 
Vserv Annual Growth Report - 2014
Vserv Annual Growth Report - 2014Vserv Annual Growth Report - 2014
Vserv Annual Growth Report - 2014Vserv
 
Script presintation
Script presintation Script presintation
Script presintation TomCrook
 
Master Data Management - Our Vision - by Orchestra Networks (portuguese audio)
Master Data Management - Our Vision - by Orchestra Networks (portuguese audio) Master Data Management - Our Vision - by Orchestra Networks (portuguese audio)
Master Data Management - Our Vision - by Orchestra Networks (portuguese audio) Carlos Guerreiro
 
Nsps 2 detalhes do ícone do Perpétuo Socorro - Jozef Grzywacz
Nsps 2 detalhes do ícone do Perpétuo Socorro - Jozef GrzywaczNsps 2 detalhes do ícone do Perpétuo Socorro - Jozef Grzywacz
Nsps 2 detalhes do ícone do Perpétuo Socorro - Jozef GrzywaczPe. José Grzywacz
 
All_Certificates_JoshuaKlynsoon
All_Certificates_JoshuaKlynsoonAll_Certificates_JoshuaKlynsoon
All_Certificates_JoshuaKlynsoonJoshua Klynsoon
 
En el último año más de la mitad de los hogares recibió por mes ingresos me...
En el último año  más de la mitad de los hogares recibió  por mes ingresos me...En el último año  más de la mitad de los hogares recibió  por mes ingresos me...
En el último año más de la mitad de los hogares recibió por mes ingresos me...Eduardo Nelson German
 
Raffaello Maffi Milano 6 maggio
Raffaello Maffi Milano 6 maggioRaffaello Maffi Milano 6 maggio
Raffaello Maffi Milano 6 maggioChantal Ferrari
 

Viewers also liked (16)

as400 built in function- %REPLACE
as400 built in function- %REPLACEas400 built in function- %REPLACE
as400 built in function- %REPLACE
 
Conferencia Alfonso Rico Rodríguez
Conferencia Alfonso Rico RodríguezConferencia Alfonso Rico Rodríguez
Conferencia Alfonso Rico Rodríguez
 
Introccion a la internet
Introccion a la internetIntroccion a la internet
Introccion a la internet
 
whats-your-brand-sound-like_2009_Rollins
whats-your-brand-sound-like_2009_Rollinswhats-your-brand-sound-like_2009_Rollins
whats-your-brand-sound-like_2009_Rollins
 
Vserv Annual Growth Report - 2014
Vserv Annual Growth Report - 2014Vserv Annual Growth Report - 2014
Vserv Annual Growth Report - 2014
 
Script presintation
Script presintation Script presintation
Script presintation
 
Master Data Management - Our Vision - by Orchestra Networks (portuguese audio)
Master Data Management - Our Vision - by Orchestra Networks (portuguese audio) Master Data Management - Our Vision - by Orchestra Networks (portuguese audio)
Master Data Management - Our Vision - by Orchestra Networks (portuguese audio)
 
Hard skills (1)
Hard skills (1)Hard skills (1)
Hard skills (1)
 
SustLeadTeleAgenda11June2015
SustLeadTeleAgenda11June2015SustLeadTeleAgenda11June2015
SustLeadTeleAgenda11June2015
 
Nsps 2 detalhes do ícone do Perpétuo Socorro - Jozef Grzywacz
Nsps 2 detalhes do ícone do Perpétuo Socorro - Jozef GrzywaczNsps 2 detalhes do ícone do Perpétuo Socorro - Jozef Grzywacz
Nsps 2 detalhes do ícone do Perpétuo Socorro - Jozef Grzywacz
 
Documental laaa
Documental laaaDocumental laaa
Documental laaa
 
All_Certificates_JoshuaKlynsoon
All_Certificates_JoshuaKlynsoonAll_Certificates_JoshuaKlynsoon
All_Certificates_JoshuaKlynsoon
 
Thiên An
Thiên AnThiên An
Thiên An
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
 
En el último año más de la mitad de los hogares recibió por mes ingresos me...
En el último año  más de la mitad de los hogares recibió  por mes ingresos me...En el último año  más de la mitad de los hogares recibió  por mes ingresos me...
En el último año más de la mitad de los hogares recibió por mes ingresos me...
 
Raffaello Maffi Milano 6 maggio
Raffaello Maffi Milano 6 maggioRaffaello Maffi Milano 6 maggio
Raffaello Maffi Milano 6 maggio
 

Similar to as400 built in function- %PARMS

Adding Statistical Functionality to the DATA Step with PROC FCMP
Adding Statistical Functionality to the DATA Step with PROC FCMPAdding Statistical Functionality to the DATA Step with PROC FCMP
Adding Statistical Functionality to the DATA Step with PROC FCMPJacques Rioux
 
as400 built in function- %HOURS
as400 built in function- %HOURSas400 built in function- %HOURS
as400 built in function- %HOURSaminem_mp
 
LLVM Backend の紹介
LLVM Backend の紹介LLVM Backend の紹介
LLVM Backend の紹介Akira Maruoka
 
as400 built in function- %MINUTES
as400 built in function- %MINUTESas400 built in function- %MINUTES
as400 built in function- %MINUTESaminem_mp
 
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
 
Instruction1. Please read the two articles. (Kincheloe part 1 &.docx
Instruction1. Please read the two articles. (Kincheloe part 1 &.docxInstruction1. Please read the two articles. (Kincheloe part 1 &.docx
Instruction1. Please read the two articles. (Kincheloe part 1 &.docxcarliotwaycave
 
Tool sdl2pml
Tool sdl2pmlTool sdl2pml
Tool sdl2pmlS56WBV
 
as400 built in function- %INTH
as400 built in function- %INTHas400 built in function- %INTH
as400 built in function- %INTHaminem_mp
 
pt-query-digest は Perl!!
pt-query-digest は Perl!!pt-query-digest は Perl!!
pt-query-digest は Perl!!Takafumi ONAKA
 
Plsql coding conventions
Plsql coding conventionsPlsql coding conventions
Plsql coding conventionsFang Yu
 
Lab Assignment 4 CSE330 Spring 2014 Skeleton Code for ex.docx
 Lab Assignment 4 CSE330 Spring 2014  Skeleton Code for ex.docx Lab Assignment 4 CSE330 Spring 2014  Skeleton Code for ex.docx
Lab Assignment 4 CSE330 Spring 2014 Skeleton Code for ex.docxMARRY7
 
as400 built in function- %DAYS
as400 built in function- %DAYSas400 built in function- %DAYS
as400 built in function- %DAYSaminem_mp
 
More than 12 More things about Oracle Database 12c
More than 12 More things about Oracle Database 12cMore than 12 More things about Oracle Database 12c
More than 12 More things about Oracle Database 12cGuatemala User Group
 
Router Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditionsRouter Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditionsMorteza Mahdilar
 

Similar to as400 built in function- %PARMS (20)

Adding Statistical Functionality to the DATA Step with PROC FCMP
Adding Statistical Functionality to the DATA Step with PROC FCMPAdding Statistical Functionality to the DATA Step with PROC FCMP
Adding Statistical Functionality to the DATA Step with PROC FCMP
 
Gps c
Gps cGps c
Gps c
 
as400 built in function- %HOURS
as400 built in function- %HOURSas400 built in function- %HOURS
as400 built in function- %HOURS
 
Performance
PerformancePerformance
Performance
 
LLVM Backend の紹介
LLVM Backend の紹介LLVM Backend の紹介
LLVM Backend の紹介
 
as400 built in function- %MINUTES
as400 built in function- %MINUTESas400 built in function- %MINUTES
as400 built in function- %MINUTES
 
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
 
Instruction1. Please read the two articles. (Kincheloe part 1 &.docx
Instruction1. Please read the two articles. (Kincheloe part 1 &.docxInstruction1. Please read the two articles. (Kincheloe part 1 &.docx
Instruction1. Please read the two articles. (Kincheloe part 1 &.docx
 
Tool sdl2pml
Tool sdl2pmlTool sdl2pml
Tool sdl2pml
 
sas aeroplan sample
sas aeroplan samplesas aeroplan sample
sas aeroplan sample
 
Worst
WorstWorst
Worst
 
as400 built in function- %INTH
as400 built in function- %INTHas400 built in function- %INTH
as400 built in function- %INTH
 
pt-query-digest は Perl!!
pt-query-digest は Perl!!pt-query-digest は Perl!!
pt-query-digest は Perl!!
 
Plsql coding conventions
Plsql coding conventionsPlsql coding conventions
Plsql coding conventions
 
Time series
Time seriesTime series
Time series
 
Lab Assignment 4 CSE330 Spring 2014 Skeleton Code for ex.docx
 Lab Assignment 4 CSE330 Spring 2014  Skeleton Code for ex.docx Lab Assignment 4 CSE330 Spring 2014  Skeleton Code for ex.docx
Lab Assignment 4 CSE330 Spring 2014 Skeleton Code for ex.docx
 
as400 built in function- %DAYS
as400 built in function- %DAYSas400 built in function- %DAYS
as400 built in function- %DAYS
 
More than 12 More things about Oracle Database 12c
More than 12 More things about Oracle Database 12cMore than 12 More things about Oracle Database 12c
More than 12 More things about Oracle Database 12c
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Router Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditionsRouter Queue Simulation in C++ in MMNN and MM1 conditions
Router Queue Simulation in C++ in MMNN and MM1 conditions
 

More from 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- %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-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- %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- %MSSECONDS
as400 built in function- %MSSECONDSas400 built in function- %MSSECONDS
as400 built in function- %MSSECONDSaminem_mp
 
As400 load all subfile
As400   load all subfileAs400   load all subfile
As400 load all subfileaminem_mp
 
As400 session or device error
As400   session or device errorAs400   session or device error
As400 session or device erroraminem_mp
 
As400 journaling
As400   journalingAs400   journaling
As400 journalingaminem_mp
 

More from aminem_mp (14)

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- %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-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- %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- %MSSECONDS
as400 built in function- %MSSECONDSas400 built in function- %MSSECONDS
as400 built in function- %MSSECONDS
 
As400 load all subfile
As400   load all subfileAs400   load all subfile
As400 load all subfile
 
As400 session or device error
As400   session or device errorAs400   session or device error
As400 session or device error
 
As400 journaling
As400   journalingAs400   journaling
As400 journaling
 

Recently uploaded

History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfadityarao40181
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 

Recently uploaded (20)

History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
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🔝
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Biting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdfBiting mechanism of poisonous snakes.pdf
Biting mechanism of poisonous snakes.pdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 

as400 built in function- %PARMS

  • 1.  %PARMS (Return Number of Parameters) %PARMS returns the number of parameters that were passed to the procedure in which %PARMS is used. For the main procedure, %PARMS is the same as *PARMS. Example – I %PARMS in CALL BY VALUE Columns . . . : 6 80 Browse AMITCC/QRPGLESRC SEU==> PARM_PGM FMT D DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++++++++ *************** Beginning of data ************** ******************* *************** 0001.00 DCALL1 PR 0002.00 DPARM1 2 0 VALUE 0003.00 DPARM2 2 0 VALUE 0004.00 DPARM_COUNT S 2 0 INZ(*ZEROS) 0005.00 C CALLP CALL 1(11:22) 0006.00 C SETON LR 0007.00 PCALL1 B 0008.00 DCALL1 PI 0009.00 DPARM11 2 0 VALUE 0010.00 DPARM22 2 0 VALUE 0011.00 C EVAL PARM_COUNT=%PARMS + PARM22+ PARM11 0012.00 C PARM_COUNT DSPLY 0013.00 PCALL1 E ****************** End of data *************************************************** OUTPUT DSPLY 35 Example – II %PARMS in CALL BY VALUE Columns . . . : 6 80 Browse AMITCC/QRPGLESRC SEU==> PARM_PGM2 FMT D DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++++++++ *************** Beginning of data ********************** ************************** 0001.00 DCALL1 PR 0002.00 DPARM12 0 0003.00 DPARM2 2 0 0004.00 DPARM_COUNT S 2 0 INZ(*ZEROS) 0005.00 DP1 S 2 0 INZ(11) 0006.00 DP2 S 2 0 INZ(22) 0007.00 0008.00 C CALLP CALL1(P1:P2) 0009.00 C SETON LR 0010.00 PCALL1 B 0011.00 DCALL1 PI 0012.00 DPA RM01 2 0 0013.00 DPARM02 2 0 0014.00 C EVAL PARM_COUNT=%PARMS + PARM02+ PARM01 0015.00 C PARM_COUNT DSPLY 0016.00 PCALL1 E ****************** End of data ********************* *****************************