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

Identifying a particular PCB used in a Program.


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rajat_gupta

New User


Joined: 05 Apr 2007
Posts: 15
Location: india

PostPosted: Wed May 30, 2007 3:01 pm
Reply with quote

Hi all
Can anybody help me out .
I have a PSB which is having 5 PCB's.I want to know which PCB out of these 5 , my program is using .I am confused as there is no PCB name.
Is there any method of finding that.
Thanks
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Wed May 30, 2007 4:26 pm
Reply with quote

No PCB name?
Where , in the program, in the PSB?


Be more specific/give examples.
Back to top
View user's profile Send private message
rajat_gupta

New User


Joined: 05 Apr 2007
Posts: 15
Location: india

PostPosted: Wed May 30, 2007 6:03 pm
Reply with quote

Hi IQofaGerbil


There is no PCB name given in PSB declaration llike,


PCB TYPE=DB,DBDNAME=DB9138,KEYLEN=11,PROCOPT=GOT
SENSEG NAME=P118TVL,PARENT=0,PROCOPT=GO

PCB TYPE=DB,DBDNAME=DB0724,KEYLEN=6,PROCOPT=GOTP
SENSEG NAME=P324CMN,PARENT=0,PROCOPT=GOP
SENSEG NAME=P324SDN,PARENT=P324CMN,PROCOPT=GOP

PCB TYPE=GSAM,DBDNAME=GSM5600,PROCOPT=GS

PCB TYPE=GSAM,DBDNAME=GSM0901,PROCOPT=LS

PSBGEN PSBNAME=ES067,LANG=COBOL,CMPAT=YES
END


In Cobol pgm the call is like,

CALL 'CBLTDLI' USING WS30-GET-HOLD-UNIQUE
PCB-mask
seg-IO-AREA

END-CALL

this PCB mask is declared in the linkage section.
now how can i get , which of the above PCB's is refrenced in this call.
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed May 30, 2007 6:20 pm
Reply with quote

In linkage you have 4 PCB-MASK right? then relate as below and identify which one is being used in CBLTDLI call.
PCB1 = DB09138
PCB2 = DB0724
PCB3 = GSM5600
PCB4 = GSM0901
Back to top
View user's profile Send private message
rajat_gupta

New User


Joined: 05 Apr 2007
Posts: 15
Location: india

PostPosted: Wed May 30, 2007 6:58 pm
Reply with quote

Thanks Devzee
Now I understood
Actually in my linkage section there was only 1 PCB-MASK defined, as the PSB was earlier containing only 1 PCB.
Thats why I was confused, now I need to add three more PCB-MASKS.right?
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Wed May 30, 2007 7:00 pm
Reply with quote

If the PSB was changed then you got to make changes in Linkage to include all related PCB masks.
Back to top
View user's profile Send private message
IQofaGerbil

Active User


Joined: 05 May 2006
Posts: 183
Location: Scotland

PostPosted: Wed May 30, 2007 8:45 pm
Reply with quote

Lets hope thst whoever added the new PCBs in the PSB appended them after the first one.
Otherwise you might be referencing the wrong one!
Worth a quick check just to be sure?
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: Thu May 31, 2007 2:10 am
Reply with quote

In addition to what Devzee wrote: your PSB might have more PCB's now than before. However, if your program doesn't use any of the complementary PCB''s you don't have to define them in your program. But whenever you refer in a DLI-call to any of those additional PCB's you will have a problem. I know sites where a standard PSB containing all PCB's are used in all applications; even senseg/senfield are omitted icon_evil.gif
Back to top
View user's profile Send private message
rajat_gupta

New User


Joined: 05 Apr 2007
Posts: 15
Location: india

PostPosted: Thu May 31, 2007 10:43 am
Reply with quote

Thanks a lot Bitneuker,IQofaGerbil and Devzee for your Input.I appreciate your help.
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 Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top