vms

Perl encounters “out of memory” in openvms system

☆樱花仙子☆ 提交于 2020-01-06 06:53:15
问题 I am using a 32 bit perl in my openvms system.(So perl can access up till 2gb of virtual address space ). I am hitting "out of memory!" in a large perl script. I zeroed in on the location of variable causing this . However after my tests with devel:size it turns out the array is using only 13 Mb memory and the hash is using much less than that. My question is about memory profiling this perl script in VMS. is there a good way of doing memory profile on VMS? I used size to get size of array

how to run a c program with reading command line parameters in openvms?

梦想的初衷 提交于 2020-01-04 06:23:09
问题 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++) printf("argument %d: %s\n", i, argv[i]); exit (EXIT_SUCCESS); } I try to run the TEST.EXE and print the parameters but fail. The result of command RUN TEST.EXE test1 test2 : %DCL-W-MAXPARM, too many parameters - reenter command with fewer parameters What can I do to print

how to run a c program with reading command line parameters in openvms?

戏子无情 提交于 2020-01-04 06:23:05
问题 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++) printf("argument %d: %s\n", i, argv[i]); exit (EXIT_SUCCESS); } I try to run the TEST.EXE and print the parameters but fail. The result of command RUN TEST.EXE test1 test2 : %DCL-W-MAXPARM, too many parameters - reenter command with fewer parameters What can I do to print

Is there a reasonable way to implement a cd command on VMS?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 08:29:51
问题 I would like to be able to say things like cd [.fred] and have my default directory go there, and my prompt change to indicate the full path to my current location. 回答1: Here's my setup: You need 2 files (typed below) : godir.com and prompt.com in your sys$login You may define a symbole CD == "@sys$login:godir.com" But I suggest you to use something else... (ie SD == "@sys$login:godir.com") I modify the help text. It was in french... You will have to retype the escape caracters into godir.com

Getting a driver for VMS to connect to SQL Server 2005

我与影子孤独终老i 提交于 2019-12-11 03:28:13
问题 I want to connect from a COBOL/VMS system to an SQL Server 2005 instance. Could someone point me to a driver that works well? 回答1: This is similar to another question on SO. Though not specific to VMS, many of the options presented there would work with VMS/ODBC. You may also want to look at FreeTDS (I've used it many times but never from VMS) if you are looking for an open source implementation you can customize. Otherwise, the supported/commercial vendors that have products that would work

Developing with C++ on OpenVMS

℡╲_俬逩灬. 提交于 2019-12-08 11:55:45
问题 I am looking at a C++ project on OpenVMS. How different is it from NIX development? Is it a bit like a peculiar UNIX version or LINUX distro? Any peculiarities when it comes to memory management or threading etc? (I know FILE I/O is a bit different). Are the C++ compilers a bit like older C++ versions on other platforms? (Less support for templates etc.) Can I use bash, without touching DCL? What about IDEs, debugging (gdb) source control etc? (It seams NetBeans are OK) Can I work remotely

What's the correct regexp pattern to match a VMS filename?

感情迁移 提交于 2019-12-07 13:06:38
问题 The documentation at http://h71000.www7.hp.com/doc/731final/documentation/pdf/ovms_731_file_app.pdf (section 5-1) says the filename should look like this: node::device:[root.][directory-name]filename.type;version Most of them are optional (like node, device, version) - not sure which ones and how to correctly write this in a regexp, (including the directory name): DISK1:[MYROOT.][MYDIR]FILE.DAT DISK1:[MYDIR]FILE.DAT [MYDIR]FILE.DAT FILE.DAT;10 NODE::DISK5:[REMOTE.ACCESS]FILE.DAT 回答1: See the

How to assign the output of a program to a variable in a DCL com script on VMS?

a 夏天 提交于 2019-11-29 17:09:38
For example, I have a perl script p.pl that writes "5" to stdout. I'd like to assign that output to a variable like so: $ x = perl p.pl ! not working code $ ! now x would be 5 The PIPE command allows you to do Unix-ish pipelining, but DCL is not bash. Getting the output assigned to a symbol is tricky. Each PIPE segment runs in a separate subprocess (like Unix) and there's no way to return a symbol from a subprocess. AFAIK, there's no bash equivalent of assigning stdout to a variable. The typical approach is to write (redirect) the output to a file and then read it back: $ PIPE perl p.pl > temp

How to assign the output of a program to a variable in a DCL com script on VMS?

Deadly 提交于 2019-11-28 10:38:40
问题 For example, I have a perl script p.pl that writes "5" to stdout. I'd like to assign that output to a variable like so: $ x = perl p.pl ! not working code $ ! now x would be 5 回答1: The PIPE command allows you to do Unix-ish pipelining, but DCL is not bash. Getting the output assigned to a symbol is tricky. Each PIPE segment runs in a separate subprocess (like Unix) and there's no way to return a symbol from a subprocess. AFAIK, there's no bash equivalent of assigning stdout to a variable. The