- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: DCL parameters in Apache under OpenVms
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2004 01:39 AM
тАО06-30-2004 01:39 AM
How is possible to pass parameters from an url to a CGI script made with a DCL? Can somebody write me a little example?
Many thanks everybody.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2004 02:38 AM
тАО06-30-2004 02:38 AM
Re: DCL parameters in Apache under OpenVms
url : http://salpv1/report_ver_proc/?t=00:05
where t is the parameter value
in dcl you get
$ if www_form_t .eqs. ...
where t is the name of your parameter
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2004 08:07 PM
тАО06-30-2004 08:07 PM
SolutionBelow is an example of how to create symbols with there corresponding values :-
$LOAD_PARAMS:
$ QUERY_STRING = F$EDIT("''QUERY_STRING'","UPCASE")
$ !
$ sh sym query_string
$ !
$ COUNT = 0
$ !
$LOAD_PARAMS_LOOP:
$ PARAM_LONG = F$ELEM(COUNT,"&",QUERY_STRING)
$ IF PARAM_LONG .EQS. "&" .OR. PARAM_LONG .EQS. "" THEN GOTO END_LOAD_PARAMS_LOOP
$ !
$ PARAM_NAME = F$ELEM(0,"=",PARAM_LONG)
$ PARAM_VALUE = F$ELEM(1,"=",PARAM_LONG)
$ !
$ 'PARAM_NAME' = "''PARAM_VALUE'"
$ !
$ sh sym 'param_name'
$ !
$ COUNT = COUNT + 1
$ GOTO LOAD_PARAMS_LOOP
$ !
$END_LOAD_PARAMS_LOOP:
$ .......
Form data can also be extracted, using Mark Daniels CGIUTL (http://wasd.vsm.com.au/wasd/) program :-
$LOAD_CGI_VARIABLES:
$ CGIUTL = "$CMS$SYSTEM:CGIUTL.EXE"
$ DEFINE /NOLOG /USER SYS$INPUT APACHE$INPUT
$ CGIUTL /URLDECODE /SYMBOLS /MAXSYM=254
$ !
$! sh sym cgiutl*
$ !
Using these two methods, I've written comprehensive browser-based applications, purely in DCL.
Let me know if you need any more help or examples.
Rob.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2004 05:14 PM
тАО07-01-2004 05:14 PM
Re: DCL parameters in Apache under OpenVms
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2004 07:58 PM
тАО07-01-2004 07:58 PM
Re: DCL parameters in Apache under OpenVms
Rob.
P.S. I like your coding style, but it must take forever with all that upper and lowercase text :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2004 08:11 PM
тАО07-01-2004 08:11 PM
Re: DCL parameters in Apache under OpenVms
(I am also guilty of too much all uppercase DCL :-)
Purely Personal Opinion