Can anybody tell me in which scenario we have to use
SQLRPG .(Embeded SQL)....?

Answers were Sorted based on User's Feedback



Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?..

Answer / syam

1. You can select some data from a big Physical File and
Fetch that data
2. You can get Grand Total from a Physical File field
beginning of the RPG program
3. You can serch a value from a PF field

Is This Answer Correct ?    7 Yes 1 No

Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?..

Answer / zhang

use SQLRPG is not a good idea, cause it will make your
system slowdown.
but sometimes we have to use it, such like we need provide
a compound query to custom, they have some searching
condition(they can be input together or only input one of
them), and we don't know which condition will entered, in
this scenario we can't make a logical file for this query,
so we have to use SQL sentence to searching it. we can
compose a complex "WHERE " clause.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More RPG400 Interview Questions

Some times While checking MSGW for object / member / record locks ,I have seen it's locked by itself ...? How it happen and what action we need to perform if job is updating / writing a record....?

6 Answers   HSBC,


How to get only unique records from a file which contains duplicate data using CPYF command ? Example : FILEA has duplicate records and FILEB is a UNIQUE defined.... and I want to get the data from FILEA to FILEB by eliminating all the duplicate records...

2 Answers  


IN RLU what are the record level keyword is used?

5 Answers   iGate, TCS,


I have a RPG program of 100 Lines and first line is to SETON indicator LR. Will the program execute rest of the 99 Lines?

6 Answers  


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

0 Answers   iGate,






Why we need to give File and To file Names While we are using OVRDBF. What is your understanding related to this?

2 Answers   Cap Gemini,


How to add 2 new fields in a file? How many ways are there in as400?

2 Answers  


1. Which Built-In-Function will you use to achieve the following functionality? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2++÷ResultLenDHHiLoEq C QTY IFLT *ZERO C QTY MULT -1 QTY C ENDIF a) %ABS b) %TRIM c) %TRIMS d) %UNS

3 Answers   IBM,


what is the necessary command needed before OPNQRYF and why?

5 Answers  


1.The questions have given an array declaration and move operation then this statement is correct or not?

3 Answers   TCS,


Can someone tell me tell me what is meant by message wait...?

1 Answers  


3 members in databasefile .how to read records from all the members??

6 Answers   CTS,


Categories