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
 

 

Trying to execute multiple extract SQL statements in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Trying to execute multiple extract SQL statements in JCL
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

Site Director


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

PostPosted: Sat Jun 07, 2008 12:55 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Sat Jun 07, 2008 3:11 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Sat Jun 07, 2008 11:01 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts execute APP if they are not ADDRESS T... italo_pm CLIST & REXX 3 Fri Aug 12, 2016 2:15 am
No new posts Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm


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