Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can we call IDCAMS through COBOL?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Can we call IDCAMS through COBOL?
Reply with quote

Can we call IDCAMS through COBOL?
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

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

See COB2TSO here
http://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    Post subject: Can we call IDCAMS through COBOL?
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: 149
Location: Ottawa Canada

PostPosted: Fri Jun 22, 2007 6:44 pm    Post subject:
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    Post subject: Re: Can we call IDCAMS through COBOL?
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    Post subject: Re: Can we call IDCAMS through COBOL?
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: 3158
Location: Tucson AZ

PostPosted: Tue Jun 26, 2007 7:35 pm    Post subject:
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

Active User


Joined: 12 Jul 2006
Posts: 153
Location: USA

PostPosted: Wed Jun 27, 2007 9:34 pm    Post subject: There are plenty examples calling idcams from COBOL
Reply with quote

Search these very forums.
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 Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
No new posts COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us