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



How can you make an update of a record without a chain, read ?
Add the lines preceeded by >>>

----- Original Message ----- 
From: "Stiju Easo" <stiju.as400@xxxxxxxxx>
To: <rpg400-l@xxxxxxxxxxxx>
Sent: Thursday, March 09, 2006 9:47 AM
Subject: Abt update


> Hello,
>
>           While doing a maintenance subfile  , i got a problem.. the edit
i
> do in the screen is not reflected in the data base,
>  i used update for changing database , i am pating section of code below
..
> please point out error.
>
>
>
> 0320.00 C                   WRITE     FOOTER
> 0321.00 C                   EXFMT     CUSTMTCTL
> 0322.00 C**  IF F5 IS PRESSED PROCESS POSSITION VALUE
> 0323.00 C                   IF        *IN05=*ON
> 0324.00 C                   DOW       %EOF(CUSTDISP)
> 0325.00 C                   READC     CUSTMT

                            >> save Custmt fields if they are the same name
of custrec fields
                            >> chain CustRec
                            >> restore from saved field to file fields

> 0326.00 C                   UPDATE    CUSTREC
> 0327.00 C                   IF        FLAG='U'
> 0328.00  **  CALL ROUTINE TO UPDATE SKU DETAIL
> 0329.00 C*                  EXSR      MTUPDATE
> 0330.00 C                   ELSEIF    FLAG='D'
> 0331.00  **  CALL ROUTINE TO DELETE A RECORD
> 0332.00 C*                  EXSR      MTDELETE
> 0333.00 C                   ENDIF
> 0334.00 C                   ENDDO
> 0335.00 C*                  IF        MTPOSVAL = ' '
>
>
> update is in line no  0326.00
> -- 
> This is the RPG programming on the AS400 / 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.