Article 167227 of comp.os.vms: In article <01bc1141$a9e5fe20$LocalHost@stefaan>, "Stefaan De Roeck" writes: > When I use type or print commands, it is printed OK. But when I read line by > line (I use MACRO, but I get the same results using the DCL-commands OPEN and > READ) sometimes a e.g. 15*Line Feed is not coming thru. > Is there any way for me to implement something in MACRO-language? (I'm trying > to print files to a HP-660C connected to a XT with terminal emulation) The carriage control information for print formatted files is (as you probably know) encoded in a two byte fixed control region. To retrieve the contents of this region from each record, specify RAB$L_RHB as the address of a two byte buffer. Each of the two bytes in this two byte buffer are encoded separately. The first byte indicates what carriage control precedes the record. The second byte indicates what carriage control follows the record. The high order bits of each byte control the interpretation of the remainder: 0 0 0 0 0 0 0 0 => No carriage control 0 x x x x x x x => The x's are a binary count of newlines 1 0 0 x x x x x => The x's specify an ASCII control character 1 0 1 x x x x x => Reserved 1 1 0 0 x x x x => Skip to VFU channel x. If device has no VFU then treat as single newline. 1 1 0 1 x x x x => Reserved 1 1 1 0 x x x x => Reserved 1 1 1 1 x x x x => Undefined (in my manual) I have a Pascal program that among other things allows conversion of VFC files to a variety of other formats. I also have the executable version of this file for VAX and AXP (VESTed). But, of course, you have to trust me not to have filled the .EXE full of nasty virii. I've zipped it up into http://www.vitro.com/pub/vitc.zip You may want to change the verb name in the .CLD. And you probably don't want to blindly run the build .COM file -- it's got site-specific stuff buried in there. A wildcard search for "VIT" might turn up more site-specific stuff. No guarantees. If it works for you, that's great. If it blows up, don't come crying to me -- I didn't even write the thing. John Briggs vaxs09@alpha.vitro.com