View previous topic :: View next topic
|
Author |
Message |
p kumaran
New User
Joined: 08 Feb 2010 Posts: 1 Location: bangalore
|
|
|
|
As I'm totally new to IMS, kindly forgive if my question is so stupid & do clarify the below.
Normally the PCB declaration will be done as below.
PCB TYPE=DB, NAME=HOSPDBD, KEYLEN=26
SENSEG NAME=HOSPITAL, PARENT=0, PROCOPT=K
SENSEG NAME=WARD, PARENT=HOSPITAL, PROCOPT=K
SENSEG NAME=PATIENT, PARENT=WARD, PROCOPT=G
PSBGEN LANG=COBOL, PSBNAME=PATRETRV
END
And in the IMS-Cobol pgm we used to refer the PCB-mask as below.
LINKAGE SECTION
01 PCB-MASK
05 DBDNAME PIC X(8)
05 STATUS-CODE PIC X(2)
05 PROC-OPTIONS PIC X(4)
05 JCB-ADDRESS PIC X(4)
.
.
PROCEDURE DIVISION
ENTRY 'DLITCBL' USING PCB-MASK
.
.
.
CALL 'CBLTDLI' USING function code
PCB mask
I-O Area
SSA's
Now please let me know how & where the PCB will be related with the PCB-mask in a IMS program? Or in other words
where do we refer the PCBname HOSPDBD inside the pgm? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Quote: |
Or in other words where do we refer the PCBname HOSPDBD inside the pgm? |
You pass it from the JCL, check the JCL which executes this program. |
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
In addition to what Anuj posted, you will see your database in your JCL if you are running DLI. If you are running BMP, you will not. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Thanks Sandy....
P kumaran - Suggest you spend some time with this sticky of IMS DB/DC part of the Forum. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
Back to top |
|
|
Sandy Zimmer
Active Member
Joined: 13 Jun 2007 Posts: 826 Location: Wilmington, DE
|
|
|
|
That is a great link Peter! |
|
Back to top |
|
|
|