- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Error "Environment variable COBDIR not set"
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
Forums
Discussions
Discussions
Discussions
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
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
05-17-2005 06:15 PM
05-17-2005 06:15 PM
Error "Environment variable COBDIR not set"
When i try to execute a cobol applicaiton program i get the error
"Environment variable COBDIR not set"
I have set the COBDIR variable to the COBOL installation directory. But still i am getting this error.
Can anyone help me out in this. I am able to execute cobrun which will give the COBOL version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 06:34 PM
05-17-2005 06:34 PM
Re: Error "Environment variable COBDIR not set"
export COBDIR=blabla
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 06:47 PM
05-17-2005 06:47 PM
Re: Error "Environment variable COBDIR not set"
I think you have set the variable but not exported it and hence the subshell is not able to get the variable. DO it as:
1. # export COBDIR=/xxx/yyy
or
2. # COBDIR=/xxx/yyy
# export COBDIR
Then to check whether it is set properly or not do:
# env | grep COBDIR
This should display the COBDIR variable along with the value set i.e. your directory.
Hope that helps.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:03 PM
05-17-2005 07:03 PM
Re: Error "Environment variable COBDIR not set"
Look like you have not exported the variable.
#export COBDIR=/xxx/yyy
#env
and look for COBDIR.
Sudeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:09 PM
05-17-2005 07:09 PM
Re: Error "Environment variable COBDIR not set"
I can see the path correctly in the output of "set" as well as "env" commands.
Is there any other reasons for the error to occur?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:09 PM
05-17-2005 07:09 PM
Re: Error "Environment variable COBDIR not set"
COBDIR=/cobdir
export COBDIR
Read this for reference more,
http://docs.hp.com/cgi-bin/doc3k/BB243390046.15153/73
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-17-2005 07:41 PM
05-17-2005 07:41 PM
Re: Error "Environment variable COBDIR not set"
COBDIR is the variable to be set if you are using Micro-Focus COBOL to compile and execute applications written in COBOL.
For Micro-Focus COBOL 4.1 the $COBDIR will be pointing to /opt/cobol/cobdir
i.e export COBDIR=/opt/cobol/cobdir
For Micro-Focus COBOL 4.2 onwards the path has chamged to /opt/lib/cobol.
i.e export COBDIR=/opt/lib/cobol
Indira A