InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 201. |
What Is The Maximum Number Of Subfiles That Can Specified In A Display File ? |
|
Answer» 512 512 |
|
| 202. |
Where Will Control Be Passed After The Execution Of The *pssr Subroutine If The Factor2 Of The Endsr Is Blank ? |
|
Answer» CONTROL will RETURN to the NEXT SEQUENTIAL INSTRUCTION. Control will return to the next sequential instruction. |
|
| 204. |
What Keyword Must Be Used With Protect Keyword ? |
|
Answer» OVERLAY OVERLAY |
|
| 205. |
What Is The Purpose Of Ovrdta And Ovrata Keywords ? |
|
Answer» OVRDTA KEYWORD (field or RECORD LEVEL) can be USED to override the existing data contents of a field or record already on the display. OVRATA keyword (field or record level) can be used to override the existing display attributes of a field or record already on the display. OVRDTA keyword (field or record level) can be used to override the existing data contents of a field or record already on the display. OVRATA keyword (field or record level) can be used to override the existing display attributes of a field or record already on the display. |
|
| 206. |
What Would Be The Effect On The Field Where Reverse Image, Underline And Highlight Display Attributes Are Active ? |
|
Answer» The RESULT is same as if you had SPECIFIED ND. The result is same as if you had specified ND. |
|
| 207. |
What Is The Difference Between *like And *namvar ? |
|
Answer» *LIKE defines the VARIABLES as in database. *LIKE defines the variables as in database. |
|
| 208. |
During Input Operation Which Indicator Position Is Seton If There Is A Record Lock? |
|
Answer» LO INDICATOR POSITION is SETON. LO indicator position is seton. |
|
| 209. |
What Is Xfoot Opcode ? |
|
Answer» Adds all the elements in a NUMERIC ARRAY, and places the sum in the RESULT FIELD. Adds all the elements in a numeric array, and places the sum in the result field. |
|
| 210. |
Can We Define Multi-dimensional Arrays In Rpg ? |
|
Answer» No. No. |
|
| 211. |
What Are The Different Types Of Arrays Available In Rpg ? |
|
Answer» Pre-EXECUTION TIME ARRAY. Pre-execution time array. |
|
| 212. |
Can You Have Multiple Key Lists For A Single File ? |
|
Answer» Yes. Yes. |
|
| 213. |
What Does Opcode Post Do ? |
|
Answer» PUTS INFORMATION in INFDS. Puts information in INFDS. |
|
| 214. |
In Conjunction With Which Statements Can Orxx And Andxx Conditions Be Used ? |
|
Answer» DOUxx, DOWXX, IFxx, and WHxx. DOUxx, DOWxx, IFxx, and WHxx. |
|
| 215. |
What Does Check Opcode Do ? |
|
Answer» The check operation verifies that each CHARACTER in the base STRING (factor 2) is AMONG the ` character indicated in the COMPARATOR string(factor 1). The check operation verifies that each character in the base string (factor 2) is among the ` character indicated in the comparator string(factor 1). |
|
| 216. |
How Can Database Records Be Read Without Lock ? |
|
Answer» PUT 'N' in POSITION 53 of C SPECS. Put 'N' in position 53 of C specs. |
|
| 217. |
What Are The Different Opcodes Available In Rpg For Database Access ? |
|
Answer» READ, CHAIN, WRITE, UPDAT, DELET, SETLL, SETGT, READE, READP, REDPE, OPEN, CLOSE, FORCE, NEXT, UNLCK. READ, CHAIN, WRITE, UPDAT, DELET, SETLL, SETGT, READE, READP, REDPE, OPEN, CLOSE, FORCE, NEXT, UNLCK. |
|
| 218. |
What Is Qcmdexc? |
|
Answer» It is USED to execute a SINGLE CL command within the RPG PROGRAM. It is used to execute a single CL command within the RPG program. |
|
| 219. |
How You Get The Relative Record In A Subfile In Which Cursor Is Located? |
|
Answer» By using the keyword SFLCUSRRN (Subfile cursor RELATIVE RECORD NUMBER). By using the keyword SFLCUSRRN (Subfile cursor relative record number). |
|
| 220. |
How You Will Know Whether You Are In Sfldrop Or Sflfold Mode? |
|
Answer» By using the keyword SFLMODE. |
|
| 221. |
What Is Sflrolval? |
|
Answer» By using this keyword you can tell SYSTEM to roll on of records when the user PRESSES ROLLDOWN KEY (For this you DEFINE a hidden of 4 byte). By using this keyword you can tell system to roll on of records when the user presses ROLLDOWN key (For this you define a hidden of 4 byte). |
|
| 222. |
How You Will Find An Error Which Is Not In The First Page Of The Subfile Without Using Rolldown Key? |
|
Answer» By using keyword SFLRCDNBR. |
|
| 223. |
How Do You Read Changed Records Backward In Subfile? |
|
Answer» NOT POSSIBLE. NOT POSSIBLE. |
|
| 224. |
Why Do We Use Readc? What Is Sflnxtchg? |
|
Answer» READC is to read those RECORDS which have changed in the SUBFILE. If you validate a record in subfile on some condition all the INVALID records can DISPLAY in reverse image. The first which have changed and made valid and released still displaying in reverse image. The records have read EVEN it has not been changed due to SFLNXTCHG. READC is to read those records which have changed in the subfile. If you validate a record in subfile on some condition all the invalid records can display in reverse image. The first which have changed and made valid and released still displaying in reverse image. The records have read even it has not been changed due to SFLNXTCHG. |
|
| 225. |
Can You Display A Empty Subfile? |
|
Answer» YES by USING the KEYWORD SFLINZ and SFLRNA. Yes by using the keyword SFLINZ and SFLRNA. |
|
| 226. |
What Is Sflinz And Sflrna? |
|
Answer» SFLINZ stands for subfile INITIALIZE. It initialized all the CHARACTER field as blanks and NUMERIC fields as zeros. SFLRNA stands for subfile record not active (It means records are there in the subfile but active). SFLINZ stands for subfile initialize. It initialized all the character field as blanks and numeric fields as zeros. SFLRNA stands for subfile record not active (It means records are there in the subfile but active). |
|
| 227. |
What Is Elastic And Non Elastic Subrile? |
|
Answer» When SUBFILE SIZE is greater then subfile page size it is called elastic subfile and when subfile size is equal to subfile page size it is called non-elastic subfile. When subfile size is greater then subfile page size it is called elastic subfile and when subfile size is equal to subfile page size it is called non-elastic subfile. |
|
| 228. |
What Are Dds Required For Subfile? |
|
Answer» SUBFILE DISPLAY (SFLDSP) SUBFILE DISPLAY CONTROL (SFLDSPCTL) SUBFILE CLEAR (SFLCLR) SUBFILE SIZE (SFLSIZE) SUBFILE PAGE (SFLPAGE). SUBFILE DISPLAY (SFLDSP) SUBFILE DISPLAY CONTROL (SFLDSPCTL) SUBFILE CLEAR (SFLCLR) SUBFILE SIZE (SFLSIZE) SUBFILE PAGE (SFLPAGE). |
|
| 229. |
What Are Two Types Of Record Are Used In Subfile? |
|
Answer» SUBFILE RECORD FORMAT and SUBFILE CONTROL RECORD FORMAT. SUBFILE RECORD FORMAT and SUBFILE CONTROL RECORD FORMAT. |
|
| 230. |
What Does Defn Do? |
|
Answer» It is USED to DEFINE a FIELD based on the value specified in FACTOR 1. It is used to define a field based on the value specified in FACTOR 1. |
|
| 231. |
What Is Message File? |
|
Answer» It is file which contain MESSAGES created by the USER through which a user can display own MESSAGE while VALIDATING. It is file which contain messages created by the user through which a user can display own message while validating. |
|
| 232. |
What Are The Different Types Of Arrays? |
|
Answer» Preruntime GETS POPULATED at the time INPUT. RUNTIME gets populated at the time execution.Compile time gets populated at the time of COMPILATION. Preruntime gets populated at the time input. Runtime gets populated at the time execution.Compile time gets populated at the time of compilation. |
|
| 233. |
How Will You Search An Array? |
|
Answer» LOKUP LOKUP |
|
| 234. |
How Will You Find A String Using Pdm? |
|
Answer» By USING FNDSTRPDM. By using FNDSTRPDM. |
|
| 235. |
What Are The Uses Of Factor1, Factor2 And Result Field For The Rpg Operation Code Parm? |
|
Answer» It is add VALUE of FACTOR1 to FACTOR2 or COMPARE the value of FACTOR 2 with FACTOR1. It is add value of FACTOR1 to FACTOR2 or compare the value of FACTOR 2 with FACTOR1. |
|
| 236. |
How Will You Add A Field To Physical File Already Containing Data? |
|
Answer» With CPYF COMMAND and *NOCHK & *DROP With CPYF command and *NOCHK & *DROP |
|
| 237. |
Distinguish Between Terminating A Program Through Seton Lr And Return? |
|
Answer» LR CLOSES all the files used in the PROGRAM and RETURN is used to return the control to the PARENT program. LR closes all the files used in the program and RETURN is used to return the control to the parent program. |
|
| 238. |
How Do Handle File Exception/error? |
|
Answer» *INFDS ,*PSSR DEFINING it in F SPEC *INFDS ,*PSSR defining it in F spec |
|
| 239. |
How Many Files, Printer Files You Can Describe In A Rpg? |
|
Answer» 50 files and 8 printers |
|
| 240. |
What Is Lokup Opcode? |
|
Answer» LOOK’s for a PARTICULAR ELEMENT of an ARRAY Look’s for a particular element of an array |
|
| 241. |
What Is Procedure? |
|
Answer» A procedure is the SET of self-contained HIGH level language statements that can perform a PARTICULAR task and then returns to a caller. A procedure is the set of self-contained high level language statements that can perform a particular task and then returns to a caller. |
|
| 242. |
Mandatory Keywords Of Sub File? |
|
Answer» SFL, SFLCTL, SFLDSP, SFLSIZ, SFLPAG are the mandatory KEY WORDS SFL, SFLCTL, SFLDSP, SFLSIZ, SFLPAG are the mandatory key words |
|
| 243. |
What Are Different Record Spacing Keywords In Rlu ? |
|
Answer» SKIPA, SKIPB, SPACEA & SPACEB. SKIPA, SKIPB, SPACEA & SPACEB. |
|
| 244. |
What Is The Command Used To Invoke Rlu ? |
|
Answer» STRRLU. STRRLU. |
|
| 245. |
What Are The Different Commands Used In Rlu ? |
|
Answer» DR - Define Record, CLC - Change Line for Continuation, CLR - Change Line for Record, SD - Create Sample Data, VF - View Fields, NP - New Page, DC - Define Constants, DF - Define Fields, CF - CENTRE Fields & SP - Space Fields evenly. DR - Define Record, CLC - Change Line for Continuation, CLR - Change Line for Record, SD - Create Sample Data, VF - View Fields, NP - New Page, DC - Define Constants, DF - Define Fields, CF - Centre Fields & SP - Space Fields evenly. |
|
| 246. |
Is Module Executable? |
|
Answer» No You NEED to create an RPG PROG to run the MODULE. No You need to create an RPG prog to run the module. |
|
| 248. |
How Can U Check No Of Records In A File? |
|
Answer» DSPFD DSPFD |
|
| 249. |
How Can See Logical File Based On Which Physical File And Vice Versa |
|
Answer» DSPDBR DSPDBR |
|
| 250. |
Difference Between Sflrcdnbr And Sflnxtchg? |
|
Answer» SFLRCDNBR will GIVE the RRN of the First record displayed on the screen at a GIVEN time. WHENEVER a record is CHANGED on display file. An MDT is set ON. If an indicator is associated with SLFNXTCHG and it is SETON then READC will READ only the changed record. And if the indicator is not associated and it is seton it READC reads all the records from sub-file. SFLRCDNBR will give the RRN of the First record displayed on the screen at a given time. Whenever a record is changed on display file. An MDT is set ON. If an indicator is associated with SLFNXTCHG and it is SETON then READC will read only the changed record. And if the indicator is not associated and it is seton it READC reads all the records from sub-file. |
|