Thanks
I just need to fight the dragon for a few more minutes.
Search found 2 matches
- 30 Apr 2009 10:41
- Forum: DOS Batch Forum
- Topic: Adding quotes to a variable
- Replies: 3
- Views: 5628
- 30 Apr 2009 10:16
- Forum: DOS Batch Forum
- Topic: Adding quotes to a variable
- Replies: 3
- Views: 5628
Adding quotes to a variable
I have a variable that is passed to a .bat file within the bat file
SET MYVAR1=%1
db2 call myuser.myproc(%MYVAR1%)
What I need to do is wrap the variable is single quotes
i.e. DB needs to be 'DB'
Thank you in advance for your assistance
Marcus
SET MYVAR1=%1
db2 call myuser.myproc(%MYVAR1%)
What I need to do is wrap the variable is single quotes
i.e. DB needs to be 'DB'
Thank you in advance for your assistance
Marcus