Creating a default form: an example

The LAYOUT command allows the user to view a sample report based on a form (in QMF temporary storage or in the database) without requiring any data to be in QMF temporary storage. LAYOUT generates sample data, imports it into QMF, and applies the form to it to create a report.

Note to CICS users

The LAYOUT command requires ISPF, which is not available in CICS.

Users can look at the form without running a query by creating a form, exporting it, and then importing it into QMF as part of initialization. If you import the form during the initial procedure, users can access the form by entering SHOW FORM.

The minimal form you can import is a header and end record. However, to use FORM.COLUMNS, you need to have at least one column of information.

You can create a default form by running a query that creates an empty report:

 SQL query
 
 SELECT JOB
 FROM Q.STAFF
 WHERE NAME='empty_set'

When QMF displays the report, enter EXPORT FORM TO DEFAULT (including the (QUEUETYPE=xx parameter in CICS). Your file, data set, or CICS data queue named DEFAULT contains the information shown in Figure 20.

Figure 20. Sample format of an exported form
H QMF 11 F 04 E V W E R 01 03 98/12/16 22:08
 
T 1110 001 011 1112 007 1113 040 1114 007 1115 006 1116 005 1117 005 1118 003 1119 008 1120 008
  1122 006 1121 050
R CHAR    JOB                                              2      5     C     1   DEFAULT  
  DEFAULT  NO
V 1201 001 0
V 1202 001 2
T 1210 001 003 1212 004 1213 006 1214 055
R 1    CENTER
V 1301 001 2
V 1302 001 0
T 1310 001 003 1312 004 1313 006 1314 055
R 1    CENTER
V 1401 002 NO
V 1402 001 1
V 1403 001 0
T 1410 001 003 1412 004 1413 006 1414 055
R 1    RIGHT
V 1501 001 1
V 1502 003 YES
V 1503 003 YES
V 1504 003 YES
V 1505 003 YES
V 1506 003 YES
V 1507 003 YES
V 1508 003 YES
V 1509 003 YES
V 1510 003 YES
V 1511 004 NONE
V 1512 002 NO
V 1513 007 DEFAULT
V 1514 002 NO
V 1515 004 NONE
V 2790 001 1
V 2791 003 YES
V 2805 003 YES
T 2810 001 003 2812 004 2813 006 2814 055
R 1    LEFT
V 2901 002 NO
V 2902 001 1
V 2904 001 0
V 2906 002 NO
V 2907 002 NO
T 2910 001 003 2912 004 2913 006 2914 055
R 1    LEFT
V 3080 001 1
V 3101 002 NO
V 3102 002 NO
V 3103 001 0
V 3104 001 0
T 3110 001 003 3112 004 3113 006 3114 055
 
R 1    LEFT
V 3201 002 NO
V 3202 001 1
V 3203 001 0
V 3204 001 1T 3210 001 003 3212 004 3213 006 3214 055
R 1    RIGHT
V 3080 001 2
V 3101 002 NO
V 3102 002 NO
V 3103 001 0
V 3104 001 0
T 3110 001 003 3112 004 3113 006 3114 055
R 1    LEFT
V 3201 002 NO
V 3202 001 1
V 3203 001 0
V 3204 001 1
T 3210 001 003 3212 004 3213 006 3214 055
R 1    RIGHT
E

You can import your default file, data set, or CICS data queueevery time a user logs on by issuing the command IMPORT FORM FROM DEFAULT (including the (QUEUETYPE=xx parameter in CICS) in your initial procedure

[ Previous Page | Next Page | Contents | Index ]