SlideShare a Scribd company logo
1 of 1
 %INTH (Convert to Integer Format with Half Adjust)
%INTH is very much similar to %INT except that if the expression is a decimal, float or character
value, half adjust is applied to the value of the expression while converting it to integer type.
Example
Columns . . . :
6 80
Browse
AMITCC/QRPGLESRC
SEU==>
BIN_INTH
FMT D DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++++++++
*************** Beginning of data ****************************************************
0001.00 DA
S
5P 3 INZ(12.348)
130201
0002.00 DB
S
5S 3 INZ(12.555)
130201
0003.00 DC
S
8F
INZ(13.555)
130201
0004.00 DINT1
S
2 0 INZ(*ZEROS)
130201
0005.00 C
EVAL
INT1=%INTH(A)
130201
0006.00 C
INT1
DSPLY
130201
0007.00 C
EVAL
INT1=%INTH(B)
130201
0008.00 C
INT1
DSPLY
130201
0009.00 C
EVAL
INT1=%INTH(C)
130201
0010.00 C
INT1
DSPLY
130201
0011.00 C
SETON
LR
130201
****************** End of data *******************************************************

OUTPUT
12
13
14

More Related Content

Viewers also liked

Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...
Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...
Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...VIVRI
 
Generar Productividad Digital en Negocios 3.0
Generar Productividad Digital en Negocios 3.0Generar Productividad Digital en Negocios 3.0
Generar Productividad Digital en Negocios 3.0Carlos Vargas H.
 
Necesidades educativas especiales
Necesidades educativas especialesNecesidades educativas especiales
Necesidades educativas especialesJosselineCC
 
MSB Certificate
MSB CertificateMSB Certificate
MSB CertificateBrian Ho
 
140 Questions Reviewer in Accounting 1 (Service Concern)
140 Questions Reviewer in Accounting 1 (Service Concern)140 Questions Reviewer in Accounting 1 (Service Concern)
140 Questions Reviewer in Accounting 1 (Service Concern)Arthur Quijano
 
Problemas motores cd.docx
Problemas motores cd.docxProblemas motores cd.docx
Problemas motores cd.docxhebermartelo
 
as400 built in function- %YEARS
as400 built in function- %YEARSas400 built in function- %YEARS
as400 built in function- %YEARSaminem_mp
 
Formato guias 3
Formato guias 3Formato guias 3
Formato guias 3kpl1502
 
Is it wrong to lie
Is it wrong to lieIs it wrong to lie
Is it wrong to lieDaney Weir
 
Participatory Learning Approach (PLA) in Health Education - Workshop
Participatory Learning Approach (PLA) in Health Education - WorkshopParticipatory Learning Approach (PLA) in Health Education - Workshop
Participatory Learning Approach (PLA) in Health Education - WorkshopNiyati Gupta
 
Apostolic succession ++karl6
Apostolic succession ++karl6Apostolic succession ++karl6
Apostolic succession ++karl6St Anthony Church
 

Viewers also liked (13)

Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...
Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...
Tener el peso ideal: ¿en qué momento deja de ser un hábito sano para converti...
 
Generar Productividad Digital en Negocios 3.0
Generar Productividad Digital en Negocios 3.0Generar Productividad Digital en Negocios 3.0
Generar Productividad Digital en Negocios 3.0
 
Necesidades educativas especiales
Necesidades educativas especialesNecesidades educativas especiales
Necesidades educativas especiales
 
MSB Certificate
MSB CertificateMSB Certificate
MSB Certificate
 
Pc 0216 felinos fantásticos
Pc 0216 felinos fantásticosPc 0216 felinos fantásticos
Pc 0216 felinos fantásticos
 
140 Questions Reviewer in Accounting 1 (Service Concern)
140 Questions Reviewer in Accounting 1 (Service Concern)140 Questions Reviewer in Accounting 1 (Service Concern)
140 Questions Reviewer in Accounting 1 (Service Concern)
 
Problemas motores cd.docx
Problemas motores cd.docxProblemas motores cd.docx
Problemas motores cd.docx
 
as400 built in function- %YEARS
as400 built in function- %YEARSas400 built in function- %YEARS
as400 built in function- %YEARS
 
Formato guias 3
Formato guias 3Formato guias 3
Formato guias 3
 
Is it wrong to lie
Is it wrong to lieIs it wrong to lie
Is it wrong to lie
 
Participatory Learning Approach (PLA) in Health Education - Workshop
Participatory Learning Approach (PLA) in Health Education - WorkshopParticipatory Learning Approach (PLA) in Health Education - Workshop
Participatory Learning Approach (PLA) in Health Education - Workshop
 
Case Studies
Case StudiesCase Studies
Case Studies
 
Apostolic succession ++karl6
Apostolic succession ++karl6Apostolic succession ++karl6
Apostolic succession ++karl6
 

Similar to as400 built in function- %INTH

as400 built in function- %DAYS
as400 built in function- %DAYSas400 built in function- %DAYS
as400 built in function- %DAYSaminem_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- %SECONDS
as400 built in function- %SECONDSas400 built in function- %SECONDS
as400 built in function- %SECONDSaminem_mp
 
as400 built in function- %MSSECONDS
as400 built in function- %MSSECONDSas400 built in function- %MSSECONDS
as400 built in function- %MSSECONDSaminem_mp
 
as400 built in function- %REPLACE
as400 built in function- %REPLACEas400 built in function- %REPLACE
as400 built in function- %REPLACEaminem_mp
 
Programming in C Basics
Programming in C BasicsProgramming in C Basics
Programming in C BasicsBharat Kalia
 
IMG1.jpgIMG2.jpgIMG3.jpg2016 6 19 156 Page .docx
IMG1.jpgIMG2.jpgIMG3.jpg2016 6 19   156   Page .docxIMG1.jpgIMG2.jpgIMG3.jpg2016 6 19   156   Page .docx
IMG1.jpgIMG2.jpgIMG3.jpg2016 6 19 156 Page .docxwilcockiris
 
as400 built in function- %PARMS
as400 built in function- %PARMSas400 built in function- %PARMS
as400 built in function- %PARMSaminem_mp
 
guia de referencia para a linguagem do fabricante CCS info_syntax.pdf
guia de referencia para a linguagem do fabricante CCS info_syntax.pdfguia de referencia para a linguagem do fabricante CCS info_syntax.pdf
guia de referencia para a linguagem do fabricante CCS info_syntax.pdfSilvanildoManoeldaSi
 
As400 session or device error
As400   session or device errorAs400   session or device error
As400 session or device erroraminem_mp
 
as400 built in function- %SIZE
as400 built in function- %SIZEas400 built in function- %SIZE
as400 built in function- %SIZEaminem_mp
 
Intro to c programming
Intro to c programmingIntro to c programming
Intro to c programmingPrabhu Govind
 
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 2 of 5 by...
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 2 of 5 by...Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 2 of 5 by...
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 2 of 5 by...ssuserd6b1fd
 

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

as400 built in function- %DAYS
as400 built in function- %DAYSas400 built in function- %DAYS
as400 built in function- %DAYS
 
as400 built in function- %HOURS
as400 built in function- %HOURSas400 built in function- %HOURS
as400 built in function- %HOURS
 
as400 built in function- %SECONDS
as400 built in function- %SECONDSas400 built in function- %SECONDS
as400 built in function- %SECONDS
 
as400 built in function- %MSSECONDS
as400 built in function- %MSSECONDSas400 built in function- %MSSECONDS
as400 built in function- %MSSECONDS
 
as400 built in function- %REPLACE
as400 built in function- %REPLACEas400 built in function- %REPLACE
as400 built in function- %REPLACE
 
C SLIDES PREPARED BY M V B REDDY
C SLIDES PREPARED BY  M V B REDDYC SLIDES PREPARED BY  M V B REDDY
C SLIDES PREPARED BY M V B REDDY
 
C++ programming
C++ programmingC++ programming
C++ programming
 
Cbasic
CbasicCbasic
Cbasic
 
Programming in C Basics
Programming in C BasicsProgramming in C Basics
Programming in C Basics
 
Ponters
PontersPonters
Ponters
 
Ponters
PontersPonters
Ponters
 
IMG1.jpgIMG2.jpgIMG3.jpg2016 6 19 156 Page .docx
IMG1.jpgIMG2.jpgIMG3.jpg2016 6 19   156   Page .docxIMG1.jpgIMG2.jpgIMG3.jpg2016 6 19   156   Page .docx
IMG1.jpgIMG2.jpgIMG3.jpg2016 6 19 156 Page .docx
 
as400 built in function- %PARMS
as400 built in function- %PARMSas400 built in function- %PARMS
as400 built in function- %PARMS
 
guia de referencia para a linguagem do fabricante CCS info_syntax.pdf
guia de referencia para a linguagem do fabricante CCS info_syntax.pdfguia de referencia para a linguagem do fabricante CCS info_syntax.pdf
guia de referencia para a linguagem do fabricante CCS info_syntax.pdf
 
As400 session or device error
As400   session or device errorAs400   session or device error
As400 session or device error
 
as400 built in function- %SIZE
as400 built in function- %SIZEas400 built in function- %SIZE
as400 built in function- %SIZE
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Intro to c programming
Intro to c programmingIntro to c programming
Intro to c programming
 
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 2 of 5 by...
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 2 of 5 by...Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 2 of 5 by...
Notes for C Programming for MCA, BCA, B. Tech CSE, ECE and MSC (CS) 2 of 5 by...
 
CompilersAndLibraries
CompilersAndLibrariesCompilersAndLibraries
CompilersAndLibraries
 

More from aminem_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- %OPEN
as400 built in function- %OPENas400 built in function- %OPEN
as400 built in function- %OPENaminem_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 load all subfile
As400   load all subfileAs400   load all subfile
As400 load all subfileaminem_mp
 
As400 journaling
As400   journalingAs400   journaling
As400 journalingaminem_mp
 

More from aminem_mp (6)

as400 built in function- %SCAN
as400 built in function- %SCANas400 built in function- %SCAN
as400 built in function- %SCAN
 
as400 built in function- %OPEN
as400 built in function- %OPENas400 built in function- %OPEN
as400 built in function- %OPEN
 
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 load all subfile
As400   load all subfileAs400   load all subfile
As400 load all subfile
 
As400 journaling
As400   journalingAs400   journaling
As400 journaling
 

Recently uploaded

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
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
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
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
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
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
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
 

Recently uploaded (20)

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
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
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🔝
 
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
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
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
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).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
 

as400 built in function- %INTH

  • 1.  %INTH (Convert to Integer Format with Half Adjust) %INTH is very much similar to %INT except that if the expression is a decimal, float or character value, half adjust is applied to the value of the expression while converting it to integer type. Example Columns . . . : 6 80 Browse AMITCC/QRPGLESRC SEU==> BIN_INTH FMT D DName+++++++++++ETDsFrom+++To/L+++IDc.Keywords+++++++++++++++++++++++++++++ *************** Beginning of data **************************************************** 0001.00 DA S 5P 3 INZ(12.348) 130201 0002.00 DB S 5S 3 INZ(12.555) 130201 0003.00 DC S 8F INZ(13.555) 130201 0004.00 DINT1 S 2 0 INZ(*ZEROS) 130201 0005.00 C EVAL INT1=%INTH(A) 130201 0006.00 C INT1 DSPLY 130201 0007.00 C EVAL INT1=%INTH(B) 130201 0008.00 C INT1 DSPLY 130201 0009.00 C EVAL INT1=%INTH(C) 130201 0010.00 C INT1 DSPLY 130201 0011.00 C SETON LR 130201 ****************** End of data ******************************************************* OUTPUT 12 13 14