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

How to Invoke IDCAMS in a COBOL program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ARJUN

New User


Joined: 16 Nov 2004
Posts: 18
Location: Chennai

PostPosted: Thu Nov 18, 2004 10:31 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Nov 18, 2004 9:53 pm
Reply with quote

I found this article via a Google search:

www.naspa.com/PDF/2000/0100%20TS%20PDFs/T0001006.pdf
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Nov 18, 2004 9:53 pm
Reply with quote

I found this article via a Google search:

www.naspa.com/PDF/2000/0100%20TS%20PDFs/T0001006.pdf
Back to top
View user's profile Send private message
ARJUN

New User


Joined: 16 Nov 2004
Posts: 18
Location: Chennai

PostPosted: Fri Nov 19, 2004 8:43 am
Reply with quote

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
View user's profile Send private message
ARJUN

New User


Joined: 16 Nov 2004
Posts: 18
Location: Chennai

PostPosted: Fri Nov 19, 2004 10:04 am
Reply with quote

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
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Nov 21, 2004 12:27 am
Reply with quote

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
View user's profile Send private message
diet_coke

New User


Joined: 19 Nov 2004
Posts: 1

PostPosted: Mon Nov 22, 2004 10:35 am
Reply with quote

Arjun,

I think 2 min search in google would have given following link.
check out the 2nd URL...i hope this is what your looking for...

http://www.google.com/search?hl=en&q=idcams+through+cobol

DC
Back to top
View user's profile Send private message
ARJUN

New User


Joined: 16 Nov 2004
Posts: 18
Location: Chennai

PostPosted: Tue Nov 23, 2004 9:35 am
Reply with quote

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
View user's profile Send private message
lramani

New User


Joined: 03 Nov 2004
Posts: 21
Location: NOIDA, India

PostPosted: Tue Nov 23, 2004 11:54 am
Reply with quote

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
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top