SlideShare a Scribd company logo
 %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- %REPLACE
aminem_mp
 
Conferencia Alfonso Rico Rodríguez
Conferencia Alfonso Rico RodríguezConferencia Alfonso Rico Rodríguez
Conferencia Alfonso Rico Rodríguez
Juan Carreón
 
Introccion a la internet
Introccion a la internetIntroccion a la internet
Introccion a la internet
Elizabeth 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_Rollins
Nita Rollins, Ph.D.
 
Vserv Annual Growth Report - 2014
Vserv Annual Growth Report - 2014Vserv Annual Growth Report - 2014
Vserv Annual Growth Report - 2014
Vserv
 
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
 
Hard skills (1)
Hard skills (1)Hard skills (1)
Hard skills (1)
Khidirova Shoira
 
SustLeadTeleAgenda11June2015
SustLeadTeleAgenda11June2015SustLeadTeleAgenda11June2015
SustLeadTeleAgenda11June2015
Maya Camou, LEED AP BC&D, MA
 
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
Pe. José Grzywacz
 
Documental laaa
Documental laaaDocumental laaa
Documental laaa
portafoliolala
 
All_Certificates_JoshuaKlynsoon
All_Certificates_JoshuaKlynsoonAll_Certificates_JoshuaKlynsoon
All_Certificates_JoshuaKlynsoon
Joshua Klynsoon
 
Thiên An
Thiên AnThiên An
Thiên An
Connor Kenway
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
Pentaprashanthkumar Prashanth
 
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 maggio
Chantal 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 FCMP
Jacques Rioux
 
Gps c
Gps cGps c
as400 built in function- %HOURS
as400 built in function- %HOURSas400 built in function- %HOURS
as400 built in function- %HOURS
aminem_mp
 
Performance
PerformancePerformance
Performance
Cary Millsap
 
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- %MINUTES
aminem_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 2012
Connor 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 &.docx
carliotwaycave
 
Tool sdl2pml
Tool sdl2pmlTool sdl2pml
Tool sdl2pml
S56WBV
 
sas aeroplan sample
sas aeroplan samplesas aeroplan sample
sas aeroplan sample
Kenneth Miller
 
Worst
WorstWorst
as400 built in function- %INTH
as400 built in function- %INTHas400 built in function- %INTH
as400 built in function- %INTH
aminem_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 conventions
Fang Yu
 
Time series
Time seriesTime 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
MARRY7
 
as400 built in function- %DAYS
as400 built in function- %DAYSas400 built in function- %DAYS
as400 built in function- %DAYS
aminem_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 12c
Guatemala User Group
 
Chapter 2
Chapter 2Chapter 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
Morteza 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- %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- %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-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- %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- %MSSECONDS
as400 built in function- %MSSECONDSas400 built in function- %MSSECONDS
as400 built in function- %MSSECONDS
aminem_mp
 
As400 load all subfile
As400   load all subfileAs400   load all subfile
As400 load all subfile
aminem_mp
 
As400 session or device error
As400   session or device errorAs400   session or device error
As400 session or device error
aminem_mp
 
As400 journaling
As400   journalingAs400   journaling
As400 journaling
aminem_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

คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
สมใจ จันสุกสี
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
Wahiba Chair Training & Consulting
 
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdfIGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
Amin Marwan
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
BoudhayanBhattachari
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
Chevonnese Chevers Whyte, MBA, B.Sc.
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 

Recently uploaded (20)

คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 
How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience How to Create a More Engaging and Human Online Learning Experience
How to Create a More Engaging and Human Online Learning Experience
 
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdfIGCSE Biology Chapter 14- Reproduction in Plants.pdf
IGCSE Biology Chapter 14- Reproduction in Plants.pdf
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
B. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdfB. Ed Syllabus for babasaheb ambedkar education university.pdf
B. Ed Syllabus for babasaheb ambedkar education university.pdf
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Constructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective CommunicationConstructing Your Course Container for Effective Communication
Constructing Your Course Container for Effective Communication
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 

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 ********************* *****************************