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

Trying to execute multiple extract SQL statements in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jon_Walker

New User


Joined: 02 Jun 2008
Posts: 6
Location: Ottawa, Canada

PostPosted: Fri Jun 06, 2008 9:08 pm
Reply with quote

I have a merged file of multiple data extract SQL statements (using SELECT and JOIN) that must be run from a JCL.

RUNSQLSTM won't work - 1) its a CL command and 2) No support for SELECT statement.

Can anyone provide an answer OR solution to my problem.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jun 07, 2008 12:55 pm
Reply with quote

Hello Jon and welcome to the forums,

Quote:
must be run from a JCL
Have you tried using SPUFI in batch? This should do what you need.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sat Jun 07, 2008 3:11 pm
Reply with quote

Or DSNREXX from REXX ?
Back to top
View user's profile Send private message
Jon_Walker

New User


Joined: 02 Jun 2008
Posts: 6
Location: Ottawa, Canada

PostPosted: Sat Jun 07, 2008 8:06 pm
Reply with quote

dick scherrer wrote:
Hello Jon and welcome to the forums,

Quote:
must be run from a JCL
Have you tried using SPUFI in batch? This should do what you need.


Thanks Dick; Didn't think there was a BATCH version of SPUFI!?! It was one of the first solutions I came up with, but mgmt (a.k.a. Project Lead) said 'It wasn't an option'. (?Why not?!?)

I'll investigate further.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jun 07, 2008 11:01 pm
Reply with quote

Hello Jon,

Quote:
I'll investigate further
There are some topics on this in the forum. A good time to meet the "SEARCH" feature (near the top of the page) icon_smile.gif

Looking for "batch spufi" without the quotes and selecting "Search for all terms" will get several "hits".
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top