473,396 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Change SQL Terminator for SPUFI

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 file of SQL
statements. The reason I need to make the change is the SQL contains
imbedded semicolon characters within text values. There are also
imbedded double-quotes and text values are enclosed within
single-quotes.

As far as I can tell, SPUFI will only allow me to change the default
terminator (;) to a single-quote or a double-quote. I am using SPUFI
via ISPF panels on an MVS/OS390 system. I know I can run SPUFI via
batch but I'm not sure how to tell SPUFI to change the terminator
there.

If anyone can tell me how best to accommodate this, I would surely
appreciate it. If there is another method of getting this SQL into the
DB other then SPUFI, which is as easy as SPUFI, I would entertain that
option also.

TIA,
John Wood
Nov 12 '05 #1
5 5688
"Mortimer" <mo**************@hotmail.com> wrote in message
news:21**************************@posting.google.c om...
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 file of SQL
statements. The reason I need to make the change is the SQL contains
imbedded semicolon characters within text values. There are also
imbedded double-quotes and text values are enclosed within
single-quotes.

As far as I can tell, SPUFI will only allow me to change the default
terminator (;) to a single-quote or a double-quote. I am using SPUFI
via ISPF panels on an MVS/OS390 system. I know I can run SPUFI via
batch but I'm not sure how to tell SPUFI to change the terminator
there.

If anyone can tell me how best to accommodate this, I would surely
appreciate it. If there is another method of getting this SQL into the
DB other then SPUFI, which is as easy as SPUFI, I would entertain that
option also.

TIA,
John Wood


There is an DB2I panel that allows you to change the SPUFI defaults,
including termination character. It should be easy to find. It is documented
in the Application Programming and SQL Guide.
Nov 12 '05 #2
Regarding <_K*****************@news.uswest.net>
Mark A wrote:
"Mortimer" <mo**************@hotmail.com> wrote in message
news:21**************************@posting.google. com...
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 file of SQL
statements. The reason I need to make the change is the SQL contains
imbedded semicolon characters within text values. There are also
imbedded double-quotes and text values are enclosed within
single-quotes.

As far as I can tell, SPUFI will only allow me to change the default
terminator (;) to a single-quote or a double-quote. I am using SPUFI
via ISPF panels on an MVS/OS390 system. I know I can run SPUFI via
batch but I'm not sure how to tell SPUFI to change the terminator
there.

If anyone can tell me how best to accommodate this, I would surely
appreciate it. If there is another method of getting this SQL into the
DB other then SPUFI, which is as easy as SPUFI, I would entertain that
option also.

TIA,
John Wood


There is an DB2I panel that allows you to change the SPUFI defaults,
including termination character. It should be easy to find. It is documented
in the Application Programming and SQL Guide.

Thanks, but as I stated in my post, the panel only allows the use of
"default", single-quote ('), and double-quote("). And, as I stated, I
cannot use any of those.
--
John Wood a.k.a. Mortimer Schnurd
mo**************@hotTAKETHISOUTmail.com
Nov 12 '05 #3
> >> 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 file of SQL
statements. The reason I need to make the change is the SQL contains
imbedded semicolon characters within text values. There are also
imbedded double-quotes and text values are enclosed within
single-quotes.

As far as I can tell, SPUFI will only allow me to change the default
terminator (;) to a single-quote or a double-quote. I am using SPUFI
via ISPF panels on an MVS/OS390 system. I know I can run SPUFI via
batch but I'm not sure how to tell SPUFI to change the terminator
there.

If anyone can tell me how best to accommodate this, I would surely
appreciate it. If there is another method of getting this SQL into the
DB other then SPUFI, which is as easy as SPUFI, I would entertain that
option also.

TIA,
John Wood


There is an DB2I panel that allows you to change the SPUFI defaults,
including termination character. It should be easy to find. It is documentedin the Application Programming and SQL Guide.

Thanks, but as I stated in my post, the panel only allows the use of
"default", single-quote ('), and double-quote("). And, as I stated, I
cannot use any of those.
--
John Wood a.k.a. Mortimer Schnurd


You are looking at the SQL STRING DELIMITER on the DB2I Default Panel, and
not looking at the SPUFI Default Panel (DSNESP02).

In DB2 for OS/390 Version 7, you can change the SPUFI delimiter to any
character EXCEPT the following:

blank X'40'
comma X'5E'
double quote X'7F'
left parenthesis X'4D'
right parenthesis X'5D'
single quote X'7D'
underscore X'6D'

This is documented in the manual I referred to above. You do read manuals,
don't you? DB2 manuals can be downloaded from the IBM website.
Nov 12 '05 #4
On Fri, 23 Jan 2004 05:36:06 -0700, "Mark A" <ma@switchboard.net>
wrote:
>> 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 file of SQL
>> statements. The reason I need to make the change is the SQL contains
>> imbedded semicolon characters within text values. There are also
>> imbedded double-quotes and text values are enclosed within
>> single-quotes.
>>
>> As far as I can tell, SPUFI will only allow me to change the default
>> terminator (;) to a single-quote or a double-quote. I am using SPUFI
>> via ISPF panels on an MVS/OS390 system. I know I can run SPUFI via
>> batch but I'm not sure how to tell SPUFI to change the terminator
>> there.
>>
>> If anyone can tell me how best to accommodate this, I would surely
>> appreciate it. If there is another method of getting this SQL into the
>> DB other then SPUFI, which is as easy as SPUFI, I would entertain that
>> option also.
>>
>> TIA,
>> John Wood
>
>There is an DB2I panel that allows you to change the SPUFI defaults,
>including termination character. It should be easy to find. It isdocumented >in the Application Programming and SQL Guide.
> Thanks, but as I stated in my post, the panel only allows the use of
"default", single-quote ('), and double-quote("). And, as I stated, I
cannot use any of those.
--
John Wood a.k.a. Mortimer Schnurd


You are looking at the SQL STRING DELIMITER on the DB2I Default Panel, and
not looking at the SPUFI Default Panel (DSNESP02).

In DB2 for OS/390 Version 7, you can change the SPUFI delimiter to any
character EXCEPT the following:

blank X'40'
comma X'5E'
double quote X'7F'
left parenthesis X'4D'
right parenthesis X'5D'
single quote X'7D'
underscore X'6D'

You could have stopped here and your help would have been appreciated.
But no, you had to go and be a pompous ass. How about you? Can you
read BETWEEN THE LINES. Then read this!
This is documented in the manual I referred to above. You do read manuals,
don't you? DB2 manuals can be downloaded from the IBM website.


Nov 12 '05 #5
"Mortimer Schnurd" <fu**********@hotsmail.com> wrote in message
news:mi********************************@4ax.com...
You could have stopped here and your help would have been appreciated.
But no, you had to go and be a pompous ass. How about you? Can you
read BETWEEN THE LINES. Then read this!

How come my help was not appreciated the first time I answered your question
correctly?

I don't think asking people to read the manual is out of line, especially
when I point out the exact manual and chapter to look at. I would really
like to hear what explanation you have for not reading the manual that I
mentioned.
Nov 12 '05 #6

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

Similar topics

4
by: Jagdip Singh | last post by:
Hi, What is SPUFI regards, jagdip
2
by: alex.mcshane | last post by:
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...
1
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...
0
by: Akaata | last post by:
Hi, How to change a text field into a number field using DB2 spufi? The text field contained a number value. Tia
3
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
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 ?
2
by: kirbybowl | last post by:
I have been using --#SET TERMINATOR to change the delimiter within my CLP scripts. In my situation, the CLP scripts are generated from a database of CLP commands (written by many authors), thus the...
1
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
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.