× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Jim,

I think you've already figured this out, but just in case...

The error here is that IN is the name of an opcode in RPG. So the statement thinks you're trying to use the IN opcode, which takes a factor one operand, and... basically, it's all confused because of the IN.

Change your data structure name to something else, and that will solve that problem.

The %TIMESTAMP that everyone is dwelling on is another problem, but isn't the error in your compile listing. I would expect the way you assign a timestamp would look like this:

myDS.StartDate = z'2015-12-08-14.26.46.000000';

the 'z' before the quote means it's a timestamp literal. The BIF is only necessary if you want to convert data at run time, for example, if you have a timestamp in a character variable and want to convert it. Using a 'z' like this is better when you have a literal/constant value.

-SK


On 1/19/2016 10:59 AM, Jim Franz wrote:
Getting a compiler error from CRTRPGMOD

000105 in.StartDate =
%timestamp('2015-12-08T14:26:46');
======> a
b
*RNF5008 20 a 000105 Factor 1 operand is not valid; defaults to
blanks.
*RNF5507 30 b 000105 A semi-colon is not specified at the end of a
free-format

specification.
000106 in.EndDate =
%timestamp('2015-12-16T00:00:00');
======> a
b
*RNF5008 20 a 000106 Factor 1 operand is not valid; defaults to
blanks.
*RNF5507 30 b 000106 A semi-colon is not specified at the end of a
free-format

specification.

same error if statement in.StartDate = StartDT;

statement starts in column 10, so not the ptf issue with /free code in
column 1 - 6
5770WDS SI51094 is applied.

Many other ptfs for WDS in google - hoping to narrow this down.
Not an option to load cume (that requires a month of testing ...)

This is code generated from WSDL2RPG but all I see says this should work.

This is most of the parms for CRTRPGMOD
CRTRPGMOD MODULE(FRANZJI/WS0001R) SRCFILE(*LIBL/QRPGLESRC) SRCMBR(WS0001R)
GENLVL(10) DBGVIEW(*LIST) OPTIMIZE(*NONE) INDENT(*NONE) CVTOPT(*NONE)
TRUNCNBR(
*NO) FIXNBR(*NONE) TGTRLS(*CURRENT) ALWNULL(*NO) DEFINE(*NONE)
BNDDIR(*NONE)

Jim Franz


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.