Re: Help with Free Format RPG
- From: "Jonathan Ball" <notgenx32@xxxxxxxxx>
- Date: 8 Sep 2005 12:58:41 -0700
Eb wrote:
> I just tried this test program with no luck.
>
> The file is keyed by Order# the field is 6 zoned 0 decimals.
>
> I've tried () and without ().
> I've tried using the filename and the record format name.
I don't know what to tell you. I just did the following, and it
worked:
create table jonathan.testtable2 (thekey numeric(6,0) primary key,
thedata char(10));
insert into jonathan.testtable2 values(12345,'XXXXXXXXXX')
Created program and ran it in debug:
Program: TESTCHAIN Library: JONATHAN Module:
1 ftesttable2if e k disk
rename(testtable2:testfmt)
2 d mykeyfld s 6s 0 inz(12345)
3 /free
4 chain mykeyfld testtable2;
5 if %found(testtable2);
6 mykeyfld = *zero;
7 endif;
8 *inlr = *on;
9 return;
10 /end-free
I set a breakpoint at line 5, then pressed F10 and it advanced to line
6: the %found condition was on.
.
- References:
- Help with Free Format RPG
- From: Eb
- Re: Help with Free Format RPG
- From: Jonathan Ball
- Re: Help with Free Format RPG
- From: Eb
- Help with Free Format RPG
- Prev by Date: Re: Help with Free Format RPG
- Next by Date: Re: Help with Free Format RPG
- Previous by thread: Re: Help with Free Format RPG
- Next by thread: Re: Help with Free Format RPG
- Index(es):
Relevant Pages
|
Loading