- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: substittution
Operating System - OpenVMS
1819769
Members
3334
Online
109606
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
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
тАО04-20-2006 06:44 AM
тАО04-20-2006 06:44 AM
I am attempting to write a DCL procedure which will create a sql script (we are on an pen vms system) I need to be able to produce a single quote next the variable which is being substituted. does anyone know how to due this? I need to have like:
$ WRITE WRITELINE "(TO_DATE("''END_CUR_MON''", 'YYYYMMDD'));"
$ WRITE WRITELINE "(TO_DATE("''END_CUR_MON''", 'YYYYMMDD'));"
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 07:00 AM
тАО04-20-2006 07:00 AM
Solution
ocasio,
First:
Welcome to the VMS forum!
Your question:
two ways of doing this:
1. VERY carefully count your single and double quotes. A lone single quote between double quotes DOES go on as itself.
2 (more controlled, better readable, and also allows for two consecutive single quotes:
Set up a symbol (eg QUOTE) with the ASCI value of a single quote (I do have not got it handy right now) and trigger symbol substitution each time need the single quote
hth
Proost.
Have one on me (maybe in May in Nashua?)
jpe
First:
Welcome to the VMS forum!
Your question:
two ways of doing this:
1. VERY carefully count your single and double quotes. A lone single quote between double quotes DOES go on as itself.
2 (more controlled, better readable, and also allows for two consecutive single quotes:
Set up a symbol (eg QUOTE) with the ASCI value of a single quote (I do have not got it handy right now) and trigger symbol substitution each time need the single quote
hth
Proost.
Have one on me (maybe in May in Nashua?)
jpe
Don't rust yours pelled jacker to fine doll missed aches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 07:26 AM
тАО04-20-2006 07:26 AM
Re: substittution
Thanks so very much! I had been expiermenting and decided to go online because I was sure someone else had ran into this b4.
Yes, I'll have one and toast to you! (unfortunately won't be able to do it in Nassau
Yes, I'll have one and toast to you! (unfortunately won't be able to do it in Nassau
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2006 09:16 PM
тАО04-20-2006 09:16 PM
Re: substittution
You can also embed quotes inside quotes by specifying 3 double quotes :-
$ WRITE SYS$OUTPUT "This """word""" has quotes around it"
This "WORD" has quotes around it
Rob.
$ WRITE SYS$OUTPUT "This """word""" has quotes around it"
This "WORD" has quotes around it
Rob.
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.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP