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

Can we call IDCAMS through COBOL?


IBM Mainframe Forums -> COBOL Programming
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
rahuljha

New User


Joined: 21 Jun 2007
Posts: 14
Location: INDIA

PostPosted: Thu Jun 21, 2007 5:48 pm
Reply with quote

Can we call IDCAMS through COBOL?
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 Jun 21, 2007 6:17 pm
Reply with quote

What have you tried?
Did it work?
If not, what were the messages/errors?
Back to top
View user's profile Send private message
prasadvrk

Active User


Joined: 31 May 2006
Posts: 200
Location: Netherlands

PostPosted: Thu Jun 21, 2007 6:21 pm
Reply with quote

Do you mean can we use program IDCAMS in another COBOL program?

I hope you know the purpose of IBM supplied utility program IDCAMS, which is used to do many things like creating clusters.

Why ever you want to call a utility program from COBOL?
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Thu Jun 21, 2007 7:37 pm
Reply with quote

The answer is Yes, and there are many reason you would want to call
IBM utilities and others from a user written program.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Jun 21, 2007 7:56 pm
Reply with quote

See COB2TSO here
gsf-soft.com/Freeware/
Back to top
View user's profile Send private message
tosaurabh20

New User


Joined: 08 Jun 2007
Posts: 26
Location: Noida

PostPosted: Fri Jun 22, 2007 3:25 pm
Reply with quote

Hi Rahul,

You can call IDCAMS from your cobol program. There is a provision available for submitting a JCL from your program.

This JCL can contain your IDCAMS utility.

Hope this helps.

Thanks
Saurabh
Back to top
View user's profile Send private message
TG Murphy

Active User


Joined: 23 Mar 2007
Posts: 148
Location: Ottawa Canada

PostPosted: Fri Jun 22, 2007 6:44 pm
Reply with quote

One approach that works is this:

COBOL calls REXX.
REXX calls IDCAMS.

The Rexx middleman may not be necessary.
Back to top
View user's profile Send private message
rahuljha

New User


Joined: 21 Jun 2007
Posts: 14
Location: INDIA

PostPosted: Tue Jun 26, 2007 7:13 pm
Reply with quote

adding to the above answer just please do elaborate what rexx code can we use and if rexx is not required is there any way rather than rexx we can code the idcams in cobol ...
Back to top
View user's profile Send private message
rahuljha

New User


Joined: 21 Jun 2007
Posts: 14
Location: INDIA

PostPosted: Tue Jun 26, 2007 7:19 pm
Reply with quote

Adding to the above querries i want to have the jcl coded into cobol pgm which has IDCAMS called in our pgm.Please do provide the way we can call it..
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Jun 26, 2007 7:35 pm
Reply with quote

Why don't you give this a try:
Appendix C. Invoking Access Method Services from Your Program
Back to top
View user's profile Send private message
jasorn
Warnings : 1

Active User


Joined: 12 Jul 2006
Posts: 191
Location: USA

PostPosted: Wed Jun 27, 2007 9:34 pm
Reply with quote

Search these very forums.
Back to top
View user's profile Send private message
sandeep.kumar

New User


Joined: 16 Aug 2021
Posts: 11
Location: India

PostPosted: Thu Oct 07, 2021 9:28 pm
Reply with quote

Can some one please help me to call IDCAMS listcat service from COBOL?
Back to top
View user's profile Send private message
sandeep.kumar

New User


Joined: 16 Aug 2021
Posts: 11
Location: India

PostPosted: Thu Oct 07, 2021 9:31 pm
Reply with quote

William Thompson wrote:
Why don't you give this a try:
Appendix C. Invoking Access Method Services from Your Program
Quote:


This link is not working now. I am trying to go through it as suggested. Pls help me to open it.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Fri Oct 08, 2021 12:21 am
Reply with quote

try here www.ibm.com/docs/en/zos/2.2.0?topic=commands-invoking-access-method-services-from-your-program
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Fri Oct 08, 2021 4:07 am
Reply with quote

Please start a new post and avoid tailgating any older posts.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. 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 3
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
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top