Operating System - OpenVMS
1748032
Members
4584
Online
108757
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2004 02:53 AM
тАО11-03-2004 02:53 AM
Re: Batch Job
>>> I don't think Antonio wanted to correct me - it was rather a hint if H P needs to create an SQL command with two consecutive "'"s.
Ditto. And a good reminder/hint it is.
It is not easy to get dcl to write out two single quote with nothing in between. One is free. Two is hard.
You basically have to build the target string with concatenations or multiple arguments.
$ write sys$output "insert into ... values ('A','"+"');"
--->
insert into ... values ('A','');
Sometimes I use a 'QQ' symbol to help:
$ qq= "'"+"'"
$ write sys$output "insert into ... values ('A',",qq,")"
--->
insert into ... values ('A','')
two more hints:
- Sometimes you need a "&" when working with quotes in symbols in order to 'postpone' substitution.
- Instead of generating SQl commands you may want to look in generating data, and using a dataloader tools instead of sql. By writing out the real data you'll drop one level of quoting quotes
fwiw,
Hein.
Ditto. And a good reminder/hint it is.
It is not easy to get dcl to write out two single quote with nothing in between. One is free. Two is hard.
You basically have to build the target string with concatenations or multiple arguments.
$ write sys$output "insert into ... values ('A','"+"');"
--->
insert into ... values ('A','');
Sometimes I use a 'QQ' symbol to help:
$ qq= "'"+"'"
$ write sys$output "insert into ... values ('A',",qq,")"
--->
insert into ... values ('A','')
two more hints:
- Sometimes you need a "&" when working with quotes in symbols in order to 'postpone' substitution.
- Instead of generating SQl commands you may want to look in generating data, and using a dataloader tools instead of sql. By writing out the real data you'll drop one level of quoting quotes
fwiw,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2004 06:43 PM
тАО11-03-2004 06:43 PM
Re: Batch Job
Jan,
my post is hard to read simply because it's not possible distinguish two single quote by double quote (may be this character font).
Two single quote, in SQL means a empty string and it's used to write an empty not null value.
Hein posted another interesting solution :-)
Antonio Vigliotti
my post is hard to read simply because it's not possible distinguish two single quote by double quote (may be this character font).
Two single quote, in SQL means a empty string and it's used to write an empty not null value.
Hein posted another interesting solution :-)
Antonio Vigliotti
Antonio Maria Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-03-2004 07:09 PM
тАО11-03-2004 07:09 PM
Re: Batch Job
Antonio,
You're right.
I totally forgot about empty string.
Guess it was just a bit too late when I wrote the previous entry :-(
Cheers.
Have one on me.
jpe
You're right.
I totally forgot about empty string.
Guess it was just a bit too late when I wrote the previous entry :-(
Cheers.
Have one on me.
jpe
Don't rust yours pelled jacker to fine doll missed aches.
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP