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 Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts What is the Extract Function in JCL dharmaraok JCL & VSAM 3 Wed Jun 14, 2017 9:12 am
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm


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