IMS DB-GSAM OPEN,CLOSE,GN Calls

Read my post#1 ,if you miss it

Any IMSDB-GSAM program needs minimum calls. I am just giving those:

Entry call:

Entry ‘DLITCBL’   Using   TPPCB
                          GSam-file-Input
                          Gsam-file-output
Open call:

Call ‘CBLTDLI’  Using OPEN
                      GSam-file-Input
                      GSam-file-Output
Read call:

Call ‘CBLTDLI’  Using GN
                      GSam-file-Input

Insert call:

Call ‘CBLTDLI’  Using Insert
                      GSam-file-Record
Close call:

Call ‘CBLTDLI’  Using Close
                      GSam-file-Input
                      GSam-file-Output

Finally, how one knows if the file is input/Output?
In PSB, by looking at the below names one will know ,which is input, or output file.
Indataset= GSam-file-Input    outdataset=GSam-file-Output

So, in the COBOL program, select statements not needed.

Advertisements

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.