- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: ANALYZE/IMAGE callable interface?
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
тАО03-07-2007 06:47 PM
тАО03-07-2007 06:47 PM
Re: ANALYZE/IMAGE callable interface?
name PIC S9(6) comp value is external name
Also the compiler accepts that with a "comp"-Variable - means integer...
Anyone an idea for a string?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2007 08:23 PM
тАО03-07-2007 08:23 PM
Re: ANALYZE/IMAGE callable interface?
> Anyone an idea for a string?
I haven't got an example in COBOL, but I have used the technique described by Hoff for years from C.
In the .OPT file, e.g.
SYMBOL=QVER,%x332E3056
The hex-value, converted to ASCII and read from right to left is "V0.3"
In my C code, I declare a global value:
globalvalue int QVER;
Then, I declare a descriptor like this:
int vers = QVER;
struct dsc$descriptor_s dsc = {
(unsigned short int) sizeof ( int )
, (unsigned char) DSC$K_DTYPE_T
, (unsigned char) DSC$K_CLASS_S
, (char *) &vers
}
This descriptor I then use in a call to lib$put_output:
int sts;
sts = lib$put_output ( &dsc );
Hope this helps,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2007 10:16 PM
тАО03-07-2007 10:16 PM
Re: ANALYZE/IMAGE callable interface?
Thanks for all for help!
best regards,
Kay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-08-2007 02:18 AM
тАО03-08-2007 02:18 AM
Re: ANALYZE/IMAGE callable interface?
For cases where I needed a text string (such as for cases of human display), I stuff the same values into a standard print statement enveloped with the appropriate prettiness.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 11:41 PM
тАО03-12-2007 11:41 PM
Re: ANALYZE/IMAGE callable interface?
We'll use the solution with the gloabl symbols in the opt-file. It is easy to use, portable and adaptable with less effort.
Best regards,
Kay Dolle
- « Previous
- Next »