× 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.



Stephen,
That is it!
I needed a 2nd pair of eyes to look at it to find that.

Thanks

Jeff Young
Sr. Programmer Analyst


On Fri, Jun 6, 2014 at 3:33 PM, Stephen Coyle <stephenfcoyle@xxxxxxxxx>
wrote:

I see an unconditional DSPATR(PC) in the subrec DDS.
Maybe that is interfering with the SFLRCDNBR?
Just something to try...

- Steve


On Fri, Jun 6, 2014 at 3:26 PM, Jeff Young <jyoung0950@xxxxxxxxx> wrote:

Booth,
From the DDS Reference Manual:
If CURSOR is specified, the cursor is placed in the subfile record whose
relative record number is identified by the contents of this field. The
cursor is positioned at the first input-capable field in the subfile
record. If there is no input-capable field, the cursor is positioned at
the
first output-only or constant field. For example, if a page can contain
three records, and nine records are contained in the subfile, a SFLRCDNBR
field value of 8 causes records 7, 8, and 9 to be displayed. If CURSOR is
specified, the cursor appears in record 8.

Based on this, my code should be working.
I think I am missing something.
Perhaps due to the subfile being in a window?

Jeff Young
Sr. Programmer Analyst


On Fri, Jun 6, 2014 at 2:52 PM, Booth Martin <booth@xxxxxxxxxxxx> wrote:

As I understand the keyword. the only thing that happens is that the
subfile page containing record 4 will be displayed. Adding "*TOP" will
put
record 4 at the top. With *TOP, the record will be at the top and the
cursor will be where you want it

http://www-01.ibm.com/support/knowledgecenter/SS4QVT_8.5.1/
com.ibm.etools.iseries.langref2.doc/rzakc/rzakcmstdfsfrnm.htm?lang=en

Another choice to put the cursor on record 4, would be to condition the
FOUTPUT field's two DSPATR indicators with an indicator. One line Nnn
and
the other just nn.


On 6/6/2014 1:25 PM, Jeff Young wrote:

All,
I have a display file that contains a subfile that is displayed in a
window
(DDS is at http://code.midrange.com/32d6876eb6.html)

I load the subfile with 4 records.
In my program, I do a Write on the FRTCMD record and EXFMT on FRTCTL.
I set the value of FRT_BEGIN to 4 and display the subfile. The
cursor
remains on record 1.

JEY01C Write FrtCmd
JEY01C Exfmt FrtCtl

What am I missing here?


Jeff Young
Sr. Programmer Analyst


--
Booth Martin
www.martinvt.com
(802)461-5349
Skype: booth.martin

Happiness is having a scratch for every itch. -- Ogden Nash
--
This is the RPG programming on the IBM i (AS/400 and iSeries)
(RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.