IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to define the GSAM physical name in IMS DC prg


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
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
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: 1104
Location: The Netherlands at Hole 19

PostPosted: Mon Mar 26, 2007 6:58 pm
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
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: 1104
Location: The Netherlands at Hole 19

PostPosted: Wed Mar 28, 2007 2:15 pm
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: 199
Location: india

PostPosted: Wed Mar 28, 2007 7:01 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts Rotate partition-logical & physic... DB2 0
No new posts Define default volume for DSN storage... JCL & VSAM 8
No new posts define 1 DCB parms for multiple outpu... JCL & VSAM 9
This topic is locked: you cannot edit posts or make replies. REXX to find /* Define and write the ... CLIST & REXX 5
Search our Forums:

Back to Top