Problem solve Get help with specific problems with your technologies, process and projects. I have purchased several books on the subject, but none seem to help me learn the basics of subfiles. Do you have any recommendations? A subfile usually consists of three parts record formats in your DDS but it really only has to have two. Typically they flow this way.
|Published (Last):||18 February 2005|
|PDF File Size:||14.28 Mb|
|ePub File Size:||1.97 Mb|
|Price:||Free* [*Free Regsitration Required]|
Problem solve Get help with specific problems with your technologies, process and projects. I have purchased several books on the subject, but none seem to help me learn the basics of subfiles.
Do you have any recommendations? A subfile usually consists of three parts record formats in your DDS but it really only has to have two.
Typically they flow this way. The top of the screen contains the subfile control record -- this controls the subfile display subfile, clear subfile, etc. The middle of the screen is generally the subfile itself. This is the data that is in the list and will also contain an input field if you allow users to select options drill down etc. The bottom part of the screen contains command key text and error message line.
There are three primary techniques to build subfiles. Advantage - Simplest technique to code. This can be a huge performance hit if there are a lot of records in the file.
Build the first page of the subfile only. Advantage -- You eliminate the performance hit that you would have in technique number 1. Build the subfile one page at a time. This means that you load only one page of data into your subfile and you control roll up and roll back.
Advantage: Data is always real time, most user friendly, consistent performance whether the file has or million records, this is the most flexible from a user and programming point of view. Disadvantages: By far, the most difficult technique of the three to learn to code. Programmer has to control roll forward and roll back as well as a saving the screen options from screen to screen and executing them at the appropriate time, not the most efficient choice for summary type data that is not changing.
Option 2 is probably the most common subfile technique used in iSeries shops. Ask your programming questions--or help out your peers by answering them--in our live discussion forums. Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.
Updating RPG LE subfile skills
This was rather disappointing as RPGLE is over 21 years old , free format calculations 14 years old, even free format definitions RPG is in its third year. All of the examples I found looked overly complicated for a beginner, so I decided to create this post showing a simple subfile program written in modern RPG. The examples in this post are the way I would write a simple subfile program using totally free RPG. I am sure that my examples are not the way all other IBM i developers would write theirs. There are probably as many ways to write a subfile program as there are programmers who write them, each with his or her own coding peccadillos.
Single Page Subfiles
Upon completion of this chapter, you should be able to Describe what a subfile is. Explain the three methods used to load subfiles. Describe the basic concepts of how a subfile works in an application program. Demonstrate how data description specifications DDS are used to create a subfile. Demonstrate the creation and execution of programs utilizing subfile processing. One of the most common types of record formats used in interactive applications is the list screen, or work with screen, shown in Figure A list, or work with, screen that displays all customers with a particular last name.
PROGRAMMING IN COBOL/400: 2nd Edition by James Cooper, Nancy Stern, Robert A. Stern
Using Subfiles Subfiles can be specified in the DDS for a display-device file to allow you to handle multiple records of the same type on the display. See Figure 1. A subfile is a group of records that is read from or written to a display-device file. For example, a program reads records from a database file and creates a subfile of output records. When the entire subfile has been written, the program sends the entire subfile to the display device in one write operation. The work-station user can change data or enter additional data in the subfile.
- GUIA DEL VIAJERO INTERGALACTICO PDF
- MAGDALENA KOZAK NIKT PDF
- KANT CRITIQUE OF JUDGMENT PLUHAR PDF
- A TEXTBOOK OF QUANTUM MECHANICS BY MATHEWS AND VENKATESAN PDF
- DARLING ESPARBEC PDF
- ATTACHMENT IN PSYCHOTHERAPY DAVID WALLIN PDF
- INDIFFERENCE VALSE MUSETTE PDF
- DISTOCIAS DINAMICAS DEL TRABAJO DE PARTO PDF