If you are doing this via green screen I don't see much of a need for screen
scraping per se.

If you are -not- using DDS green screen, go ahead and hit delete now :)

If you want to know that they pressed the function key at the customer number
location you can add something like this to the DDS: (we use this for F4 style
of field level pop up)

      A                                      RTNCSRLOC(&CSRREC &CSRFLD)
      A            CSRREC        10A  H      (current record
      A            CSRFLD        10A  H      (current field

If it is a subfile that shows a list of customers, add this to your program:
(not column correct ... we use this for a point and select functions)

      F* -----------------------------------------------------------------*
      FXXXXXXXXCF  E                    WORKSTN
      F                                              KINFDS $INFDS

      I                                    B 282 2830WSROW$           CURSOR ROW
      I                                    B 284 2850WSCOL$           CURSOR

      C           WSROW$    IFGE 09                    SFL SCREEN START ROW
      C           WSROW$    ANDLE21                    SFL SCREEN BOTTOM ROW
      C* Determine which subfile entry the cursor was at when Fkey pressed
      C           WSROW$    SUB  09        WRK040  40  SFL OFFSET FROM TOP OF
      C           WSTOP#    ADD  WRK040    WSSFL#      WSTOP#=SFL REC# AT TOP OF
      C* Determine the customer number / order number selected for
      C           WSSFL#    CHAINSUBFILE               WSSFL#=SFL REC# CURSOR AT

                        (call your program here)

      C                     ENDIF

You don't say if management wants to do this mail merge in real time (letter on
demand) or if a batch process is to follow.  Batch is simple, output to a file,
FTP the file to your PC and import it into WORD.  Come to think of it, you could
probably do the same thing for a demand process.  Can't talk about execution
speed though.  Would need an FTP server running on your PC I think.

Hope I didn't totally miss the boat as to the nature of your request.

Dan Rasch wrote:
> I need to update the list, folks.
> What management really wanted was th ability to have the cursor on a
> customer number, mash a function key, and then import the customers
> name and address via mailmerge into a promotions/past due/we're moving
> type of document.

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.