Re: Looking for COBOL SYSADATA record layouts

2023-12-27 Thread Charles Mills
Just to close the loop on this, I completed sufficient record conversions to 
satisfy my requirement using the method described below. I would post a longer 
example here but I think LISTSERV would make hash out of it. Here is a 
three-line example of my resulting C header fields. Hopefully LISTSERV does not 
hash it too much. Thanks all for your suggestions.

charDate[8];// The date of the compilation in the format 
MMDD
charTime[4];// The time of the compilation in the format 
HHMM
charProduct_number[8];  // The product number of the compiler 
that produced the associated data file

CM


On Sat, 16 Dec 2023 12:28:11 -0600, Charles Mills  wrote:

>You know what I am actually looking at doing? You may laugh but it has worked 
>for me in the past. I am thinking of pulling the IBM HTML documentation into 
>MS-Word and massaging it there into C declarations. I did this for a *LOT* of 
>RACF record layouts for the CorreLog product, so I know whereof I speak. Why 
>MS-Word?
>
>- IBM's HTML tables map to MS-Word tables. You can then manipulate stuff by 
>columns. For example, the doc's Foo CL8 wants to become char Foo[8]; So you 
>duplicate the CL8 column and have CL8 Foo CL8. Then you change the first 
>column's CL8 to char and the third column's CL8 to [8]; and you are most of 
>the way there. Not sure if this description make sense, but it works, at least 
>for me.
>- Good visual text manipulation tools
>- I have done it before and am familiar with it.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Looking for COBOL SYSADATA record layouts

2023-12-16 Thread Matt Hogstrom
Provides more detail on the link Kirk provided.

https://developer.ibm.com/tutorials/build-java-records-from-cobol-with-ibm-record-generator/

Matt Hogstrom
m...@hogstrom.org
+1-919-656-0564
PGP Key: 0x90ECB270
Facebook   LinkedIn 
  Twitter 

“It may be cognitive, but, it ain’t intuitive."
— Hogstrom

> On Dec 16, 2023, at 12:28, Kirk Wolf  wrote:
> 
> Along with generating Java mapping classes, you can also spit out XML 
> descriptions.
> 
> I haven't looked at this in a long time and I'm not 100% sure that IBM 
> provided DSECTS, but I think that they did.  I looked and can't find them 
> either.  


--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Looking for COBOL SYSADATA record layouts

2023-12-16 Thread Ed Jaffe
That's silly. Anyone can do that. You don't need a go-between. It's a 
DIY affair!


The "captain's" name is Tom Ross, works for IBM, hangs out on various 
email lists, comes to our PSI party at every SHARE, and his email 
address is tmr...@us.ibm.com...


On 12/16/2023 10:29 AM, Charles Mills wrote:

Sure. ¿Porque no? Thanks,

Charles

On Sat, 16 Dec 2023 17:54:36 +, M. Ray Mullins  
wrote:


Charles,

Would you like me to ping Captain COBOL?





This e-mail message, including any attachments, appended messages and the
information contained therein, is for the sole use of the intended
recipient(s). If you are not an intended recipient or have otherwise
received this email message in error, any use, dissemination, distribution,
review, storage or copying of this e-mail message and the information
contained therein is strictly prohibited. If you are not an intended
recipient, please contact the sender by reply e-mail and destroy all copies
of this email message and do not otherwise utilize or retain this email
message or any or all of the information contained therein. Although this
email message and any attachments or appended messages are believed to be
free of any virus or other defect that might affect any computer system into
which it is received and opened, it is the responsibility of the recipient
to ensure that it is virus free and no responsibility is accepted by the
sender for any loss or damage arising in any way from its opening or use.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Looking for COBOL SYSADATA record layouts

2023-12-16 Thread Charles Mills
Sure. ¿Porque no? Thanks,

Charles

On Sat, 16 Dec 2023 17:54:36 +, M. Ray Mullins  
wrote:

>Charles,
>
>Would you like me to ping Captain COBOL?

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Looking for COBOL SYSADATA record layouts

2023-12-16 Thread Charles Mills
You know what I am actually looking at doing? You may laugh but it has worked 
for me in the past. I am thinking of pulling the IBM HTML documentation into 
MS-Word and massaging it there into C declarations. I did this for a *LOT* of 
RACF record layouts for the CorreLog product, so I know whereof I speak. Why 
MS-Word?

- IBM's HTML tables map to MS-Word tables. You can then manipulate stuff by 
columns. For example, the doc's Foo CL8 wants to become char Foo[8]; So you 
duplicate the CL8 column and have CL8 Foo CL8. Then you change the first 
column's CL8 to char and the third column's CL8 to [8]; and you are most of the 
way there. Not sure if this description make sense, but it works, at least for 
me.
- Good visual text manipulation tools
- I have done it before and am familiar with it.

