Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to define the GSAM physical name in IMS DC prg

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
jasveer singh

New User


Joined: 06 Mar 2006
Posts: 16

PostPosted: Mon Mar 26, 2007 5:51 pm    Post subject: How to define the GSAM physical name in IMS DC prg
Reply with quote

Hi ,

Could anyone please let me know how do we declare a GSAM physical
name in IMS DC env that can be accessed using DLI calls .

Thanks !!
Back to top
View user's profile Send private message

Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Mon Mar 26, 2007 6:58 pm    Post subject:
Reply with quote

Some information may be found here

For IMS DC you'd use the DBD statistics.
Back to top
View user's profile Send private message
jasveer singh

New User


Joined: 06 Mar 2006
Posts: 16

PostPosted: Tue Mar 27, 2007 11:58 am    Post subject: Re: How to define the GSAM physical name in IMS DC prg
Reply with quote

Thanks ! but this doesn't help me much .

I am looking for the way to specify the physical name like NPRDSW.GSAM.INPUT1
but couldn't find any relevant data . Thanks !!
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1105
Location: The Netherlands at Hole 19

PostPosted: Wed Mar 28, 2007 2:15 pm    Post subject:
Reply with quote

You define it in the DBD just like a normal database.
Back to top
View user's profile Send private message
rajatbagga

Active User


Joined: 11 Mar 2007
Posts: 188
Location: india

PostPosted: Wed Mar 28, 2007 7:01 pm    Post subject:
Reply with quote

hello ,

this the way to definr your GSAM file:
STEP 1 : GSAM DBD
PRINT NOGEN
DBD NAME=GSAMDBD,ASSESS=(GSAM,VSAM)
DATASET DD1=INPUT,DD2=OUTPUT,DEVICE=3350,RECFM=F,
RECORD=80
DBDGEN
FINISH
END

STEP2 :GSAM PSB
PCB TYPE=GSAM,NAME=GSAMDBD,PROCOPT=L OR G (DEPENDING UPON YOUR REQUREMENT)
PSBGEN LANG=COBOL,PSBNAME=GSAMGET1,CMPAT=YES
END


THIS THE WAY OF DEFINING GSAM

IN YOUR COBOL PROGRAM YOU DONT HAVE ANY PHYSICAL NAME OF GSAM FILE THE PCB-MASK DEFINED BY YOU FOR THIS GSAM IN YOUR LINKAGE SECTION WILL BE USED IN YOUR DLI CALLS TO READ FROM OR TO WRITE INTO GSAM FILE.


IN JOB YOU WILL BE SPECIFING PSB=GSAMGET1
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts Fail to change physical VSAM filename... jacobdng CICS 7 Fri Jan 20, 2017 12:36 pm
No new posts VSAM define for large file jerryte JCL & VSAM 9 Wed Oct 05, 2016 1:51 am
No new posts creating a physical sequential file i... Shaheen Shaik JCL & VSAM 8 Wed Jun 29, 2016 3:46 pm
No new posts How to define PCB for paired segments ashok_uddaraju IMS DB/DC 4 Tue Jun 14, 2016 11:40 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us