HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- using When condition in sql control file
Operating System - Linux
1828341
Members
3685
Online
109976
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
Forums
Discussions
Discussions
Discussions
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
05-13-2008 01:24 AM
05-13-2008 01:24 AM
using When condition in sql control file
Hi,
I am using a when condition for a number like
When empno=2
but i am getting an exception like --Expecting quoted string or hex identifier, found "2".
When i use "2" or '2' the records are not being loaded as empno is a number.
Please let me know how to go about this?
Regards,
Gyan
I am using a when condition for a number like
When empno=2
but i am getting an exception like --Expecting quoted string or hex identifier, found "2".
When i use "2" or '2' the records are not being loaded as empno is a number.
Please let me know how to go about this?
Regards,
Gyan
- Tags:
- SQL
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2008 05:44 AM
05-15-2008 05:44 AM
Re: using When condition in sql control file
A snippit of your code would help, but I'll take a stab at it.
If this is a shell script,
When is not a valid condition.
empno is not defined as a specific type.
#!/usr/bin/sh
set -x
typeset -i empno=2 #define var as integer
if [ $empno -eq 2 ];then
print "employee 2"
fi
while [ $empno -eq 2 ];do
print "employee 2"
empno=3
done
# end job
Rob...
If this is a shell script,
When is not a valid condition.
empno is not defined as a specific type.
#!/usr/bin/sh
set -x
typeset -i empno=2 #define var as integer
if [ $empno -eq 2 ];then
print "employee 2"
fi
while [ $empno -eq 2 ];do
print "employee 2"
empno=3
done
# end job
Rob...
IF you do it more than twice, write a script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2008 06:59 AM
05-15-2008 06:59 AM
Re: using When condition in sql control file
oops sorry forgot about it,its not about unix,it is sql loader concept.
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP