- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: cobol file creation on an external disk
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
тАО11-07-2006 12:07 AM
тАО11-07-2006 12:07 AM
cobol file creation on an external disk
I am trying to create a sequential file from a COBOL program on a disk which is not an open VMS disk but on a Windows NT disk whcih is in teh same network. Can someone guide how do i go about this.
For example iam trying like this below
SELECT OUT-FILE ASSIGN TO DISK1
The disk DISK1 is a Windows NT disk located in the same network. Please let me know if we how to pass access control strings if we have to pass or how do i communicate from my Open VMS to Windows.
Thanks
- Tags:
- COBOL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 12:14 AM
тАО11-07-2006 12:14 AM
Re: cobol file creation on an external disk
you would need some pieces of additional software (like NFS server on Windows and NFS client on OpenVMS) to be able to do this. And this has nothing to do with COBOL or any other language.
Once the disk 'DISK1' (or part of it's directory structure) can be seen and mounted from the OpenVMS system, you can access if from your COBOL program.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 12:42 AM
тАО11-07-2006 12:42 AM
Re: cobol file creation on an external disk
Thanks much for your quick response. I am able to see the disk mounted from Open VMS system.This is how it looks when i looked at the disk on Open VMS system. Also kindly let me know if there is any way that we can check if tyeh NFS is installed on Open VMS system.
sh log disk31
"DISK31" = "_NFS38:" (LNM$SYSTEM_TABLE)
sh dev disk31
Device Name : NFS38
Device Status : Mounted
Thanks,
Sunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 12:50 AM
тАО11-07-2006 12:50 AM
Re: cobol file creation on an external disk
- SELECT xxx ASSIGN to YYY
- VALUE OF ID
They map internally to the RMS options "Filename" (FNS=FNA+FNS) and "Default Filename" (DNS=DNA+DNS)
Both names can and will be interpretted as logical names. This avoids hardcoding things like "nfs31:" in the programs.
This is all in the Cobol Userguide, with details in the RMS Ref Manuals.
You probably do not need to knwo any of that though. Before your program runs, in the command file (scripts) which runs it, or interactively define a logical name to direct the output. For example:
$DEFINE DISK1 nfs31:[mydir]myfile.seq
The access control should have been dealt with when the NFS device was mounted.
Good luck!
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 01:13 AM
тАО11-07-2006 01:13 AM
Re: cobol file creation on an external disk
Thank you very much for all your support and assistance which helped me a lot. Looks like i have an access violation issue which i will check from my end.
Thanks again.
Thanks,
Suunny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 01:37 AM
тАО11-07-2006 01:37 AM
Re: cobol file creation on an external disk
looks like you are all set by already using NFS client on your OpenVMS system.
Before you diagnose the access problem from your COBOL program, just try a simple
$ CREATE disk1:
to find out about possible errors creating a file. Or use $ TYPE disk1:
NFS works with GID/UID, so you need to make sure there is a TCPIP proxy for your OpenVMS username, which maps to a GID/UID. Then that GID/UID must allow you access on the Windows NFS server system.
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-07-2006 02:06 AM
тАО11-07-2006 02:06 AM
Re: cobol file creation on an external disk
Pleas egive us the 'exact' error message.
Most of us will read 'access violation' as a hard program failure, but perhaps you mean a 'privilege violation'?
As Volker indicates, let's first be sure that simple remote file access works, outside cobol. Then try the cobol program to write to a local file, and finally when those tow steps work, try to combine.
Cobol listens to some run time environment variables (logical names) to control certain detail actions. For this case you may want to force rms record IO.
$DEFINE COB$USE_RECORD_IO 1
good luck,
Hein