ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to add field into External Data Source (RPG/400)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to add field into External Data Source (RPG/400)

    Hi all,

    montioned as above.


    392.10 ISAVS#1 E DSSF0010SFL1
    392.20 ISAVH#1 E DSSF0010SFL2

    i'm able to view the fields in external data structure for SAVS#1 thru program compilation. But how can i add new fields into this external data structure ..?

    thanks.

  • #2
    Re: How to add field into External Data Source (RPG/400)

    Originally posted by thsiow View Post
    Hi all,

    montioned as above.


    392.10 ISAVS#1 E DSSF0010SFL1
    392.20 ISAVH#1 E DSSF0010SFL2

    i'm able to view the fields in external data structure for SAVS#1 thru program compilation. But how can i add new fields into this external data structure ..?

    thanks.

    not sure if this will help. but as i understand this, external data structure will only capture the structure of the file (SF0010SFL1) that you are refering to. if you need to add new fields for this file, you have to change the structure of the file (SF0010SFL1) itself.

    better wait for the masters and the experts to confirm/clarify/correct this.

    just my 2cents worth
    idiot and stoopid with SQL

    Comment


    • #3
      Re: How to add field into External Data Source (RPG/400)

      Correct.

      PHP Code:
        //---------------------------------------------------
      D DS1           E DS                  Extname(DdsTestp
      This data structure looks like the file DdsTestP.

      If you want more fields in this DS, either add fields to the File, or create a new DS with the new field(s) and have the existing DS a part of it.
      Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

      Comment


      • #4
        Re: How to add field into External Data Source (RPG/400)

        Don't forget that you have to recompile the external File before the DS will include the added field.

        Comment

        Working...
        X