View previous topic :: View next topic
|
Author |
Message |
divakaran
New User
Joined: 19 May 2010 Posts: 3 Location: India, mumbai
|
|
|
|
Hi,
Can anyone help me to execute a DB2/COBOL SP thru rexx in mainframe(TSO/Zos).
I tried getting the information in google but thru most of ways I tried I am getting syntax errors.
List of ways I tried so far.
1. I tried to populate the call string in prepare statement and tried to execute it.
"EXECSQL PREPARE S100 INTO :SQLDA FROM :S1Z"
"EXECSQL EXECUTE IMMEDIATE S100"
2. Tried to call a SP directly
"EXECSQL CALL IPZWTBT.IPXSP5XX('INSIFS',' ',' ') ",
"USING DESCRIPTOR SQLDA END-EXEC" |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
syntax error ???
pretty generic, not much to work on
did You try to run with a REXX Trace ? |
|
Back to top |
|
|
divakaran
New User
Joined: 19 May 2010 Posts: 3 Location: India, mumbai
|
|
|
|
enrico-sorichetti wrote: |
syntax error ???
pretty generic, not much to work on
did You try to run with a REXX Trace ? |
Sorry I am not familar running with REXX Trace. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Look in your manual. Search the forum here. You'll find examples. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
It is not good etiquette to delete a post which has already received replies. Your post has been re-instated. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
divakaran
New User
Joined: 19 May 2010 Posts: 3 Location: India, mumbai
|
|
|
|
Thanks Anuj and enrico
www.tek-tips.com/viewthread.cfm?qid=1204086
This link was helpful.
Found a tailor made solution
INPT - INPUT VARIABLE
OUTT - OUTPUT VARIABLE
IOT - INPUT OUTPUT VARIABLE
I was able to execute the below code without issues thru DSNREXX
"EXECSQL CALL PWTWTBT.PWTSPXXX(:INPT,:OUTT,:IOT)" |
|
Back to top |
|
|
|