I would like to have sample code on the OPCODE LIKEREC with all its parameters like with *All and *KEY and *INPUT and *OUTPUT.
Also, I want to know whether OPCODE EVAL-CORR in iSeries or not because when I want to transfer data from one DS (Data Structure) to another DS using EVAL-CORR, I'm getting an error and the error is because of this EVAL-CORR OPCODE. It says 'EVAL OPERAND EXPECTS ASSIGNMENT OPERATOR'.
Software/Hardware used:
ISERIES MOCHATN5250
ASKED:
February 8, 2013 4:27 AM
UPDATED:
February 8, 2013 1:17 PM
The source examples for LIKEREC are easy. Here’s what each variation looks like:
d recDS ds dim( 2 ) qualified d recEDS1 likerec( CUSREC ) d recEDS2 likerec( CUSREC : *ALL ) d recEDS3 likerec( CUSREC : *INPUT ) d recEDS4 likerec( CUSREC : *OUTPUT ) d recEDS5 likerec( CUSREC : *KEY )But the EVAL-CORR message is a little more difficult. There are no such messages exactly as you show, particularly all in UPPER-CASE, and you didn’t give any message ID to look up. So it’s too difficult to determine what message it is.
Of course, according to the message text that you do show, you are either missing your assignment operator or you’re using an incorrect one. But like the lack of a message ID, you also don’t show the source that is getting the error. We can’t figure out what might be wrong if you don’t show us the lines with the problem.
Tom