ASNA MobileRPGā¢ Reference Manual |
The Generated DDS source file
The Export to Display File process starts by analyzing the Mobile Display File and extracting the record formats and the fields in the records. A DDS source file is created using this information. The DDS file contains only the necessary information required for the RPG program to run correctly. This means that information pertaining to the screen, like string constants, will not appear in the DDS file. Also, DDS keywords that may not have been there before are now part of the DDS source.
In particular, the ASNA Mobile RPG OAR interface requires the INDARA keyword (shown below). INDARA is needed so I/O operations can pass all indicators in a buffer regardless of the record used in the I/O operation. Otherwise, only those indicators used by the record in the DDS are passed. This is required since the export process can not extract all of the indicator usage, which would make the indicator information for each record incomplete.
FMT DP .....AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions++++++++++ 0011.00 A INDARA
The ASNA Mobile RPG OAR interface also requires the definition of all the indicators so they are defined and available for the RPG program, otherwise the program may fail to compile. This is achieved via the IASNAMOBILE record (shown below), which is automatically generated in the export process and requires no action on the part of the RPG programmer.
FMT DP .....AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions++++++++++ 0551.00 A R IASNAMOBILE 0561.00 A 01 02 03 0571.00 A 04 05 06 0581.00 A 07 08 09 CA01 0591.00 A 10 11 12 ...
Example:
The rest of the DDS source is simply the record and field definitions along with their row and column placement, overlay information, subfile declarations, and cursor location fields as shown in the following example, which also shows the INDARA and IASNAMOBILE record.
FMT DP .....AAN01N02N03T.Name++++++RLen++TDpBLinPosFunctions++++++++++ 0001.00 A DSPSIZ(27 132 *DS4) 0011.00 A INDARA 0021.00 A R ORDHREC 0031.00 A OVERLAY 0041.00 A RTNCSRLOC(&CSRREC &CSRFLD) 0051.00 A CSRREC 10A H 0061.00 A CSRFLD 10A H 0071.00 A DTORDNUM 9 0O 1 19 0081.00 A DTORDDATE L B 2 19DATFMT(*ISO) 0091.00 A DTSHPDATE L B 3 19DATFMT(*ISO) 0101.00 A DTDELDATE 8 0B 4 19 0111.00 A DTSHPVIA 3 0B 5 19 0121.00 A DTWEIGHT 18 O 6 19 0131.00 A R KEYS 0141.00 A R MYWINDOW 0151.00 A OVERLAY 0161.00 A WINTITLE 22A H 0171.00 A R SFL1 SFL 0181.00 A SFCOLOR 1 B 12 2 0191.00 A SFSEL 2 0B 12 4 0201.00 A SFORDNUM 9 0O 12 7 0211.00 A SFORDDATE L O 12 19DATFMT(*ISO) 0221.00 A SFSHPDATE L O 12 32DATFMT(*ISO) 0231.00 A SFDELDATE 8 0O 12 44 0241.00 A SFORDAMT 13 4O 12 56 0251.00 A SFFILESTAT 18 O 12 57 0261.00 A SFSHPVIA 3 0O 12 76 0271.00 A R SFLC SFLCTL(SFL1) 0281.00 A SFLSIZ(10) 0291.00 A SFLPAG(10) 0301.00 A N90 SFLDSP 0311.00 A N90 SFLDSPCTL 0321.00 A 90 SFLCLR 0331.00 A OVERLAY 0341.00 A SCRCUST 50 O 3 12 0351.00 A SCRPHONE 20 O 4 12 0361.00 A CMADDR1 35 O 4 45 0371.00 A SCRFAX 14 O 5 12 0381.00 A CMADDR2 35 O 5 45 0391.00 A CMACTIVE 1 O 6 12 0401.00 A CMCITY 30 O 6 45 0411.00 A CMSTATE 2 O 7 45 0421.00 A CMPOSTCODE 10 O 7 48 0431.00 A SETORDNUM 9 0B 9 69 0441.00 A R MSGSF SFL 0451.00 A SFLMSGRCD(24) 0461.00 A @MSGKY SFLMSGKEY 0471.00 A @PGMQ SFLPGMQ 0481.00 A R MSGSFC SFLCTL(MSGSF) 0491.00 A SFLSIZ(10) 0501.00 A SFLPAG(1) 0511.00 A SFLDSP 0521.00 A SFLDSPCTL 0531.00 A SFLINZ 0541.00 A @PGMQ SFLPGMQ 0551.00 A R IASNAWINGS 0561.00 A 01 02 03 0571.00 A 04 05 06 0581.00 A 07 08 09 CA01 0591.00 A 10 11 12 0601.00 A 13 14 15 0611.00 A 16 17 18 CA02 0621.00 A 19 20 21 0631.00 A 22 23 24 0641.00 A 25 26 27 CA03 0651.00 A 28 29 30 0661.00 A 31 32 33 0671.00 A 34 35 36 CA04 0681.00 A 37 38 39 0691.00 A 40 41 42 0701.00 A 43 44 45 CA05 0711.00 A 46 47 48 0721.00 A 49 50 51 0731.00 A 52 53 54 CA06 0741.00 A 55 56 57 0751.00 A 58 59 60 0761.00 A 61 62 63 CA07 0771.00 A 64 65 66 0781.00 A 67 68 69 0791.00 A 70 71 72 CA08 0801.00 A 73 74 75 0811.00 A 76 77 78 0821.00 A 79 80 81 CA09 0831.00 A 82 83 84 0841.00 A 85 86 87 0851.00 A 88 89 90 CA10 0861.00 A 91 92 93 0871.00 A 94 95 96 0881.00 A 97 98 99 CA11