Hi Ken,
I am glad it is getting clearer for you.
The 'S' shift is allowed with output fields as well, but the EDCDE/EDTWRD
keywords require a 'Y' shift.
If you do not specify a data type explicitly, as soon as you specify
decimals, the numeric type becomes 'S' unless there is an EDTCDE/EDTWRD
keyword in which case it becomes 'Y'.
I think you were trying to force it to be 'S' which is not valid DDS and
this is why you got the compiler error.
I am glad you are making the effort to learn the DDS Designer, I believe
you will find it far more productive than SDA as you get over the learning
curve.
Regards,
Edmund (E.H.) Reinhardt
COBOL IDE on AIX, DDS, WebFacing, System i Application Development,
Rational Developer for Power
2D barcode Phone: 1-905-413-3125 | Phone: 1-905-854-6195 IBM
- encoded E-mail: edmund.reinhardt@xxxxxxxxxx
with AIX COBOL: 8200 Warden Ave
contact www.youtube.com/user/IBMRational#g/c/62DF24D5BCD43501 Markham, ON L6G 1C7
information "In every thing give thanks: for this is the will of Canada
God in Christ Jesus concerning you." - 1
Thessalonians 5:18
From: Ken Killian <kkillian@xxxxxxxxxxxx>
To: "Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries" <wdsci-l@xxxxxxxxxxxx>,
Date: 03/22/2013 12:35 PM
Subject: Re: [WDSCI-L] RDP 8.0 Designer wrong Attributes...
Sent by: wdsci-l-bounces@xxxxxxxxxxxx
Yup, that worked...
Just surprised, when I added field, and changed things in the Designer, and
got errors...
But tried the same thing inside SDA, it changed the type automatically...
SDA did not tell me, but when I examined the code, it change it from type
"S" to "Y"...
While inside the DDS designer, it stayed as "S", and gave me the error:
CPD7554 - Keyword not valid with data type or keyboard shift value.
Quick Review:
SDA:
Add field Numeric "+999999".
Change the "Keyboard shift Attribute" to "S" Signed Numeric.
and redefine as 6,0
Source show: FLD001 6S 0B 5 12
Add EDTCDE(Y) using SDA...
Change the type to '66/66/66" for output only. Over type the "9"(Both)
Compiles fine! <Big Smile>
Re-Example the source:
FLD002 6Y 0O 5 12EDTCDE(Y)
DDS Designer
Drag Name-Field on screen
TAB: (Basics) Using Property change the following:
Usage: Output
Type: Zoned
Shift: S - Signed Numeric
Length 6, 0
Tab: (Editing)
Edit type: Edit Code (EDTCDE)
Select "Y" for date, but does NOT show that on the screen
Flip to source view to compile, and I NOW get an error in the Compile:
CPD7554 Keyword not valid with data type or keyboard shift value.
Shucks!!!! Trying it again, it did change the type to Shift: "Y"...
I must have gotten confused and reset it a "S"...
On SDA, when the field is OUTPUT, I CANNOT change the "SHIFT", so that is
why I do NOT get the error with SDA...
So... Maybe the "Shift:" should be Protect when OUTPUT is selected...
<grin>
I guess RDP DDS Designer gives you FULL Control to shoot yourself in the
foot....
<embarrassed smile>
-Ken Killian-
(423) 510-3129
-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On
Behalf Of Edmund Reinhardt
Sent: Friday, March 22, 2013 11:21 AM
To: Rational Developer for IBM i / Websphere Development Studio Client for
System i & iSeries
Cc: wdsci-l-bounces@xxxxxxxxxxxx
Subject: Re: [WDSCI-L] RDP 8.0 Designer wrong Attributes...
Ken, if you use the Properties view, it will show you exactly what you are
changing.
The default type is Character and usage is Both. I changed the type to
Zoned and changed the shift to "S" and it did not change the usage to
Output when I did it.
Regards,
Edmund (E.H.) Reinhardt
COBOL IDE on AIX, DDS, WebFacing, System i Application Development,
Rational Developer for Power
2D barcode Phone: 1-905-413-3125 | Phone: 1-905-854-6195
IBM
- encoded E-mail: edmund.reinhardt@xxxxxxxxxx
with AIX COBOL:
8200 Warden Ave
contact www.youtube.com/user/IBMRational#g/c/62DF24D5BCD43501
Markham, ON L6G 1C7
information "In every thing give thanks: for this is the will of
Canada
God in Christ Jesus concerning you." - 1
Thessalonians 5:18
From: Ken Killian <kkillian@xxxxxxxxxxxx>
To: "Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries" <wdsci-l@xxxxxxxxxxxx>,
Date: 03/22/2013 10:38 AM
Subject: [WDSCI-L] RDP 8.0 Designer wrong Attributes...
Sent by: wdsci-l-bounces@xxxxxxxxxxxx
It seems any more, I do NOT to get to design many screen much...
:(
But, using the RDP screen Designer, I add a field to my screen. Set it to
"S"=Signed Numeric. Then changed it OUTPUT only. And added an EDTCDE(Y).
My screen compile failed...
Did the exact same thing inside SDA, and it did NOT Fail. Behind the
scenes, it seemed to change the keyboard type from "S" to "Y" and it
worked!
Just wondering why RDP DDS Design does NOT work the same way...
-Ken Killian-
(423) 510-3129
--
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.
--
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.