MAXSTRING when editing a print template with a numeric sub-file.

NO.: 14695                              VERSION: 22.3T0
  TAG: GET+8                            ROUTINE NAME OR GLOBAL REF: DIPTED
  REPORTER: STEVEN MCPHALEN             DATE CHANGED: FEB 2,2013
  PROGRAMMER: GEORGE TIMSON             SUPPORTING DOCUMENT NUMBERS:
  CHANGE: MAXSTRING when editing a print template with a numeric sub-file
  NEW VERSION: <22.3T0>
 LONG DESCRIPTION:
 One of our developers found this obscure bug in Fileman.  Perhaps you are
 already aware of it.  We we did was hack into the API that Fileman uses
 to get the template (input, print, sort) to present in a screenman
 word-processing window under TEMPLATE EDIT.

  F D=2:1 Q:'$D(DS(D))  S @DIPTA@(D-1)=$J("",D>2*$G(DIWD(D))*3)_DS(D)
 ;indentatio
                        ^
 n showing level of subfiles
 <MAXSTRING>GET+8^DIPTED
 PATCH 17f2>W D
 3
 PATCH 17f2>ZW DIWD
 DIWD(2)="0FIELD"

Type <Enter> to continue or '^' to exit:
 DIWD(3)="11358 DAILY RECORD FIELD"
 DIWD(4)="11358 DAILY RECORD FIELD"
 DIPTED="Print Template "PRCHLO424-1_VALIDATE""

 We researched the problem which will only occur if a File or Field name
 starts with a number.  In this case the file's name is "1358 DAILY RECORD"
 The leading 1 in '11358...' is the flag indicating multiple level in the
 DD.

 So clearly D>2*$G(DIWD(D))*3 = (3>2) x 11358 x 3 = 34074  ===> MAXSTRING
 error.
 DETAILED TESTING INSTRUCTIONS:
 See description for how to replicate. This may be hard to replicate on
 GT.M because the max string size for a variable is 1 MB.
I18N: UPPERCASE

NO.: 14696                              VERSION: 22.3T0
  TAG: MNELOOP+13                       ROUTINE NAME OR GLOBAL REF: DDWT1
  REPORTER: GEKY                        DATE CHANGED: FEB 27,2013
  PROGRAMMER: GEORGE TIMSON             CHANGE: I18N: UPPERCASE
  NEW VERSION: <22.3T0>
  EXPLANATION FOR TEST SITES: NO NEED TO TEST
Cosmetic changes (relocation of linefeed).
Retain entire SORT-BY string for Template.

NO.: 14698                              VERSION: 22.3T0
  TAG: X                                ROUTINE NAME OR GLOBAL REF: DIP0
  REPORTER: DON CREAVEN                 DATE CHANGED: MAR 31,2013
  PROGRAMMER: GEORGE TIMSON
  CHANGE: Retain entire SORT-BY string for Template
  NEW VERSION: <22.3T0>
 DETAILED TESTING INSTRUCTIONS:
 Pending. Email to GFT.
RPC call with wrong IENs doesn't return error code

NO.: 14699                              VERSION: 22.3T0
  TAG: DOWN:+5                          ROUTINE NAME OR GLOBAL REF: DIQGQ
  REPORTER: JIM BELL                    DATE CHANGED: APR 23,2013
  PROGRAMMER: GEORGE TIMSON
  CHANGE: RPC call with wrong IENs doesn't return error code
  NEW VERSION: <22.3T0>
 DETAILED TESTING INSTRUCTIONS:
 Pending. Email to GFT.
For future versions of Fileman, don't need to kill ^DD(1.008),^DD(.008),^DD(.009),^DD(.007)

NO.: 14700                              VERSION: 22.3T0
  TAG: EGP                              ROUTINE NAME OR GLOBAL REF: DINIT11C
  DATE CHANGED: JUL 11,2013             PROGRAMMER: SAM HABIEL
  CHANGE: For future versions of Fileman, don't need to kill ^DD(1.008),^DD(.008
),^DD(.009),^DD(.007)                   NEW VERSION: <22.3T0>
 LONG DESCRIPTION:
 We killed those and re-constituted them because Language file pointer
 fields said "Language Number"; but we changed the .01 to be the language
 name, rather than the number. In future versions, we don't need to do
 that, so I removed the kills to be compatible with MSC Fileman 1025.
 DETAILED TESTING INSTRUCTIONS:
 ^DD(1.008),^DD(.008),^DD(.009),^DD(.007) .01 field should still stay
 "LANGUAGE" not "LANGUAGE NUMBER".