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: 8630
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 Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm

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