Computing.Net > Forums > OpenVMS > How to recieve arguments from user

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to recieve arguments from user

Reply to Message Icon

Name: Gargyboy
Date: October 26, 2009 at 02:28:56 Pacific
OS: Windows XP
CPU/Ram: P4/512
Subcategory: General
Comment:

Hi,

i want to create a vms script and i want to pass an input file as parameter and also want to read some parameter values from the user at runtime.

Thanks in advance
Manish



Sponsored Link
Ads by Google

Response Number 1
Name: Joseph.Huber
Date: October 26, 2009 at 03:39:40 Pacific
Reply:

It's worth to read at least the "DCL dictionary" manual from the VMS doc set, the chapter on executing command files is available on the following link:
http://h71000.www7.hp.com/doc/83fin...

In short: parameters to DCL procedures are passed in symbols P1 to P8 (i.e. a maximum of 8 can be passed).

The second part of Your question I don't understand: what means "parameters at run time?": once the DCL procedure is started, there is no way to change the passed parameters.

Are You asking for "how to read data inside a procedure ?": if so: read about the DCL OPEN and READ or INQUIRE command (or use help on OPEN,READ,INQUIRE):
You can read from "user" on the interactive terminal (called sys$command:) or from a disk file.
Terminal: READ SYS$COMMAND answer
or INQUIRE symbol prompt

Joseph Huber, http://www.huber-joseph.de
ITRC


0

Response Number 2
Name: Gargyboy
Date: October 26, 2009 at 05:02:48 Pacific
Reply:

Thanks Joseph.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: How to recieve arguments from user

How to change user password ? www.computing.net/answers/openvms/how-to-change-user-password-/73.html

how to install tape drives connecte www.computing.net/answers/openvms/how-to-install-tape-drives-connecte/143.html

How to restrict the FTP in OpenVMS www.computing.net/answers/openvms/how-to-restrict-the-ftp-in-openvms/32.html