Amazingly enough, we seem to have a lot of COBOL code that I would consider poor, i.e. the overall structure is poor and is hard to understand what the program's doing.
Are there any tools that can examine a program and output a more meaningful view of the structure, e.g. in diagram form, that...
At present, practically all development of COBOL pgms that will ultimately reside on the m/f is performed on the same m/f. This includes code-cutting and the initial testing.
This draws on the m/f's resources (which are expensive!) and turnaround time isn't fast (compared to PC-based IDEs), so...
From my investigations, the 'generate' statement cannot handle attributes - I built myself a little routine to insert an attribute (name and value) post-generation. I also found that the resulting XML will have tags for all datanames in the COBOL structure, even when some have no values (when...
I have used the XML features in Enterprise COBOL for some time, and have never got around the 'encoding' issue. I take the simple approach and scan/remove the complete tag before parsing (which is easy for me as the input document always has the encoding tag at the start.
You're right, Tom, in that the mainframe doesn't offer up the same variety of function available in other environments - you've got a 'parse' and generate' function in COBOL, but nothing else along the lines of stylesheets, etc (at least not to my knowledge).
I have built my own post-processer...
Ah, now there's another story. In short, LOW-VALUES doesn't work. In long, if XML GENERATE finds a field containing LOW-VALUES, even if one character of 30 is LOW-VALUES, it generates an XML string but (a) converts the content into hex, and (b) alters the element name to reflect that the content...
It may not be clear from the above, but there is a single space as the 'value' for <addressLine3> (the formatting of the thread content makes this hard to pick out).
I'm using the XML GENERATE statement to convert a fixed-format data structure into XML. However, some of my data items in the structure are empty, and the conversion deals with this like so:-
01 addressArea.
05 addressLine1 PIC X(30).
05 addressLine2 PIC X(30).
05 addressLine3...
We are starting to implement use of XML PARSE and GENERATE statements and are having an issue with overflow conditions.
Previously, we had subroutines that encountered overflow conditions that were trapped (e.g via ON EXCEPTION, etc) but otherwise continued fine. Apparently this is because the...
I appreciate what you are saying, but since such technology doesn't appear to exist within the COBOL compiler, I'm afraid the advice is not very useful (after all, what's the point in referring to an answer that in this instance isn't possible).
The question is whether the required process is...
Not having much luck in the manuals, which makes me think this isn't possible.......
I have a small XML structure that is to be generated from my Enterprise COBOL v3.3 program. Although simple, one of the elements has a number of attributes.
Question: Is it possible to define the w-s group...
Kumaresh,
I've got further in that we have successfully deployed v3.2 of Enterprise COBOL and got XML PARSE working fine - it's brilliant.
I have asked our operations area to acquire v3.3 so we can use XML GENERATE. This is now on-site and we should have installed (for general development use)...
Wim,
Thanks for your replies, but unfortunately I think you're a bit off track on the subject matter.
I was after examples of COBOL programs that make use of the latest features of the Enterprise COBOL for z/os v3.3 compiler, specifically those that support XML, such 'XML PARSE' and 'XML...
I am doing some investigative work with regard to using (or not) the new XML features of the latest COBOL compiler.
I have seen examples of v3.2 and the use of the 'XML PARSE' statement, but as yet I cannot find the exact format nor examples of the advertised 'XML GENERATE' statement.
Has...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.