Charles

On Sat, 16 Dec 2023 12:12:01 -0600, Kirk Wolf  wrote:

>>
>> I am not much of a Java guy but IIRC it would be a fairly short editing leap 
>> from Java classes to C structs.
>
>Depends on what you mean by "fairly short" :-)
>
>It would be good if you could find the DSECTS for Cobol ADATA, but if you look 
>at the ADATA produced by Cobol, you'll likely find that you only need a couple 
>of record types.   You could just type these into structs in a few hours, and 
>it would  be easier than translating from Java code.   But mapping the ADATA 
>records is by far the easiest part :-)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Looking for COBOL SYSADATA record layouts

2023-12-16 Thread Kirk Wolf
> 
> I am not much of a Java guy but IIRC it would be a fairly short editing leap 
> from Java classes to C structs.

Depends on what you mean by "fairly short" :-)

It would be good if you could find the DSECTS for Cobol ADATA, but if you look 
at the ADATA produced by Cobol, you'll likely find that you only need a couple 
of record types.   You could just type these into structs in a few hours, and 
it would  be easier than translating from Java code.   But mapping the ADATA 
records is by far the easiest part :-)

Kirk Wolf
Dovetailed Technologies
http:// coztoolkit.com

On Sat, Dec 16, 2023, at 11:47 AM, Charles Mills wrote:
> @Kirk, interesting. I was not aware of that tool. I have used the DSECT to C 
> header conversion tool that is part of the XLC product, but I was not aware 
> of this tool.
> 
> I am not much of a Java guy but IIRC it would be a fairly short editing leap 
> from Java classes to C structs.
> 
> Unfortunately, as you imply, it needs DSECT or COBOL layouts as input, and I 
> don't have that. What is needed is a tool that would take a PDF manual as 
> input! (Only half kidding. Could ChatGPT do that?)
> 
> I have the HLASM ADATA layouts in DSECT form, but most of the record types 
> are not alike beyond the name and the type code.
> 
> Charles
> 
> On Sat, 16 Dec 2023 11:28:22 -0600, Kirk Wolf  wrote:
> 
> >Hi Charles,
> >
> >This may not be what you are looking for, but as I recall it's pretty cool:
> >
> >https://www.ibm.com/docs/en/record-generator/3.0?topic=what-is-record-generator-java
> >
> >Along with generating Java mapping classes, you can also spit out XML 
> >descriptions.
> >
> >I haven't looked at this in a long time and I'm not 100% sure that IBM 
> >provided DSECTS, but I think that they did.  I looked and can't find them 
> >either.
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Looking for COBOL SYSADATA record layouts

2023-12-16 Thread M. Ray Mullins
Charles,

Would you like me to ping Captain COBOL?

Cheers,
Ray

Sent from Outlook<https://aka.ms/qtex0l> for iOS on my personal iPhone

From: IBM Mainframe Discussion List  on behalf of 
Charles Mills 
Sent: Saturday, December 16, 2023 9:47:54 AM
To: IBM-MAIN@LISTSERV.UA.EDU 
Subject: Re: Looking for COBOL SYSADATA record layouts

@Kirk, interesting. I was not aware of that tool. I have used the DSECT to C 
header conversion tool that is part of the XLC product, but I was not aware of 
this tool.

I am not much of a Java guy but IIRC it would be a fairly short editing leap 
from Java classes to C structs.

Unfortunately, as you imply, it needs DSECT or COBOL layouts as input, and I 
don't have that. What is needed is a tool that would take a PDF manual as 
input! (Only half kidding. Could ChatGPT do that?)

I have the HLASM ADATA layouts in DSECT form, but most of the record types are 
not alike beyond the name and the type code.

Charles

On Sat, 16 Dec 2023 11:28:22 -0600, Kirk Wolf  wrote:

>Hi Charles,
>
>This may not be what you are looking for, but as I recall it's pretty cool:
>
>https://www.ibm.com/docs/en/record-generator/3.0?topic=what-is-record-generator-java
>
>Along with generating Java mapping classes, you can also spit out XML 
>descriptions.
>
>I haven't looked at this in a long time and I'm not 100% sure that IBM 
>provided DSECTS, but I think that they did.  I looked and can't find them 
>either.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Looking for COBOL SYSADATA record layouts

2023-12-16 Thread Charles Mills
@Kirk, interesting. I was not aware of that tool. I have used the DSECT to C 
header conversion tool that is part of the XLC product, but I was not aware of 
this tool.

