IBM Interview Questions

Best Technical Answers for IBM Interview Questions by IBM Developers, Advanced Technical Questions for Freshers and Experience Persons. Get Free practical tests

1. What Is Rpg?

RPG is a high-level programming language (HLL) for business applications, initials which stand for Report Program Generator.

2. What Is Data Area And How It Is Used In Rpg Program ?

Data area is a type of an object which is used for storing data. It is defined using opcode *NAMVAR. The data is read by "IN" and written by "OUT" opcode.

IBM Certification Training

  • Master Your Craft
  • Lifetime LMS & Faculty Access
  • 24/7 online expert support
  • Real-world & Project Based Learning

 

3. Which Program Rpg Or Cl Is Efficient To Update A Transaction Onto A Database File And Why?

CL program cannot update/write onto a data base file and hence, choice is RPG program.

Subscribe to our youtube channel to get new updates..!

 

4. What Is The Purpose Of Indicators In Rpg?

It is generally used to indicate the result of an operation or to condition (or control) the processing of an operation. Indicators are defined either by an entry on the specification or by the RPG IV program itself. The positions on the specification in which you define an indicator determine how the indicator is used. An indicator that has been defined can then be used to condition calculation and output operations. An indicator can be control level indicator, resulting, record identifying etc.

IBM Certification Training

Weekday / Weekend Batches

 

5. Describe The Function Of Setll Operation In Rpg Language?

The SETLL operation positions a file at the next record with a key or relative record number that is greater than or equal to key or relative record number specified in factor1.

6. What Is The Rpg System?

The RPG System is one of the interactive features of this site; it is a graphical representation of the user's activities and contribution to the site and forums. It is only for show/looks and has no effect of anything what-so-ever.

7. Is This An Rpg Channel?

No. This is a channel for conversation. No one actively role plays in #Vampire, although many do frequent channels that DO role play, the most prominent one being #Vampire Hall. Check them out.

8. What is A 'sim / Rpg'?

A Sim is a simulation. In this case, sort of a writers' collective where a diverse group of people all collaborate on stories set in a common idiom. It is also referred to as a Role-Playing Game (RPG), because of the similarity to games like Dungeons and Dragons, or even Worlds of War craft (technically a MMORPG). However, Borderlands and other similar 'games' have nowhere near the level of structure or rules that true RPG's do.

9. What Is An Online Rpg?

Online RPG connects to a network server. Like former similar RPGs, your character will grow and advance in the world. Players from around the world are united, allowing them to form parties and experience thrill and adventure together.

10. How Can You Display Specific sub file Page on the Screen in Unequal Sub file?

•If CURSOR is specified for the SFLRCDNBR the cursor is placed in the sub file record whose relative record number is identified by the contents of this field.

•SFLRCDNBR (sub file Record Number) - Displays the page of the sub file containing the record whose relative record number is in this field.

11. What Are the Array Operations?

•The LOKUP operation causes a search to be made for a particular element in an array or table.

•The MOVEA operation transfers character or numeric values from factor 2 to the result field. (Certain restrictions apply when moving numeric values.) Factor 2 or the result field must contain an array. Factor 2 and the result field cannot specify the same array even if the array is indexed.

•SORTA (Sort an Array)

•XFOOT (Summing the Elements of an Array)

12. Can You Debug Ile Rpg Program Using Isdb?

No. However we can debug RPG program using STRDBG.

Compile RPG using with Source listing options . . . *SRCDBG.

STRDBG PGM(PH0040DCL) OPMSRC(*YES)

OPM stands for original program model

Same process for CLP also.

13. How Do You Use Commitment Control In Rpg?

With commitment control, you ensure one of two outcomes for the file operations: either all of the file operations are successful or none of the file operations has any effect. In this way, you process a group of operations as a unit. To use commitment control, you do the following:

•Use the CL commands CRTJRN (Create Journal), CRTJRNRCV (Create Journal Receiver) and STRJRNPF (Journal Physical File) to prepare for using commitment control, and the CL commands STRCMTCTL (Start Commitment Control) and ENDCMTCTL (End Commitment Control) to notify the system when you want to start and end commitment control.

•Specify commitment control on the file-description specifications of the files you want under commitment control.

•Use the COMIT (Commit) operation code to apply a group of changes to files under commitment control, or use the ROLBK (Roll Back) operation code to eliminate the pending group of changes to files under commitment control.

14. How Do You Code File Field Renames In Ile Rpg?

•The PREFIX keyword is used to partially rename the fields in an externally described file. The characters specified as prefix string are prefixed to the names of all fields defined in all records of the file specified.

•You can also explicitly rename a field on input specification on field description entries.

15. Do You Use Message Sub files? What Are the Necessary Keywords Required Coding a Message sub file?

•Specifying the SFLMSGRCD (24) keyword on the sub file record format identifies this sub file as a message sub file. The parameter value specified causes the sub file to appear on line 24 of the display.

•The fields MSGKEY and PGMQ are user-defined names given to the two fields required for the sub file record format for a message sub file. The only specifications allowed for them are their names and the SFLMSGKEY and SFLPGMQ keywords.

•This sub file is built by a series of output operations to SFL that place messages in the sub file as sub file records. Messages are truncated to fit single lines (76 characters or 128 characters, depending on display size), and second-level help is available. This sub file is displayed by an output operation to SFLCTL.

