Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert COBOL-Structures to PLI

Status
Not open for further replies.

schmetterling

Instructor
Jun 28, 2003
11
DE
Dear Forum,

we work with cobol and pli.
I want to convert the cobol-structures to pli.

Thanks a lot in advance !!

Eva
 
Last time I looked, PL/1 supported structures very similar ot COBOL Groups/Records. What specifically did you need to know?

Regards.

Glenn
 
Hi Glenn,

i mean a translation from the cobol-structure to a pli-structure so that the comments (in cobol a '*' in column 7) are converted to pli (in pli /* for the begin, */ for the end of the comment).

In additional all the data-types should be converted (cobol: Pic S9(3)V99 comp-3 to pli: Dec.....).

Best regards !!

Eva
 
Eva -

I don't have anything handy to do that. Sounds like you need a little parser utility. Perhaps someone else on the list can assist?

Glenn
 
A caveat! A PL/I structure assingment is not the same as a COBOL group move. A PL/I structure assignment is equivalent to an assignment of the individual fields.

For example, MOVE "A" TO GROUP-X results in GROUP-X containing an "A" in the first byte and spaces in all the other bytes, regardless of the definition of the elementary fields withing GROUP-X.

In PL/I, STRUCTURE-X = "A" results in each elementary field within STRUCTURE-X containing an "A" followed by spaces. Also, the compiler should mark this statement as an error if any of the elementary fields are not alphameric.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top