MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Run JCL for COBOL Stored Procedure & DB2 Stored Proced.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
vsr100481
Beginner


Joined: 02 May 2006
Posts: 9
Topics: 5

PostPosted: Mon May 15, 2006 2:24 am    Post subject: Run JCL for COBOL Stored Procedure & DB2 Stored Proced. Reply with quote

Hi,

Can any one help me by sending/finding Run JCL for both COBOL Stored Procedures and DB2 Stored Procedures?

Help Required.

WIth Regards
Sundar
Back to top
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Mon May 15, 2006 1:07 pm    Post subject: Reply with quote

vsr100481,

What do you mean by run JCLs for stored procedures. Stored procedures are called by other programs. Do you mean the WLM or SPAS jobs for the stored procedures.

Regards,
Manas
_________________
There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948)
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
vsr100481
Beginner


Joined: 02 May 2006
Posts: 9
Topics: 5

PostPosted: Tue May 16, 2006 1:15 am    Post subject: Reply with quote

Manas,

Yes, Basically Stored Procedures are being called from Front end (Java program, etc..) or a Batch Program, or CICS.

But here if i want to test a COBOL/DB2 SP directly thru a JCL (run). i mean i dont want to test thru front end or batch or CICS. I want to test or Trigger the program through a JCL. (like run JCL for batch COBOL DB2 program). Please tell me ist possible. If your answer is yes. Can you provide me the JCL which run the SP in WLM.

Please advice.

Thanks in advance
Sundar
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue May 16, 2006 7:04 am    Post subject: Reply with quote

vsr100481,
If you are not familiar with the Mainframe it will be hard to follow the instructions. Anyways, when you mention "thru JCL", well its Batch. You may have to have a Host program to Invoke your SP, this host program may have to execute thru a RRS stub to manage resources. The host has to be compiled shuch that it's RRS compatiable. You need to note that SP's execute in their own address space, spawned by WLM. Overall, it depends on what and how you want to test. A simple solution would be to test it as a normal cobol program(call it from a host program just as any other cobol call and test the business logic).
Providing just the JCL will not help much unless all the other requirement's are not satisfied. Thanks
Back to top
View user's profile Send private message
vsr100481
Beginner


Joined: 02 May 2006
Posts: 9
Topics: 5

PostPosted: Tue May 16, 2006 7:44 am    Post subject: Reply with quote

Suresh,

First f all thanks for your kind reply.

i am a developer working under Mainframe Platform. Sorry, i am quite confused with your explantion.

here we were testing the DB2 SPs thru Stored Procedure Builder or thru a Host program (which calls the DB2 SP). Simillarly COBOL Stored Procedures are also being tested thrugh a COBOL or COBOL DB2 program (a simple cobol call).

But my doubt here is, can a cobol SP is tested thru a JCL . I mean do we have any run JCL to test a cobol sp.

For ex. a cobol db2 programs are tested thru a run JCL. Basically we will call a COBOL SP thru a COBOL DB2 Program or COBOL Program using a simple call with IN/OUT parameters. So when we run the COBOL or COBOL DB2 program, it will run the SP. Here this COBOL program is ran thru a run JCL.

Now is it possibile to run that sp thru a JCL by passing those inputs in that JCL?

Please guide me.

Sorry.. if my question s silly.. am in learning stage..

Please advice..

thanks
Sundar
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue May 16, 2006 10:06 am    Post subject: Reply with quote

vsr100481,
I am not sure about your requirement. If you need to run the program as a stored procedure call, then you need to have a host program that can issue an EXEC SQL CALL to the SP program, without which the WLM/address space & SP execution would not happen. this is to my knowledge, however ther may be other methods. Thanks
Back to top
View user's profile Send private message
srini_igsi
Beginner


Joined: 12 May 2006
Posts: 41
Topics: 16
Location: Mumbai

PostPosted: Wed May 17, 2006 7:47 am    Post subject: Reply with quote

Hi,

Once the Call is issued, the control will be pased to the SP and if it returns any result set by issuing the 'GOBACK', the control will be passed back to the calling pgm, so how to work with the rows returned in the result set..whats the next step??

EXEC SQL
CALL SPNAME(arguments to be passed/received to/from the SP)
END-EXEC.
_________________
Thanks,
-Srini
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Wed May 17, 2006 10:33 am    Post subject: Reply with quote

srini_iqsi,
Are you suggesting a solution or is it a question? I am assuming you are asking a quetion regarding how to proceed after the call...refer to this topic. Thanks

[url]
http://www.mvsforums.com/helpboards/viewtopic.php?t=5985&highlight=allocate+cursor
[/url]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group