ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Physical File Triggers

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

  • Physical File Triggers

    Hello ALL,

    I have a question about physical file triggers. Does anyone know if there is a way to retain the trigger on a file after a recompile of the DDS has been done say to add a field to the file. I noticed that when I add a field to the DDS, and do a recompile, the file trigger(s) go bye bye and I have to go back out and add them again, a big pain!
    HELP!

    -Dan

  • #2
    Re: Physical File Triggers

    I'm not an expert by no means.. but, can't you disable the trigger before recompiling? Then enable it when the recompile is completed?

    Comment


    • #3
      Re: Physical File Triggers

      Hi Dan:

      I don't use triggers myself but I would think the chgpf instead of create pf would retain all atributes.

      Thanks
      GLS
      The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

      Comment


      • #4
        Re: Physical File Triggers

        GLS400 is right! Don't recompile the file. Use CHGPF. It keeps all your LF's, triggers, etc. It will cause a new level id if you add a field.

        Comment


        • #5
          Re: Physical File Triggers

          if u recompile a PF u lose all records and if u have any LF dependent it will not recreated the only option you have is chgpf, and trigger is a program u can reattach it after recompile

          Comment


          • #6
            Re: Physical File Triggers

            Hi, In our situation we can not use ChgPf because of change management issues. But on a good note, we can place a command on the creation of the PF that will issue the creation of the tirggers. That way when ever the file has to change the change management software knows what to do.
            Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

            Comment

            Working...
            X