For questions that are specific to the OpenVMS (AKA VAX/VMS) operating system. If your question has nothing to do with OpenVMS APIs or OpenVMS-specific behavior then do not use this tag. This tag is appropriate for any software running on OpenVMS.
Questions tagged [openvms]
163 questions
15
votes
6 answers
How does one safely static_cast between unsigned int and int?
I have an 8-character string representing a hexadecimal number and I need to convert it to an int. This conversion has to preserve the bit pattern for strings "80000000" and higher, i.e., those numbers should come out negative. Unfortunately, the…

Michael Kristofik
- 34,290
- 15
- 75
- 125
7
votes
3 answers
Error handling on sockets in SAS under OpenVMS
I'm using SAS 9.2 on OpenVMS to connect to an external data source over a socket specifed with a filename statement:
filename extsrc SOCKET "extserver:port" recfm=v;
data foo;
infile extsrc;
input;
.... some statements to read stuff ...;
run;
This…

jilles de wit
- 7,060
- 3
- 26
- 50
6
votes
10 answers
Java on OpenVMS?
We run batch files on our OpenVMS Alpha and Integrity servers. Up until now they have been written in COBOL. As you can imagine there are many reasons why will not be able to maintain that process.
At the same time we have a team of developers that…
G-Lam
6
votes
6 answers
Get dimensions of JPEG in C++
I need to get the image dimensions of a JPEG in C++. I'm looking for either a fairly simple way to do it or a smallish library that provides that functionality. I'm working in C++ on OpenVMS, so any external libraries may have to be adapted to…

Dominic Rodger
- 97,747
- 36
- 197
- 212
6
votes
3 answers
Moving away from Itanium
We currently have a large business-critical application written in COBOL, running on OpenVMS (Integrity/Itanium).
As the months pass, there is more and more speculation about the lifetime of the Itanium architecture. Nothing is said out in the…

Eric Smith
- 5,262
- 2
- 33
- 49
5
votes
3 answers
DCL symbol syntax in OpenVMS
I am really confused by some syntax in the DCL of OpenVMS. For example, these are some of the lines which confused me:
$ wo = "write sys$output"
Does it create a symbol wo for write sys$output?
$ billing_run_number == p1
Is p1 a parameter…

lamwaiman1988
- 3,729
- 15
- 55
- 87
5
votes
1 answer
Signal handling in C++
Argument of type void (*)(int) is incompatible with parameter of type __sighnd64_t
Below is my simple code:
#include
#include
#include
#include
#include
#include
typedef struct mystrcut
{
…

Sam
- 71
- 1
- 4
5
votes
1 answer
Creating a thread dump on OpenVMS
How can I retrieve a thread dump from a running Java process on OpenVMS? The process is not JMX-enabled. I am looking for something similar to kill -QUIT on Unix or Ctrl+Break on Windows.
EDIT: I found my answer…

claes
- 51
- 2
5
votes
1 answer
OpenVMS timer precision, better than millisecond accuracy.
I'm wondering which function offers best precision/accuracy for timing on OpenVMS in C.
We have an HP Integrity rx2660 server running OpenVMS V8.3-1H1.
My search so far points to $GETTIM_PREC which offers 100-nano resolution but millisecond…

nantonop
- 157
- 7
4
votes
1 answer
OpenVMS Pascal constant not constant when used as size initializer
I think the easiest way of demonstrating the problem is with an example. The code:
PROGRAM CONSTANTSTRING(OUTPUT);
CONST
C_MaxLength = 30;
VAR
small_string : VARYING[5] OF CHAR VALUE 'alpha';
PROCEDURE LocalProc(
localstring :…

Dutch Gecko
- 108
- 1
- 2
- 9
4
votes
4 answers
what is equivalent command of unix which in VMS
I have a tool xyz in vms.I want to get location where it is installed.For example in unix we can achieve this by using which command.So please help me vms equivalent of this command.

vikas
- 145
- 6
4
votes
3 answers
how to run a c program with reading command line parameters in openvms?
I built a simple program try to print the command line parameters.
The code is below and I built an executable file (TEST.EXE).
int main(int argc, char *argv[])
{
int i;
printf("%s\n",argv[0]);
for (i = 1; i < argc; i++)
…

Y.C.
- 77
- 6
3
votes
1 answer
Character IO for Ada83 on a VAX/VMS system
Another retro computing type question...
I'm hoping that someone out there will remember how to do direct character IO from the terminal under VMS using Ada83 (v3.0A).
Unfortunately this old version of Ada does not implement GET_IMMEDIATE in the…

Mike T.
- 165
- 1
- 12
3
votes
1 answer
Is it possible to install a openvms image (iso) on VirtualBox?
Whanted to get a openvms dev enviroment, where could use it to learn the basic command's to get feel for it without worrying about breaking anything.
So whanted to know if its possible to install a openvms iso image in Virtual Box
In case its…

H.C
- 565
- 7
- 28
3
votes
1 answer
OpenVMS Alpha boot sector restoration
recently I got my hands on Alpha Station computer with OpenVMS operating system (Files-11 filesystem). This computer is from the year 1994.
In an attempt to backup hard drive data, hard disc was connected to an x86 computer with Windows 7 OS.
But it…

Dave
- 83
- 1
- 4