•The OS/400 program when the display station user presses a Page Up or a Page Down key pages this sub file. The SFLEND keyword allows the OS/400 program to display a plus sign whenever the sub file can be paged up.

16. What Is the Necessary Keyword Needed to Scroll sub file Records?

•Pg/Up & Pg/Dn.

•SFLSCROLL (Subfile Scroll) - Returns the relative record number of the subfile record that is at the top of the sub file when control is given to the application.

17. Can More Than One sub file Record Be Displayed On One Line?

•Yes, using SFLLIN (sub file line).

18. What Happens When Sflsiz = Sflpag? What Are The Advantages And Disadvantages?

•It results in equal sub file. Loads only one page of records at a time. Can handle any number of records. But programming becomes much more involved.

•The other case is that of Expanded sub file where in only Pg/Dn has to be programmed. It is displayed in a stable amount of time, depending on how many records the program loads.

19. What Do You Mean By An Input Subfile, What Are The Keywords Required?

•The input data is first loaded to sub file and after doing interactive data validation they are added to physical file. The new keywords required include SFLNXTCHG, SFLINZ, and SFLRNA.

•SFLNXTCHG - It enables a READC instruction to process all of the sub file records as changed. To enable READC on the same record, which was already read by READC, set on SFLNZTCHG and update sub file?

•SFLINZ - Initializes alphanumeric fields to blanks and numeric fields to zeros. When input records are added to a subfile initialized by an SFLINZ operation, they are flagged as changed.

•SFLRNA - Initializes the subfile with no active records.

20. Explain Sflclr, Sflend, Sfldlt, And Sflcsrrrn?

•SFLCLR - Clears subfile area before the subfile is created.

 

•SFLEND - Displays + sign to the right of the last sub file record on the current page, indicating that more records are available.

•SFLDLT - Deletes a sub file. Used when the program controls more than one sub file. Max. Active sub files (24)

•SFLCSRRRN - RRN of the sub file record where the cursor was positioned is returned.

21. What Is The Difference Between Non-display Attribute & Hidden Fields?

•Non-display - Causes the data in the field to be invisible to the operator. The display positions for the fields appear to be blank. Use this attribute for passwords or other security-sensitive data. Non-display fields do not print.

•Hidden - Type H to indicate a hidden field (one that is used for both input and output but not displayed).

22. What Would Be The Effect On The Field Where Reverse Image, Underline, And High Intensity?

•The field will not be displayed i.e. becomes non-display.

23. How Can A Screen Field That Has Changed Since The Last Output Operation Be Detected?

•Using CHANGE keyword e.g. CHANGE (25).

•BLANK for numeric field.

24. What Are The Key Words You Must Use When Using A Subfile?

• SFL - Record level - specifies sub file record format, consists of variable data items.

• SFLCTL - Record level - specifies sub file control record format in which display, clearing, and initialization functions are controlled.

• SFLSIZ - Record level control record keyword - specifies the number of records that may be loaded in the sub file. Max. (9999)

• SFLPAG - Record level control record keyword - specifies the number of records that may be displayed on CRT at the same time.

• SFLDSP - Record level control record keyword - displays the sub file when program issues an output operation to the control record format.

25. What Is the Difference between Do While And Do Until?

•The DOU operations allow the processing of a group of calculations one or more times. The end of a Do-Until operation is indicated by an ENDDO operation. Here processing is done at least one time.

•The DOW operations allow the processing of a group of calculations zero or more times. The end of a Do-While operation is indicated by an ENDDO operation.

26. What Is File Information Data Structure?

File Information Data structure (INFDS) can be defined for each file to make file exception/error information available to the program. A file information data structure contains predefined subfields that identify: the name of the file for which the exception/error occurred. the record being processed when the exception/error occurred or the record that caused the exception/error. The last operation being processed when the exception/error occurred.

The status code. The RPG routine in which the exception/error occurred.

27. What Is Program Status Data Structure?

A Program status DS can define to make program exception/error information available to an RPG program.

DS is defined as program status DS by an S in position 18 of the DS statement.

*STATUS contains status code.

*ROUTINE: contains name of routine in which the exception/error occurred

*PARMS: contains the number parameters passed to this program from the calling program

28. During Execution, An Rpg/400 Program Automatically Follows A Sequence Of Operations For Each Record That Is Processed. The Built-in Program Cycle Includes The Following Logical Steps.

1. Reading input (READ)

2. Processing calculations (PROCESS)

3. Writing output (WRITE)

29. What Is The Difference Between The Cpyf Command Crtdupobj Command?

CRTDUPOBJ command is only to duplicate objects and does create duplicate files whereas the CPYF is to have exact copies of the file.

30. What Is The Use Of Sflnxtchg?

When a changed record is read MDT is set on automatically by the system. When user wants to read it again it won’t the changed record so we need o set on MDT for that we are using SFLNXTCHG.

Submit an interview question

Categories

Request for more information

Webinar

Python tutorial for beginners

5th April | 08:00 AM

150 Registered

praneetha
praneetha
servicenow developer
Praneetha is a Post Graduate in Computer Science from Andhra University .She is currently working as an IT developer at hkr trainings.com. And she has great experience includes both IT development and operational roles. Connect with her also on LinkedIn and Twitter. Thank you

To Top