[Info-vax] openvms licensing

hb end.of at inter.net
Thu Feb 18 13:33:36 EST 2016


On 02/18/2016 07:10 PM, Bill Cunningham wrote:
> "hb" <end.of at inter.net> wrote in message news:na450r$p7i$1 at gioia.aioe.org...
> 
>> Presumed you are running simh on a Linux system and that the size of the
>> file is less than 400KB.
>>
>> In simh emulating a MicroVAX 3900 you have an RX50 at RQ3, that is DUA3.
>> In your .ini file or at the simh prompt attach your command file to this
>> device:
>>        ATTACH RQ3 ./paks.com
>> Print the file size of the command procedure:
>>        # ls -l ./paks.com
>> Take the value, for example 2742, and calculate ebk and ffb:
>> # size=2742
>>        # printf "ebk=%d,ffb=%d\n" $((($size/512)+1)) $(($size%512))
>>        ebk=6,ffb=182
>>        #
>> Boot into VMS and mount the RX50 as a foreign device:
>>        $ mount/for dua3:
>>        %MOUNT-I-MOUNTED,  mounted on _EMUVAX$DUA3:
>>        $
>> Copy all the blocks from the foreign device:
>>        $ copy DUA3: paks.com
>>        %COPY-W-INCOMPAT, DUA3:[].; (input) and
>> SYS$SYSDEVICE:[USER]PAKS.COM;1 (output) have incompatible attributes
>>        %COPY-E-READERR, error reading DUA3:[].;
>>        -RMS-F-RER, file read error
>>        -SYSTEM-F-ILLBLKNUM, illegal logical block number
>>        %COPY-W-NOTCMPLT, DUA3:[].; not completely copied
>>        $
>>        $ dir/size=all paks.com
>>
>>        Directory SYS$SYSDEVICE:[USER]
>>
>>        PAKS.COM;1               800/801
>>
>>        Total of 1 file, 800/801 blocks.
>>        $
>>
>> Set eof and the file attribute to a Linux/Unix compatible file format:
>>        $ set file/attr=(rfm=stmlf,ebk=6,ffb=182) paks.com
>> Type, edit or run the command procedure.
>>        $ @paks
>>
>> On Windows you may need to set rfm to stm, but I don't use Windows and
>> so I don't know whether this works.
> 
>     Cool. Just what I'm looking for!  can resort to that "cut and paste". 
> And load so much into my linux (and will if needed). But this is a good 
> alternative method perhaps. I will check. What if ebk and ffb? I'm not great 
> with Bash though :( I will look into this. 

"printf" in bash prints what you need for the "set file/attr" in
DCL/VMS. "efb" is "end of file block" (the disk blocks you see with
"DIR/SIZE") and "ffb" is the "first free byte" (in the efb). Together
they establish the file size in bytes.

Another option would be to create an iso image on the Linux side, just a
simple:
 # genisoimage -o paks.iso ./paks.com
For simh attach the paks.iso to the RRD42, usually the RQ2.
Then on VMS just mount the CD, aka DUA2:
 $ mount /over=id dua2:
Unfortunately you can't just execute that command procedure from the CD,
you have to copy it, for example to your current working directory:
 $ copy dua2:[000000]paks.com sys$disk:[]
and do a:
 $ set file/attr=(rfm=stmlf) paks.com

There are very likely more and other options to get (the) file(s)
imported into VMS running on simh without or when ftp is not (yet) an
option.




More information about the Info-vax mailing list