ASCII <-> KSAM

Glenn J. Koster, Sr. gkoster@mbsnav.com
Wed, 03 Mar 1999 07:17:41 -0700


Fernando wrote:

> How do I 'build' the KSAM file with the keys to begin with?

I disagree with the reply that stated you should add the file to the
dictionary and use QUTIL to build the file.  This would be appropriate
only if the file you are creating will be a file that is intended to be
accessible through Powerhouse.  If, on the other hand, the file will
only be read from ( and written to) by traditional languages (COBOL,
etc.), the decision to add it to the dictionary is overkill.  In this
latter case, you have two options...

If you wish to build a compatibility-mode KSAM file, you need to use
KSAMUTIL.  In the following example, remember to replace the appropriate
parameters with values that make sense to your file...
  
     :KSAMUTIL
     >build <file>;disc=####;rec=-80,16,F,ASCII;KEYFILE=<fileb>;&
     >KEY=B,5,32,102

     For more specific details see the KSAM manual on-line at...

	http://www.docs.hp.com/cgi-bin/doc3k/B3265090386.10088/1

If you wish to build a native-mode KSAM file (which utilizes less disc
space and out performs cm KSAM by a wide margin), then you can simply
use the build command....

     :BUILD <filea>;DISC=####;REC=-80,16,F,ASCII;&
     :KEY=(type,loc,size[,DUP];<key2desc>);KSAMXL

The two key parameters here are "KEY=" and "KSAMXL"...

Once the file is build, fcopy to your hearts content.

Glenn
-- 
 ______________
|  Navigators  | Under contract to Hewlett-Packard ISG (Greeley, CO)
|     |)       |
|     | )      | Glenn J. Koster, Sr.             gkoster@mbsnav.com 
|     |  )     | Managed Business Solutions    http://www.mbsnav.com 
|     |   )    | 214 S. College, Suite 201              970 350-5337 
|     |----    | Fort Collins, CO  80524                970 224-1016 
| ============ |  
| \__________/ |  
|   of Change  | aka:  MichiTex@aol.com
|______________| home: http://members.aol.com/MichiTex
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.