View previous topic :: View next topic
|
Author |
Message |
ARJUN
New User
Joined: 16 Nov 2004 Posts: 18 Location: Chennai
|
|
|
|
hi doods,
I would like to know how to invoke IDCAMS in a COBOL program and using this how to create a cluster from a COBOL program itself.
could any body help in this regard please.
Thanks in advance, |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
ARJUN
New User
Joined: 16 Nov 2004 Posts: 18 Location: Chennai
|
|
|
|
thank you superk,
ok fine, I need to create a cluster using IDCAMS in COBOL program itself.
CALL "IDCAMS" USING parm-options,ddnames-options.
using this I can pass the control info of cluster using parm-options and alternate ddnames(which you can use in your run JCL) can pass thru ddnames-options.
Here is it invokes IDCAMS define or else and how.
if anybody can explain this that could be great. |
|
Back to top |
|
|
ARJUN
New User
Joined: 16 Nov 2004 Posts: 18 Location: Chennai
|
|
|
|
ARJUN wrote: |
thank you superk,
ok fine, I need to create a cluster using IDCAMS in COBOL program itself.
CALL "IDCAMS" USING parm-options,ddnames-options.
using this I can pass the control info of cluster using parm-options and alternate ddnames(which you can use in your run JCL) can pass thru ddnames-options.
Here is it invokes IDCAMS define or else and how.
if anybody can explain this that could be great. |
|
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi ARJUN,
Quote: |
Here is it invokes IDCAMS define or else and how.
|
You may want to work on the translation of this thought. It doesn't read well in English. |
|
Back to top |
|
|
diet_coke
New User
Joined: 19 Nov 2004 Posts: 1
|
|
Back to top |
|
|
ARJUN
New User
Joined: 16 Nov 2004 Posts: 18 Location: Chennai
|
|
|
|
Hi mmwife,
Here my point is IDCAMS is having lot of utilities like IEBGCOPY,IEBGENER,REPRO,EXPORT,IMPORT, DEFINE cluster etc..
using the following how it is called exactly IDCAMS DEFINE CLUSTER. here I am passing parm-options,ddnames-options
CALL "IDCAMS" USING Parm-options,ddnames-options.
Through parm-options I am passing all the cluster info like cluster name,catalog name,volume serial number, data field name, index field name etc. and thru ddnames I am passing alternate ddnames which I am using in my run JCL.
Now the above call invokes IDCAMS DEFINE or not, if it is how?
if you can explain this that could be great. |
|
Back to top |
|
|
lramani
New User
Joined: 03 Nov 2004 Posts: 21 Location: NOIDA, India
|
|
|
|
Hi Arjun,
Was going thru the pdf that was sent by mmwife.
What iam not able to follow is where are u stuck up!!!
Do u want to know how the program recognizes its DEFINE cluster and not something else??
If so...then code moves " DELETE " to IDCAMS-BUFFER. (in the PDF)
In your case it might be DEFINE.
CALL IDCAMS using parm-option and DDNAME-OPTIONS solves things.
DDNAME-OPTIONS has the file name CAMSPARM, which has the IDCAMS-BUFFER.
I have not tried out this code but wud do when i get time.
I hope I am addressing to the problem that u have....else let me know what actually is the problem.
My special thanks to mmwife for sending this URL. |
|
Back to top |
|
|
|