A semicolon
Not in the spec is chaos
Add it for order

Sent from my iPhone

On Oct 20, 2014, at 4:27 PM, Buck Calabro <kc2hiz@xxxxxxxxx> wrote:

On 10/20/2014 3:07 PM, RPGLIST wrote:
I started playing around with "totally free" and I was defining a
standalone variable like:

dcl-s xCmlCl# packed(9);

I also tried ...packed(9:0); which did not work either.

I'm starting at position 8.

Its generating an error and when I highlight it it says
"Unexpected Token"

I'm sure its something really stupid but even after reading Jon Paris'
article I still can't figure this out.

One thing that's pretty cool in RDi 9 is the D-spec wizard. Right click
on a blank line in the source, select New > D-Specification...
In the Name box, put xCmlCl#.
It's a standalone field (dcl-s) so that default is OK.
Where to insert? At the current cursor position.
You want free-form, so accept the default 'Generate free-form code'
Click Next.
You want a packed field, so select Packed Decimal for the Type.
Fill in 9 for the length.
Click Finish and the wizard will generate a working d-spec for you. One
which matches the one you pasted to the list.

The beauty of new things is that in the beginning, the mistakes are
simple ones. A missing semicolon - one character! - can cause chaos.
Equally beautiful is watching that chaos disappear when the semicolon is


'I had nothing to offer anybody except my own confusion' - Jack Kerouac
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 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.