jaicee
0 pts. | Aug 3 2005 6:12PM GMT
Without knowing what you’re trying to do, there’s a few things you have to look at. First off, the book says (for READ):
“If the data-structure operand is specified, the record is read directly into the data structure. … If name refers to an externally-described file or a record format from an externally described file, the data structure must be a data structure defined with EXTNAME(…:*INPUT) or LIKEREC(…:*INPUT)”.
Your file is defined as update/add so you could read, write or update a record. You may need more than one data-structure. The following would work…
D jkDataIn ds likerec(arec: *input) //for reads
D jkDataOut ds likerec(arec: *output) //for writes and updates
However the error you got says: “Recovery: For an input operation, define the data structure using keyword LIKEREC, with the record name as the first parameter and *INPUT as the second parameter. For output operations, code *OUTPUT as the second parameter of LIKEREC. Compile again”.
So again, you may want to read up on the other opcodes, likerec() and extname().
Hope that helps!