I am not much of a Java guy but IIRC it would be a fairly short editing leap 
from Java classes to C structs.

Unfortunately, as you imply, it needs DSECT or COBOL layouts as input, and I 
don't have that. What is needed is a tool that would take a PDF manual as 
input! (Only half kidding. Could ChatGPT do that?)

I have the HLASM ADATA layouts in DSECT form, but most of the record types are 
not alike beyond the name and the type code.

Charles

On Sat, 16 Dec 2023 11:28:22 -0600, Kirk Wolf  wrote:

>Hi Charles,
>
>This may not be what you are looking for, but as I recall it's pretty cool:
>
>https://www.ibm.com/docs/en/record-generator/3.0?topic=what-is-record-generator-java
>
>Along with generating Java mapping classes, you can also spit out XML 
>descriptions.
>
>I haven't looked at this in a long time and I'm not 100% sure that IBM 
>provided DSECTS, but I think that they did.  I looked and can't find them 
>either.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Looking for COBOL SYSADATA record layouts

2023-12-16 Thread Charles Mills
ASM ≠ COBOL

The ADATA records for the two products have a lot in common but not as much as 
one might hope.

Charles

On Sat, 16 Dec 2023 08:03:46 -0600, Ralph Spadafora 
 wrote:

>HLA.SASMMAC1(ASMADATA)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Looking for COBOL SYSADATA record layouts

2023-12-16 Thread Kirk Wolf
Hi Charles,

This may not be what you are looking for, but as I recall it's pretty cool:

https://www.ibm.com/docs/en/record-generator/3.0?topic=what-is-record-generator-java

Along with generating Java mapping classes, you can also spit out XML 
descriptions.

I haven't looked at this in a long time and I'm not 100% sure that IBM provided 
DSECTS, but I think that they did.  I looked and can't find them either.  

Kirk Wolf
Dovetailed Technologies
http:// coztoolkit.com

PS> When it comes to mapping Cobol records in C, you'll find that the basic 
stuff isn't hard, but the weird stuff is a nightmare.

On Fri, Dec 15, 2023, at 10:37 AM, Charles Mills wrote:
> I am looking for compiler-readable record layouts for Enterprise COBOL 
> SYSADATA. I see the human-oriented record descriptions in the Programming 
> Guide. I see the sample exit program in IGYxxx.SAMPLIB(ADEXIT), which 
> contains (very) partial record layouts. I have searched SYS1.SIEAHDR.H. I 
> have looked in IGYxxx.MACLIB and SYS1.MACLIB. I have asked the Goo Gal.
> 
> Source language, in order of descending preference, would be C header, 
> Assembler DSECT, or anything else.
> 
> Thanks!
> 
> Charles
> 
> --
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> 

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Looking for COBOL SYSADATA record layouts

2023-12-16 Thread Ralph Spadafora
HLA.SASMMAC1(ASMADATA)

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Looking for COBOL SYSADATA record layouts

2023-12-15 Thread Charles Mills
+1

Not the solution to my problem today, however. 

CM

On Fri, 15 Dec 2023 11:30:28 -0600, Paul Gilmartin  wrote:

>On Fri, 15 Dec 2023 10:37:56 -0600, Charles Mills wrote:
>
>>I am looking for compiler-readable record layouts ...
>>
>>Source language, in order of descending preference, would be C header, 
>>Assembler DSECT, or anything else.
>>
>I see a need for a universal data format specification language generating 
>output
>for both compilers and documentation.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Looking for COBOL SYSADATA record layouts

2023-12-15 Thread Paul Gilmartin
On Fri, 15 Dec 2023 10:37:56 -0600, Charles Mills wrote:

>I am looking for compiler-readable record layouts ...
>
>Source language, in order of descending preference, would be C header, 
>Assembler DSECT, or anything else.
>
I see a need for a universal data format specification language generating 
output
for both compilers and documentation.

Might XML provide a solution?

-- 
gil

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Looking for COBOL SYSADATA record layouts

2023-12-15 Thread Charles Mills
I am looking for compiler-readable record layouts for Enterprise COBOL 
SYSADATA. I see the human-oriented record descriptions in the Programming 
Guide. I see the sample exit program in IGYxxx.SAMPLIB(ADEXIT), which contains 
(very) partial record layouts. I have searched SYS1.SIEAHDR.H. I have looked in 
IGYxxx.MACLIB and SYS1.MACLIB. I have asked the Goo Gal.

Source language, in order of descending preference, would be C header, 
Assembler DSECT, or anything else.

Thanks!

Charles

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN