Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us