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



Hi,

you have to check *IN03 immediately after the EXTFMT statement:
0004.00 C                   DOW       *IN03=*OFF
0005.00 C                   EXFMT     DSTUDENT
0005.10 C                   If        *IN03 = *ON
0005.20 C                   Leave
0005.30 C                   EndIf
0006.00 C
0007.00 C                   EVAL      DSID = SID
0008.00 C                   WRITE     STUDREC
0009.00 C
0010.00 C                   enddo
0011.00 C                   return

Or

0004.00 C                   DOW       *IN03=*OFF
0005.00 C                   EXFMT     DSTUDENT
0006.00 C
0006.10 C                   If        IN03 = *OFF
0007.00 C                   EVAL      DSID = SID
0008.00 C                   WRITE     STUDREC
0008.10 C                   EndIf
0009.00 C
0010.00 C                   enddo

Mit freundlichen Gruessen / Best regards

Birgitta

"Shoot for the moon, even if you miss, you'll land among the stars."
(Les Brown)

-----Ursprungliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]Im Auftrag von koti shiva
Gesendet: Mittwoch, 16. August 2006 06:44
An: RPG400-L@xxxxxxxxxxxx
Betreff: adding next record with '0'


Hi all,
  now i am able to insert values in the PF  but the problem is while exit
its adding a blank record to the PF.

  TIA
Shiva Shanker



  Hi all,

  When i am trying to insert a value into a physical file through
disply file its updateing as '0'

  bellow is the code, any body can help me out.....

  RPG Code
  0002.00 FSTUDENT   IF A E             DISK
0003.00 FSTDNTDSP  CF   E             WORKSTN
0004.00 C                   DOW       *IN03=*OFF
0005.00 C                   EXFMT     DSTUDENT
0006.00 C
0007.00 C                   EVAL      DSID = SID
0008.00 C                   WRITE     STUDREC
0009.00 C
0010.00 C                   enddo
0011.00 C                   return

  PF code
  0002.00      A          R STUDREC
0003.00      A            SID            3S 0

  Dsply file
                                          CA03(03 'F3=EXIT')
 A
 A          R DSTUDENT
 A                                  5  5'ENTER THE STUDENT ID : '
 A            DSID           3S 0I  5 35
 A                                 22 20'F3=EXIT'

  TIA
  Shiva Shanker



---------------------------------
 Here's a new way to find what you're looking for - Yahoo! Answers
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get
it NOW
--
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.