filmov
tv
Coding in RPG (IBM i/AS400). Checking if a record exists in embedded SQL.

Показать описание
In this video, I explore two different ways to check if a record exists in SQL when working with embedded SQL in RPG on IBMi! 🛠️
If you need to verify whether a record is present before updating or inserting data, this video is for you. I’ll show you how to do it using WHERE EXISTS (with two different ways) and COUNT, explaining the pros and cons of each method.
No matter your experience level with SQL on IBMi, this will help you write cleaner and more efficient queries!
Do you have any other better method ?? please share!
Enjoy!
#IBMi #IBM #RPGLE #RPG #SQLRPGLE #RPGProgramming #IBMiDevelopment #AS400 #Codefori #VSCode #COMMON #ibmchampion
0:00 Introduction
0:31 Let's see the content of the table that we are going to work with, using DB2 for i
1:07 Creating a new SQLRPGLE source for the example using Code for i
2:01 First method: using WHERE EXISTS.
5:00 Checking how it works
6:04 First method: using WHERE EXISTS (version two).
6:46 Checking how it works
7:25 Second method: using COUNT.
8:40 Checking how it works
9:15 Final thoughts and wrap-up
If you need to verify whether a record is present before updating or inserting data, this video is for you. I’ll show you how to do it using WHERE EXISTS (with two different ways) and COUNT, explaining the pros and cons of each method.
No matter your experience level with SQL on IBMi, this will help you write cleaner and more efficient queries!
Do you have any other better method ?? please share!
Enjoy!
#IBMi #IBM #RPGLE #RPG #SQLRPGLE #RPGProgramming #IBMiDevelopment #AS400 #Codefori #VSCode #COMMON #ibmchampion
0:00 Introduction
0:31 Let's see the content of the table that we are going to work with, using DB2 for i
1:07 Creating a new SQLRPGLE source for the example using Code for i
2:01 First method: using WHERE EXISTS.
5:00 Checking how it works
6:04 First method: using WHERE EXISTS (version two).
6:46 Checking how it works
7:25 Second method: using COUNT.
8:40 Checking how it works
9:15 Final thoughts and wrap-up
Coding in RPG (IBM i/AS400). Templates.
Coding in RPG (IBM i/AS400). Activation Groups.
Coding in RPG (IBM i/AS400). Testing IBM i Notebooks in vscode, using RPG(AS/400)
Coding in RPG (IBM i/AS400). Comparing occurs with other structures
Coding in RPG (IBM i/AS400). Recursion in subprocedures.
Coding in RPG (IBM i/AS400). Using ON-EXIT.
Coding in RPG (IBM i/AS400). Converting file operations in RPG to embedded SQL operations in RPG.
Coding in RPG (IBM i/AS400). Using pointers.
Coding in RPG (IBM i/AS400). Using SELECT to update data
Coding in RPG (IBM i/AS400). Overloading procedures.
Coding in RPG (IBM i/AS400). Using FOR-EACH
Coding in RPG (IBM i/AS400). Creating a service program.
Coding in RPG (IBM i/AS400). Creating IFS files using RPG and SQL
Coding in RPG (IBM i/AS400). Using Data Structures.
Coding in RPG (IBM i/AS400). Using a varying dimension array as a subprocedure parameter.
Coding in RPG (IBM i/AS400). New RPG functions: using EXPROPTS.
Coding in RPG (IBM i/AS400). How to use Regular Expressions in RPG.
Coding in RPG (IBM i/AS400). Communicating with a REST SERVER with HTTPAPI
Coding in RPG (IBM i/AS400). Calling RPG procedures from a CL program.
Coding in RPG (IBM i/AS400), Embedded SQL
Coding in RPG (IBM i/AS400). Using WHEN-IS and WHEN-IN
Coding in RPG (IBM i/AS400). Using the 'static' keyword.
Coding in RPG (IBM i/AS400). Using physical files with members with SQL
Coding in RPG (IBM i/AS400). Using BLOB SQL fields in RPG to store and retrieve data.
Комментарии