Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to Invoke IDCAMS in a COBOL program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to Invoke IDCAMS in a COBOL program
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

Moderator Team Head


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

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

I found this article via a Google search:

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

Moderator Team Head


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

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

I found this article via a Google search:

http://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    Post subject:
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    Post subject: HOW TO CREATE A CLUSTER USING IDCAMS IN A COBOL PROGRAM
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us