View previous topic :: View next topic
|
Author |
Message |
rahuljha
New User
Joined: 21 Jun 2007 Posts: 14 Location: INDIA
|
|
|
|
Can we call IDCAMS through COBOL? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
What have you tried?
Did it work?
If not, what were the messages/errors? |
|
Back to top |
|
|
prasadvrk
Active User
Joined: 31 May 2006 Posts: 200 Location: Netherlands
|
|
|
|
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 |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
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 |
|
|
stodolas
Active Member
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
|
|
Back to top |
|
|
tosaurabh20
New User
Joined: 08 Jun 2007 Posts: 26 Location: Noida
|
|
|
|
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 |
|
|
TG Murphy
Active User
Joined: 23 Mar 2007 Posts: 148 Location: Ottawa Canada
|
|
|
|
One approach that works is this:
COBOL calls REXX.
REXX calls IDCAMS.
The Rexx middleman may not be necessary. |
|
Back to top |
|
|
rahuljha
New User
Joined: 21 Jun 2007 Posts: 14 Location: INDIA
|
|
|
|
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 |
|
|
rahuljha
New User
Joined: 21 Jun 2007 Posts: 14 Location: INDIA
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
Back to top |
|
|
jasorn Warnings : 1 Active User
Joined: 12 Jul 2006 Posts: 191 Location: USA
|
|
|
|
Search these very forums. |
|
Back to top |
|
|
sandeep.kumar
New User
Joined: 16 Aug 2021 Posts: 11 Location: India
|
|
|
|
Can some one please help me to call IDCAMS listcat service from COBOL? |
|
Back to top |
|
|
sandeep.kumar
New User
Joined: 16 Aug 2021 Posts: 11 Location: India
|
|
|
|
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 |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 419 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3051 Location: NYC,USA
|
|
|
|
Please start a new post and avoid tailgating any older posts. |
|
Back to top |
|
|
|