EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
  • 1.  EGL Debug to access remote VSAM file on iSeries

    Posted Sat October 12, 2024 02:13 PM
    Edited by Hsieh YUAN Sat October 12, 2024 02:15 PM

    Hi Folks,

    It's my first experience to work remote VSAM file on iSeries.  I'd worked with zOS CICs and work fine.

    Well !

    I have a sample EGL Programa with record definition below:

    record POCTUI3-RECD-IDX type IndexedRecord{fileName = "ARQVSIX0", keyItem = CHAVE}
        3 CHAVE num(5);
        3 TEXTO char(75);
    end

    I have resource associate options:

        <ResourceAssociations name="RecursosVSAM">
            <association fileName="ARQVSIX0">
                <iseriesc>
                    <vsam systemName="?"/>
                </iseriesc>
            </association>
        </ResourceAssociations>

    but I don't know what value should be entered in the systemName property?

    When I try to do EGL Debug i got it message error:

    "EGL0751E The runtime property vgj.ra.fileName.fileType cannot be found for the ARQVSIX0 file.
    EGL0002I The error occurred in POCTUI3 processing the POCTUI3-FUNC-IDX function."

    I didn't find any tips in the EGL documentation.

    Does anyone have any ideas?

    Thanks !

    Hsieh



    ------------------------------
    Hsieh YUAN
    ------------------------------



  • 2.  RE: EGL Debug to access remote VSAM file on iSeries

    Posted Tue October 15, 2024 11:43 AM

    Hi Hsieh,

    I am assuming you are trying to generate for iseries Cobol.

    Note that VSAM is not supported natively on iseries. 

    I have never worked on this scenario before, but I think that for the VSAM file you will need to have a corresponding db2 table (db2 is built into the iseries file system). 

    I think the systemname should match the corresponding file name.

    I am working to set up a scenario to verify my idea and I will let you know. Once I  look at the generated Cobol I will have a better idea.

    Meanwhile, can you describe what you are trying to do overall? 



    ------------------------------
    Dev Banerjee
    RBD Development
    ------------------------------



  • 3.  RE: EGL Debug to access remote VSAM file on iSeries

    Posted Sun October 20, 2024 08:33 PM

    Hi Shieh,

    I was wrong earlier.

    You can create an egl Cobol project to work with VSAM files the same way as for z/OS. I could generated them simply enough.

    When you generate the Cobol program for iSeries, *.dds file will be created for you corresponding to the filenames, In your case you will get ARQVSIX0.dds

     which is the form for creating the corresponding file on iSeries.

    As to using EGL debug, you will have a problem since the remote vsam access does not exist for iSeries. However, since you are porting apps from zos to iSeries, the apps 

    are probably already debugged, and the vsam tested using the remote debugger on z/OS.

    Hope this helps. Let us know how the port to iseries is working.



    ------------------------------
    Dev Banerjee
    RBD Development
    ------------------------------



  • 4.  RE: EGL Debug to access remote VSAM file on iSeries

    Posted Tue October 15, 2024 12:00 PM

    Also, if you are testing under EGL Debug, it would require remote VSAM access when you get to a file i/o statement. remote VSAM access is supported for z/OS systems, not for iseries.



    ------------------------------
    Dev Banerjee
    RBD Development
    ------------------------------



  • 5.  RE: EGL Debug to access remote VSAM file on iSeries

    Posted Tue October 15, 2024 02:10 PM
    Edited by Hsieh YUAN Tue October 15, 2024 02:14 PM
    Hi Dev,
     
    It's good to see you again.  How long time.
     
    Yes I know !  My customer was migrate zVSE/CICS to IBM iSeries.
     
    Today they are using  EGL Debug to access remote VSAM on CICS via TCP/IP CTG.
     
    Now I'm tried to config EGL Build Descriptor on Resource Association File to mapping VSAM for iSeries.
     
    I know IBM iSeries didn't have native VSAM.  It's a DB2 table simulate VSAM.
     
    The question is:  How to doing to remote access this file "VSAM" or DB2 table with EGL Debug ?   
     
    My record definition is 
    record POCTUI3-RECD-IDX type IndexedRecord{fileName = "ARQVSIX0", keyItem = CHAVE} ...
    this ARQVSIX0 is a db2 table HSIEH.ARQVSIX0
     
     
     
     
    Thanks for reply !
     
    Best Regards.
     
    Hsieh



    ------------------------------
    Hsieh YUAN
    ------------------------------