Topic
  • 3 replies
  • Latest Post - ‏2013-07-05T13:04:41Z by Hsieh
MoonTech
MoonTech
16 Posts

Pinned topic EGL COBOL OPEN OUTPUT vs OPEN EXTEND

‏2013-07-05T09:22:14Z |

Hello

 

My EGL Cobol files for iSystem generate one OPEN sentence for plane files with OPEN OUTPUT

This command reset the file (delete its contents)

 

How could i generate one cobol with egl that doesnt reset the file (Open extend?)

 

I work with RBD 8.5.1

 

thank you

  • Hsieh
    Hsieh
    601 Posts

    Re: EGL COBOL OPEN OUTPUT vs OPEN EXTEND

    ‏2013-07-05T12:02:47Z  

    Hello,

    on the resource associations part to the property file, set REPLACE=NO.

    this will do the ADD to append records.

     

    Regard,

    Hsieh

  • MoonTech
    MoonTech
    16 Posts

    Re: EGL COBOL OPEN OUTPUT vs OPEN EXTEND

    ‏2013-07-05T12:56:44Z  
    • Hsieh
    • ‏2013-07-05T12:02:47Z

    Hello,

    on the resource associations part to the property file, set REPLACE=NO.

    this will do the ADD to append records.

     

    Regard,

    Hsieh

    There is not such option (REPLACE) in the resource file for iSeriesc (COBOL FOR AS/400)

     

    We have changed the type to VSAM

     

    Anyway. Any trick for how to add the REPLACE option on files with type "SEQ" in iSeries?

     

     

     

     

     

  • Hsieh
    Hsieh
    601 Posts

    Re: EGL COBOL OPEN OUTPUT vs OPEN EXTEND

    ‏2013-07-05T13:04:41Z  
    • MoonTech
    • ‏2013-07-05T12:56:44Z

    There is not such option (REPLACE) in the resource file for iSeriesc (COBOL FOR AS/400)

     

    We have changed the type to VSAM

     

    Anyway. Any trick for how to add the REPLACE option on files with type "SEQ" in iSeries?

     

     

     

     

     

    on the resource associations part to the property file,

     

    set REPLACE=NO to append and REPLACE=YES to ovewrite.

    Look here:

    http://pic.dhe.ibm.com/infocenter/rbdhelp/v8r5m0/topic/com.ibm.egl.gg.doc/topics/gegl_core_associationelements.html#gegl_core_associationelements

    Updated on 2013-07-05T13:17:37Z at 2013-07-05T13:17:37Z by Hsieh