Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: DINIT27

DINIT27.m

Go to the documentation of this file.
  1. DINIT27 ;SFISC/DPC-LOADS DD OF FOREIGN FORMAT FILE ;01:40 PM 13 Sep 1994
  1. ;;22.0;VA FileMan;;Mar 30, 1999
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. F I=1:2 S X=$T(Q+I) G ^DINIT270:X="" S Y=$E($T(Q+I+1),5,999),X=$E(X,4,999),@X=Y
  1. Q Q
  1. ;;^DIC(.44,0,"GL")
  1. ;;=^DIST(.44,
  1. ;;^DIC("B","FOREIGN FORMAT",.44)
  1. ;;=
  1. ;;^DD(.44,0)
  1. ;;=FIELD^^11^19
  1. ;;^DD(.44,0,"DDA")
  1. ;;=N
  1. ;;^DD(.44,0,"DT")
  1. ;;=2930107
  1. ;;^DD(.44,0,"ID","WRITE")
  1. ;;=D:Y<1 EN^DDIOL("** DISTRIBUTED BY VA FILEMAN **","","?35")
  1. ;;^DD(.44,0,"IX","B",.44,.01)
  1. ;;=
  1. ;;^DD(.44,0,"IX","C",.441,.01)
  1. ;;=
  1. ;;^DD(.44,0,"NM","FOREIGN FORMAT")
  1. ;;=
  1. ;;^DD(.44,0,"PT",.4,105)
  1. ;;=
  1. ;;^DD(.44,.01,0)
  1. ;;=NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'(X'?1P.E) X
  1. ;;^DD(.44,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.44,.01,1,1,0)
  1. ;;=.44^B
  1. ;;^DD(.44,.01,1,1,1)
  1. ;;=S ^DIST(.44,"B",$E(X,1,30),DA)=""
  1. ;;^DD(.44,.01,1,1,2)
  1. ;;=K ^DIST(.44,"B",$E(X,1,30),DA)
  1. ;;^DD(.44,.01,3)
  1. ;;=Name must be 3-30 characters in length, not starting with punctuation.
  1. ;;^DD(.44,.01,21,0)
  1. ;;=^^1^1^2920914^
  1. ;;^DD(.44,.01,21,1,0)
  1. ;;=This field identifies the format used by the non-VA FileMan application.
  1. ;;^DD(.44,.01,"DEL",1,0)
  1. ;;=I DA<1
  1. ;;^DD(.44,.01,"DT")
  1. ;;=2920914
  1. ;;^DD(.44,1,0)
  1. ;;=FIELD DELIMITER^FX^^0;2^K:$L(X)>15!($L(X)<1)!'((X?1AP.E)!(X?3N)!(X?3N1","3N)!(X?3N1","3N1","3N)!(X?3N1","3N1","3N1","3N)) X
  1. ;;^DD(.44,1,3)
  1. ;;=Answer must be 1-15 characters in length.
  1. ;;^DD(.44,1,21,0)
  1. ;;=^^10^10^2921028^
  1. ;;^DD(.44,1,21,1,0)
  1. ;;=Contents of the field delimiter is output between each field. Depending
  1. ;;^DD(.44,1,21,2,0)
  1. ;;=on the contents of the SEND LAST FIELD DELIMITER? field, the delimiter may
  1. ;;^DD(.44,1,21,3,0)
  1. ;;=be output after the last field, too. Identify the delimiter either by 1-15
  1. ;;^DD(.44,1,21,4,0)
  1. ;;=characters not beginning with a number or by the ASCII value of the
  1. ;;^DD(.44,1,21,5,0)
  1. ;;=delimiter. When specifying the ASCII value, use 3 numbers (e.g., '009'
  1. ;;^DD(.44,1,21,6,0)
  1. ;;=for ASCII 9). Up to four ASCII-character values can be specified,
  1. ;;^DD(.44,1,21,7,0)
  1. ;;=separated by commas.
  1. ;;^DD(.44,1,21,8,0)
  1. ;;=
  1. ;;^DD(.44,1,21,9,0)
  1. ;;=If 'Ask' is entered, the user will be prompted for the field delimiter
  1. ;;^DD(.44,1,21,10,0)
  1. ;;=when creating the EXPORT template.
  1. ;;^DD(.44,1,"DT")
  1. ;;=2920914
  1. ;;^DD(.44,2,0)
  1. ;;=RECORD DELIMITER^F^^0;3^K:$L(X)>15!($L(X)<1)!'((X?1AP.E)!(X?3N)!(X?3N1","3N)!(X?3N1","3N1","3N)!(X?3N1","3N1","3N1","3N)) X
  1. ;;^DD(.44,2,3)
  1. ;;=Answer must be 1-15 characters in length.
  1. ;;^DD(.44,2,21,0)
  1. ;;=^^8^8^2921026^
  1. ;;^DD(.44,2,21,1,0)
  1. ;;=Contents of the record delimiter is output after each record. Identify
  1. ;;^DD(.44,2,21,2,0)
  1. ;;=the delimiter either by 1-15 characters not beginning with a number or by
  1. ;;^DD(.44,2,21,3,0)
  1. ;;=the ASCII value of the delimiter. When specifying the ASCII value, use 3
  1. ;;^DD(.44,2,21,4,0)
  1. ;;=numbers (e.g., '009' for ASCII 9). Up to four ASCII-character values can
  1. ;;^DD(.44,2,21,5,0)
  1. ;;=be specified, separated by commas.
  1. ;;^DD(.44,2,21,6,0)
  1. ;;=
  1. ;;^DD(.44,2,21,7,0)
  1. ;;=If 'Ask' is entered, the user is prompted for the record delimiter when
  1. ;;^DD(.44,2,21,8,0)
  1. ;;=creating the EXPORT template.
  1. ;;^DD(.44,2,"DT")
  1. ;;=2920914
  1. ;;^DD(.44,3,0)
  1. ;;=LINE CONTINUATION CHARACTER^F^^0;4^K:$L(X)>15!($L(X)<1) X
  1. ;;^DD(.44,3,3)
  1. ;;=Answer must be 1-15 characters in length.
  1. ;;^DD(.44,3,21,0)
  1. ;;=^^1^1^2921028^
  1. ;;^DD(.44,3,21,1,0)
  1. ;;=Not used yet.
  1. ;;^DD(.44,3,"DT")
  1. ;;=2920828
  1. ;;^DD(.44,4,0)
  1. ;;=LINE CONTINUATION LOCATION^S^e:END OF LINE;b:BEGINNING OF LINE;^0;5^Q
  1. ;;^DD(.44,4,21,0)
  1. ;;=^^1^1^2920917^
  1. ;;^DD(.44,4,21,1,0)
  1. ;;=Not used yet.
  1. ;;^DD(.44,4,"DT")
  1. ;;=2920828
  1. ;;^DD(.44,5,0)
  1. ;;=RECORD LENGTH FIXED?^S^1:YES;0:NO;^0;6^Q
  1. ;;^DD(.44,5,21,0)
  1. ;;=^^3^3^2920917^
  1. ;;^DD(.44,5,21,1,0)
  1. ;;=Enter YES if the fields will be fixed length causing a fixed length record
  1. ;;^DD(.44,5,21,2,0)
  1. ;;=to be created. When the EXPORT template is created, the user is prompted
  1. ;;^DD(.44,5,21,3,0)
  1. ;;=for the length of each field in the TARGET file.
  1. ;;^DD(.44,5,"DT")
  1. ;;=2920828
  1. ;;^DD(.44,6,0)
  1. ;;=NEED FOREIGN FIELD NAMES?^S^1:YES;0:NO;^0;7^Q
  1. ;;^DD(.44,6,21,0)
  1. ;;=^^3^3^2921013^
  1. ;;^DD(.44,6,21,1,0)
  1. ;;=Answer YES if it is necessary to save the field names from the foreign
  1. ;;^DD(.44,6,21,2,0)
  1. ;;=file in the export file. The user will be prompted for the names when the
  1. ;;^DD(.44,6,21,3,0)
  1. ;;=EXPORT template is created.
  1. ;;^DD(.44,6,"DT")
  1. ;;=2920828
  1. ;;^DD(.44,7,0)
  1. ;;=MAXIMUM OUTPUT LENGTH^NJ4,0^^0;8^K:+X'=X!(X>9999)!(X<0)!(X?.E1"."1N.N) X
  1. ;;^DD(.44,7,3)
  1. ;;=Type a Number between 0 and 9999, 0 Decimal Digits
  1. ;;^DD(.44,7,21,0)
  1. ;;=^^7^7^2921026^
  1. ;;^DD(.44,7,21,1,0)
  1. ;;=The maximum length of a "line" of output; maximum number of characters
  1. ;;^DD(.44,7,21,2,0)
  1. ;;=before a LINE FEED is issued. For most exports, this will be the maximum
  1. ;;^DD(.44,7,21,3,0)
  1. ;;=record length.
  1. ;;^DD(.44,7,21,4,0)
  1. ;;=