Hi. I'm trying to create a string with the user, date, and time from a file:
Bpcusr is 10 bytes, character. Bpcdat is 7,0 packed in CYYMMDD format, and Bpctim is 6,0 packed in hhmmss format.
The program gives the following error message when I compile:
What's going on? According to the V5R1 manual, this should work. What am I doing wrong?
"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."
--Leonardo da Vinci
Code:
C Eval Error_msg = %TRIM(Bpcusr) + ' ' +
C + %TRIM(%CHAR(%DATE(Bpcdat:*CYMD) : *JOBRUN))
C + ' '
C + %TRIM(%CHAR(%TIME(Bpctim:*HMS) : *JOBRUN))
Bpcusr is 10 bytes, character. Bpcdat is 7,0 packed in CYYMMDD format, and Bpctim is 6,0 packed in hhmmss format.
The program gives the following error message when I compile:
Code:
*RNF7421 30 056700 Operands are not compatible with the type of operator.
What's going on? According to the V5R1 manual, this should work. What am I doing wrong?
"When once you have tasted flight, you will forever walk the Earth with your eyes turned skyward, for here you have been, and there you will always long to return."
--Leonardo da Vinci