Genesis V Technical Support FAQ

Q. How do you import non Genesis created programs into the Genesis list of functions?
A. Using the GVBLDFWU command.

Q. How do you prevent updates until a function key is pressed?
A. A message type validation which is invalid until command key is pressed.
e.g. In Boolean: *INV *CMDKY NT 10

Q. How do you define your own subfile option box?
A. Turn off the normal subfile option in the subfile formatter. Create a field called @CTp0s (where p is the panel no and s is the subfile no) e.g. @CT101 for panel 1 subfile 1.

Q. Why would you want to define your own subfile option box?
A. If you want to perform validations on the option box or have an option box larger than 1 character.

Q. When a program is generated, why are the following fields sometimes undefined: @11DRP, @@CRSR, @@CRSF and @11CRN.
A. This usually occurs when the program has been generated but the display file has not.

Q. Why are the @ (device file) variants of fields undefined in a report when they are defined on the file?
A. This happens when the format the fields are defined on does not have an associated PRINT keyword in program logic, causing the compiler to drop the format.

Q. How can you control the cursor position from program logic?
A. Use the action keyword CURSOR.

Q. Why wasn't any code for F3=Exit generated for the prompt screen of a 2 screen program?
A. Check to see if any program logic on screen 2 is conditioned on F3. If there is then you will have to add the program logic to screen 1 also.

Q. How do you set up an environment to use the Data Dictionary and/or file specs from another environment?
A. To use a Data Dictionary from another environment, take option 'E' next to the environment.  Change the 'Data Dictionary held in application' field to the name of the other environment.  To use the file specifications from a different environment change the 'Application Name' field under the 'Files' heading.  N.B. These changes must be made before the environment is first generated.

Q. After performing a GVRELOAD, why does a library called GNGPL reside on the system?
A. GVRELOAD loads the new version of GVGPL as GNGPL so that Genesis written programs can still be used while the reload takes place.  When GVGPL is not in use it can be renamed to GOGPL and GNGPL can be renamed to GVGPL.

Q. Why is the subfile option box not being shown in a window program?
A. You must leave at least 2 spaces between the border of the window and the subfile option box.  This is to leave room for the end attribute byte for the window border and the start byte for the subfile option field.

Q. Can the library GVLOAD be deleted after installation is complete?
A. Yes.

Q. How do you round (half adjust) on arithmetic program logic operations?
A. Put 'HALF' or 'ROUND' in the 'What next' column.

Q. Why do you sometimes get a key list and/or F spec for a secondary file which has been deleted from the program spec?
A. When a secondary chain is specified a dummy 'K' type validation is added to the list of validations.  These 'K' entries are not shown in the list of validations unless you press F23.  Sometimes when a file is deleted from the program spec the 'K' entry is not deleted.  Deleting the unwanted 'K' entry will solve the problem.

Q. What libraries are needed to run Genesis generated programs on my live machine?
A. To run Genesis generated programs, the library 'GVGPL' must be in your library list. This library contains all the run time objects required by Genesis, Helpman & Validman.

Q. How do you force the PSSR error window from GVIOERR to give a program DUMP with action 'D'?
A. In order to DUMP there needs to be 'H' spec with a '1' in position 15.

Q. Why, when attempting to call a program recursively, do you get a CPF0818 error?
A. In order to call a program recursively the program name must be 6 characters in length or shorter.

Q. How do you specify multi column subfiles in Genesis?
A. From the Specification Overview screen, take option 'X' next to the subfile in section 2.  Put a number between 1 and 9 in the box 'Number of columns between records'.

Q. How do you omit records from a subfile as it is loading?
A. Specify a boolean logic OMIT condition against the subfile primary file.  To do this take option 'B' against the file in section 3 of the Specification Overview screen.

Q. After generating a program why is there no source code?
A. If the program generates and compiles successfully then Genesis deletes the source code to save space. The source can be recreated from the map file if needed. This feature is turned on my default but can be turned off from a menu option.

Q. Why, when I execute my program, does it fall over with a CPF4131 error?
A. This is a level check error. A file used by this program has been regenerated or recompiled since the program was compiled. Put your cursor on the message and press HELP to find out which file is causing the error.