- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: CDO to COBOL
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-06-2008 03:43 PM
тАО11-06-2008 03:43 PM
CDO to COBOL
I have a CDO format record layout. Is there any command to convert this into COBOL record layout format. Attached is the record layout in CDO format. Pls let me know if i have to provide more info
- Tags:
- COBOL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2008 04:40 PM
тАО11-06-2008 04:40 PM
Re: CDO to COBOL
COPY blah FROM DICTIONARY
If you want to remove your dependence on the CDD you could always do it once with a /LIST/COPY and then create a .lib copybook from that.
Cheers Richard Maher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2008 04:44 PM
тАО11-06-2008 04:44 PM
Re: CDO to COBOL
-----------------------------------------
Looking at the .CDO file attached, you probably need more information - ie. you need to find out the definitions of the fields that the record fields are based on. The types of the fields would be here. Then you would need to read the CDD documentation to see how those types convert to COBOL types.
From this you should be able to piece together the COBOL record structures.
If you have access to the Dictionary:
-------------------------------------
If you have access to the dictionary that this comes from, then I would have thought there would be a way in COBOL to refer to the dictionary definition from a program. I don't use COBOL, but in PASCAL you can use %DICTIONARY 'dict_locn:my_record' and it will create a data type in pascal based on the dictionary defintion. You can see how it translates the defintion by looking at the programs listing file.
Cheers,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2008 04:46 PM
тАО11-06-2008 04:46 PM
Re: CDO to COBOL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2008 05:01 PM
тАО11-06-2008 05:01 PM
Re: CDO to COBOL
Thanks for you reply. I looked at some of the existing programs to see how they are invoking and created a listing file but getting an error saying that unable to copy
I found the below command in many of teh programs and created a listing file to find out the record layout
COPY "CDD_REC.TBLMSTR_MASTER" FROM DICTIONARY
this is the logical i have for cdd_rec
sh log cdd_rec
"CDD_REC" = "HNCORP_CDD:RECORDS"
below is the error message
COPY "CDD_REC.TBLMSTR_MASTER" FROM DICTIONARY.
.....1
%COBOL-F-CDDERROR, (1) *CDD error at node CDD_REC.TBLMSTR_MASTER
%COBOL-F-COPYOPEN, (1) Error opening COPY file CDD_REC.TBLMSTR_MASTER
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2008 05:06 PM
тАО11-06-2008 05:06 PM
Re: CDO to COBOL
Thank you all for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-06-2008 11:07 PM
тАО11-06-2008 11:07 PM
Re: CDO to COBOL
OpenVMS Developer & System Manager