View previous topic :: View next topic
|
Author |
Message |
Midhun Mohandas
New User
Joined: 03 Mar 2014 Posts: 24 Location: India
|
|
|
|
Hi all,
I am trying to compile a cobol-db2 program under OMVS, and I am getting following error.
"
IGYOS4081-U DSNH006I DSNHPSRV FILE "DBRMLIB " COULD NOT BE OPENED.
"
It is shown that DBRM Library cannot be opened. But I do not know how to create a DBRM Library under OMVS and even if I create a file called "DBRMLIB" under OMVS how can the compiler identifies that it is DBRMLIB ?
Do I need to export DBRM Library from MVS ?
If I have to export it, then where should I export it?
Please help me in solving the issue... |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Ask your site support for the process that should be used at your site. |
|
Back to top |
|
|
TheMFKid
New User
Joined: 20 Nov 2013 Posts: 91 Location: India
|
|
|
|
Midhun Mohandas wrote: |
But I do not know how to create a DBRM Library under OMVS and even if I create a file called "DBRMLIB" under OMVS how can the compiler identifies that it is DBRMLIB ?
|
In your compile JCL, under the program compile step(EXEC PGM=IGYCRCTL) there will be a DBRMLIB(ddname) DD statement , if your program is Cobol-DB2. Find which dataset is assigned to DBRRMLIB dd. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Why do you want to do this under OMVS?
Just curious as none of our db2 compiles are compiled under OMVS.
In your OMVS environment is there standard compile JCL? And are you using it? There should be and you should use it - not create your own . . . |
|
Back to top |
|
|
Midhun Mohandas
New User
Joined: 03 Mar 2014 Posts: 24 Location: India
|
|
|
|
Hi dick scherrer,
In OMVS I am not using any compile JCLs and instead of that I am using a command "cob2", which is used to compile a cobol program under OMVS.
The cobol program is converted to a .cbl file and exported to OMVS region, then compiled using OMVS 'cob2 command'.
I hope you are clear with your doubt. Now could you please answer my question. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Does your cob2 command compile cobol/db2 programs? Check with your support to determine this and to find out how to invoke the command correctly - maybe there are options that you are not specifying? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
I hope you are clear with your doubt |
No, as you didn't answer my question as to Why you are compiling in OMVS.
I suspect cob2 is a script (what unix uses instead of jcl).
Suggest you speak with whoever supports cob2 and make sure you are using it correctly.
If you have one of these that is working, compare the successful invocation against the problem run. |
|
Back to top |
|
|
|