Re: VAX BASIC, file specs, and command line arguments



On Feb 19, 12:31 pm, bdhobb...@xxxxxxx wrote:
VAX BASIC v3.8-000
VMS 7.1
emulating a VAX 4000-105A

Two things I would like to do in BASIC:
  1) Get the full file spec for a file;
  2) Get arguments from the command line.

I'm playing with the useropen clause of the open statement, but that
involves fab and nam blocks and sys$open/sys$create and sys$connect to
get the info I want.  It's not bad, but I find it clumsy to go thru
all this to get a file spec.  I was able to easily get both items in
VMS COBOL, but I was using features that were part of the language.
Any routines that'll give me what I want?  Thank you for any and all
assistance.

I did a little "OpenVMS BASIC" hacking in this aread some years ago
and posted my efforts here:

http://www3.sympatico.ca/n.rieck/links/openvms_demos.html
http://www3.sympatico.ca/n.rieck/demo_vms/basic-open-useropen-bas.zip
http://www3.sympatico.ca/n.rieck/demo_vms/basic-open-fsp-bas.zip
http://www3.sympatico.ca/n.rieck/demo_vms/basic-fix-ftp-savesets.zip
http://www3.sympatico.ca/n.rieck/demo_vms/basic-foreign-cmd.zip

These demos won't answer all your questions but may provided some of
the missing pieces.

Enjoy.

Neil Rieck
Kitchener/Waterloo/Cambridge,
Ontario, Canada.
http://www3.sympatico.ca/n.rieck/
.



Relevant Pages

  • Re: Loose Cannon-dian
    ...    On VMS, even if you have a fully priviledges account, you don't ...    automagically get to exhaust any resource other than disk space. ... security feature and when your security is breached and this ... Look at the bugs being discussed here, ...
    (comp.os.vms)
  • Re: And the winner of a shiny XP1000 is....
    ...     I know, I bought one from him too. ... but you can buy laptops dirt cheap on eBay and install a ...  The browsers on VMS, ... I still want to keep a VMS workstation on hand for programming and to ...
    (comp.os.vms)
  • Re: Comparing TCP/IP Stacks
    ...     AND IF ... and often have to go back to MAIL to extract messages to a text file and ... message from MAIL so that the IMAP serer can feed that folder again to a ... there is no point moving to Multinet because I don't intend to stay on VMS. ...
    (comp.os.vms)
  • Re: Interesting job ad from HP
    ...   Doesn't sound like a good marriage ... IBM employees were organized in the steel workers union. ... echelons of these companies do not know VMS from a hole in the wall, ... I think that these type of customers and companies are wonderful. ...
    (comp.os.vms)
  • Re: VMS - what is the current thinking amongst the user community
    ...     Mainly home-grown ... make VMS irreplaceable ... PASCAL can be a real pain the Bu** DEC extended the pascal language ... translators - "The maintainability of the emitted code is indirectly ...
    (comp.os.vms)