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

DINIT27A.m

Go to the documentation of this file.
  1. DINIT27A ;ISCSF/DPC-FOREIGN FORMAT 1-2-3 DATA PARSE ;1/11/93 2:27 PM
  1. ;;22.2;VA FileMan;;Jan 05, 2016;Build 42
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
  1. ;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
  1. ;;Licensed under the terms of the Apache License, Version 2.0.
  1. ;
  1. F I=1:2 S X=$T(ENTRY+I) G:X="" ^DINIT27B S Y=$E($T(ENTRY+I+1),5,999),X=$E(X,4,999),@X=Y
  1. Q
  1. ENTRY ;
  1. ;;^DIST(.44,.001,0)
  1. ;;=1-2-3 DATA PARSE^^^^^1^^240^1^^1^1
  1. ;;^DIST(.44,.001,1)
  1. ;;=W $$DP123^DDXPLIB(DDXPXTNO)
  1. ;;^DIST(.44,.001,3,0)
  1. ;;=^^4^4^2921106^
  1. ;;^DIST(.44,.001,3,1,0)
  1. ;;=This format produces fixed length records designed for import into Lotus
  1. ;;^DIST(.44,.001,3,2,0)
  1. ;;=1-2-3. The user is prompted for data types. A special header is created
  1. ;;^DIST(.44,.001,3,3,0)
  1. ;;=that is used by 1-2-3's Data Parser. The maximum record length is 240
  1. ;;^DIST(.44,.001,3,4,0)
  1. ;;=characters.
  1. ;;^DIST(.44,.001,4,0)
  1. ;;=^^10^10^2921120^
  1. ;;^DIST(.44,.001,4,1,0)
  1. ;;=To import data into 1-2-3 from a file created with this format: 1) Use
  1. ;;^DIST(.44,.001,4,2,0)
  1. ;;=File->Import->Text and select the file. 2) The first line of the file
  1. ;;^DIST(.44,.001,4,3,0)
  1. ;;=contains the information for the data parser. You must change this from a
  1. ;;^DIST(.44,.001,4,4,0)
  1. ;;=label, preceded by ', to a format, preceded by ||. Edit the line to make
  1. ;;^DIST(.44,.001,4,5,0)
  1. ;;=this change. 3) Use Data->Parse. The Input Column range should include
  1. ;;^DIST(.44,.001,4,6,0)
  1. ;;=all the imported data, including the format line. Select a desired Output
  1. ;;^DIST(.44,.001,4,7,0)
  1. ;;=Range. Finally, select Go to format the data in the output range. Be sure
  1. ;;^DIST(.44,.001,4,8,0)
  1. ;;=your columns are wide enough to hold the data. NOTE: dates will be
  1. ;;^DIST(.44,.001,4,9,0)
  1. ;;=changed into numbers, 1-2-3's internal representation of a date. You can
  1. ;;^DIST(.44,.001,4,10,0)
  1. ;;=make the date readable by using Range->Format->Date.
  1. ;;^DIST(.44,.001,5,0)
  1. ;;=^.441^1^1
  1. ;;^DIST(.44,.001,5,1,0)
  1. ;;=Lotus 1-2-3 Data Parse
  1. ;;^DIST(.44,.001,5,"B","Lotus 1-2-3 Data Parse",1)
  1. ;;=
  1. ;;^DIST(.44,.001,6)
  1. ;;=S Y=$E(X,6,7)_"-"_$P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,+$E(X,4,5))_"-"_$E(X,2,3) S:$E(X)'=2 Y="NOT 1900s"