473,480 Members | 1,852 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Generating SQL Scripts from SPUFI

Hi - I would be grateful for advice regarding the following.

Via SPUFI, I am using an SQL member to generate further SQL Statements.
Unfortunately, the generating output SQL statements are longer than 80
bytes in length.
SPUFU will only accept statements that are <= 80 bytes.

Therefore, do you know of an automatic method of splitting each
generated output statement over 2 lines.

I dont think this can be done via SPUFI.
How about a SORT step?

Thanks

Mar 9 '06 #1
2 2755
Run mulitple SQL statements that have output smaller than 80 bytes.
You will need to put data and a literal in front of the output that you
can than sort on... In this case here I would be selecting NAME and
the literal 1, 2, ... from SYSTABLES.

Example
First statement
Select name || '1' || 'this is your sql statement you are generating'
from SYSIBM.SYSTABLES....
second statement
Select name || '2' || 'this is the rest of the your sql statement ...'
from SYSIBM.SYSTABLES....

Then take the entire spufi output and sort on the first 10 bytes. You
will then get the output grouped by your name. You have to play around
with the output a little bit to remove what you included at the
beginning.

Mar 9 '06 #2
You might investigate if DSNTEP2 or DSNTEP4 will accept input records
longer than 80 characters. Executable code for both is provided with
DB2. You can check the provided source code for both to determine if the
program uses the input file DCB parameters or requires a fixed 80
character record. If you ave the PL/I compiler available, you could
easily alter (if necessary) the program to handle longer input records.

Phil Sherman

al**********@btinternet.com wrote:
Hi - I would be grateful for advice regarding the following.

Via SPUFI, I am using an SQL member to generate further SQL Statements.
Unfortunately, the generating output SQL statements are longer than 80
bytes in length.
SPUFU will only accept statements that are <= 80 bytes.

Therefore, do you know of an automatic method of splitting each
generated output statement over 2 lines.

I dont think this can be done via SPUFI.
How about a SORT step?

Thanks

Mar 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5696
by: Mortimer | last post by:
Hi, I hope someone can help. I can't seem to find the answer to this anywhere. I need to change the SQL terminator from a semicolon (;) to an exclamation point within SPUFI in order to process a...
4
9887
by: Jagdip Singh | last post by:
Hi, What is SPUFI regards, jagdip
1
5315
by: Narender Singh | last post by:
Hi All, Is there anyway i can run the Online Spufi panel in batch. I don't want to use the DSNTEP2 program, b'cause it has a limit of 133 Record length. And apart from these i don't have access...
2
1616
by: waimanlau | last post by:
Hi all! System Specs: DB2 UDB 7 on z/OS 390 The Problem: I want to execute a DDL file in my allocated Data Set. But the only thing that happens, when I press Enter is, that SPUFI jumps...
1
2125
by: Aanand | last post by:
Hi all, A crazy thought just popped up into my head. Supposing your site didnt have SPUFI / QMF / Candle / Platinum or any tool that would let u create and run your SQLs, which would be the best...
3
4069
by: mvsguy | last post by:
I'm a sysprog who is new to DB2. I've installed both QMF & SPUFI. SPUFI seems far more flexible than QMF. Could someone explain the difference? What does QMF do that SPUFI can't? Regards,...
0
2165
by: mohandaspradeep | last post by:
Hi Is there any restriction in coding number of queries in a single file for a Batch SPUFI in DB2? Can a Batch SPUFI have any no of queries in it ?
1
2080
by: LA1 | last post by:
I have telecomuter that logs into a mainframe to use a DB2 database. The client uses SPUFI to edit the database and make changes. The client has received from us a new notebook. Both his old and...
1
7974
by: karpalmera | last post by:
Hello! I am using UDB 8 in Z/OS and I am trying to execute this statement in SPUFI select dept, name, row_number() over() from staff It just doesn't work. Here is the error message:...
0
6904
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
6895
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5326
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4770
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4476
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2992
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2977
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1296
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
176
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.