Need info on "DEFINE" keyword

I need information on the DEFINE keyword on plSQL. There is a package which has definitions as below
DEFINE A = &1
DEFINE B = &2
DEFINE C = &3
Begin
End;/
The data for this being substituted through a .bat file whose content is as below
sqlplus wedb/wedbo@ORACLE1 @D:\test\test1\auto_run.sql WS Y OE
pause
So I need information on how to pass "NULL" value on this last parameter C, Thank you

For cases like this I use "script launcher":
C:\>type c:\temp\sqlplus_script_launcher.sql
DEFINE  S="&1"
DEFINE  1=''
DEFINE  2=''
DEFINE  3=''
DEFINE  4=''
DEFINE  5=''
DEFINE  6=''
DEFINE  7=''
DEFINE  8=''
DEFINE  9=''
DEFINE 10=''
DEFINE 11=''
DEFINE 12=''
DEFINE 13=''
DEFINE 14=''
DEFINE 15=''
DEFINE 16=''
DEFINE 17=''
DEFINE 18=''
DEFINE 19=''
DEFINE 20=''
@&sNo assume I have a script:
C:\>type c:\temp\x.sql
DEFINE A="&1"
DEFINE B="&2"
DEFINE C="&3"
SET NULL "This value is NULL"
COLUMN C FORMAT A20
SELECT '&A' A,'&B' B,'&C' C FROM DUAL
EXITTo execute x.sql I would use "script launcher":
C:\>sqlplus scott/tiger @c:\temp\set_null_params "c:\temp\x WS Y OE"
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Oct 25 10:20:38 2008
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
old   1: SELECT '&A' A,'&B' B,'&C' C FROM DUAL
new   1: SELECT 'WS' A,'Y' B,'OE' C FROM DUAL
A  B C
WS Y OE
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Pr
oduction
With the Partitioning, OLAP and Data Mining options
C:\>sqlplus scott/tiger @c:\temp\set_null_params "c:\temp\x WS Y"
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Oct 25 10:20:42 2008
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
old   1: SELECT '&A' A,'&B' B,'&C' C FROM DUAL
new   1: SELECT 'WS' A,'Y' B,'' C FROM DUAL
A  B C
WS Y This value is NULL
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Pr
oduction
With the Partitioning, OLAP and Data Mining options
C:\>There is also a way to define SQL*Plus substitution variable if it is not defined and leave substitution variable value as is if it is defined. It is posted in Russian Edition of Oracle Magazine August/September 2003 issue, so you will need google translator, or simply look for NVL.SQL script.
SY.

Similar Messages

  • Removing user-defined keywords?

    Hi experts...
    I'm not really happy with the out-of-the-box keywords that are in Aperture, so I went into the Keywords HUD and added some of my own (camera type, etc).  Now, I find that I want to remove one of those user-defined keywords from multiple photos in a specific project.
    If I select Metadata-->Remove Keywords, it apparently only gives me the choice to remove the pre-defined keywords.  I do *not* see my user-defined keywords in the list, so I'm struggling with how to remove one keyword from all the photos.
    Any way to do this?

    Do you want to keep the Keyword for other Images?
    If you want to remove the Keyword from your Library, delete it from the Keyword HUD.  It will be removed from every Image to which it is applied.
    If you just want to remove the Keyword from some Images, but keep it in your Library (and maybe applied to other Images), you need to select the Images that have the Keyword applied, then un-apply it.  Here is what I think is the best easy way to do this:
    Filter on that keyword in a container holding the Images from which to remove the Keyword (in your case, the Project).
    Select the Images from which to remove the Keyword (in your case, "Edit→Select All").
    In the "Add Keyword" field of the Control Bar ("d" toggles the Control Bar; "{shift}+d" toggles the Button Sets and the "Add Keyword" field), start to type the Keyword.  It should auto-complete.
    When the Keyword is selected from the autocomplete possibilities, type "{Shift}+{Enter}" (adding {Shift} changes Keyword commands from "add" to "remove").
    All of which is even more simply put in the User Manual.
    I don't shoot stock photos.  I delete the supplied keywords from every Library.
    Message was edited by: Kirby Krieger -- Link added.

  • Need to set/read 'Keyword' in a PDF programatically

    We have adobe professional license ver 9.
    When a user downloads a PDF from our custom web application (C#), we need to set a keyword (attribute) to the PDF automatically. The 'Keywords' field in 'File > Properties' seems to be ideal location.
    User typically edits this downloaded PDF and uploads it again back to the web application. During this editing, the keyword is assumed to remain the same.
    Finally, user uploads the edited PDF back to the web application. At this point, the keyword is to be read from PDF.
    Kindly suggest API's to set/read keyword.

    This is not a scripting question. The solution needs to be in the custom
    application you're using to create the PDF files.
    The "Keywords" field is just a part of the document metadata, which any PDF
    library should be able to edit.
    On Fri, Dec 9, 2011 at 12:54 PM, sandhya_sky is the limit

  • MOVED: Need info on windows xp pro purchase

    This topic has been moved to Operating Systems.
    Need info on windows xp pro purchase

    A Windows 8.1 Product Key will not work for a Windows XP install.
    Please do not read this sentence. Please ignore the previous sentence.
    Hi,
    We wont use the Win 8.1 Product Key - We will Purchase new Windows 8.1 License for the fourth PC but install our copy of Win XP on the machine (we have only 3 License that we used for the older 3 machines).
    Carey's reply only speaks to the technical aspects of installing a dual boot environment.  It says nothing about licensing which is what I think you are asking about.  I do not believe that you can purchase a Windows 8.1 License and apply it to a
    Windows XP install.  You need to enter in the Product Key when the OS is installed and I seriously doubt that the XP install will accept the 8.1 Key.  If you don't have a 4th key for XP you won't be able to have a legal copy installed.
    Please do not read this sentence. Please ignore the previous sentence.

  • Error while navigating planning 9.3.1 through workspace/ need info on cpx,

    Hi all
    Hey I installed the planning 9.3.1 and also I created the application name, using planning address. but the problem is I am unable to navigate through workspace. I am getting three dialog boxes....
    " invalid or could not find module configuration"
    "Required application module hyperioin planning app wizard is not configured.please contact your administrator"
    " Communication error"
    I'm able to see the application name in projects of shared services. Can any one face the same situation , and also I need info regarding how to initialize modules of capx and wfp.
    regards
    M.V

    Hi,
    If you did a standard install then it should be running on port 19000 as well.
    I take it workspace is working fine on port 19000
    http://<hostname>:19000/HyperionPlanning/LogOn.jsp
    ^ this will be your workspace servername..
    When you run the configuration utility for Reporting and Analysis and the section "Configure Web Server", this is where you set up the Apache Server for workspace, there is an option for "Planning", this should be ticked and the correct planning server entered as it will default to the workspace server.
    The apache server redirects requests on the standard workspace port 19000 to the correct server and port, so for planning it redirects to the planning server and port 8300.
    Cheers
    John

  • Need Info about BW CRM Analytics

    Hi all,
    Guys,
    Please help me out...
    I need Info about BW with CRM Analytics
    What are the core areas where data's are extracted for CRM to BW
    What will be the Interview question related to BW CRM Analytics
    If possible if u have any docs kindly email me at [email protected]
    Thanks in Advance.
    Jaffer Ali.S

    Dear Jaffer Ali S.,
    The following types of analyses can be carried out:
    <b>CRM Lead Analysis</b>
    Use the InfoCube CRM Lead Management (Technical Name: 0MKTG_C01) for reporting.
    The Lead Management InfoCube contains all the characteristics and data used for the administration of leads. This InfoCube enables you to execute the following standard queries available in SAP BW:
    Channel Analysis
    Efficiency Reporting
    Historical Evaluation
    Lost Leads
    Channel Management: Top-n Lost Leads (Current Year)
    <b>CRM Activities Analysis</b>
    Use the InfoCube CRM Activities (Technical Name 0CSAL_C01) for reporting.
    The InfoCube for activities in CRM provides the data basis for evaluating business activities undertaken by your employees. It provides you with information about how much time is being spent on contacting the customer, whether customers actively seek out contact with your company and how intensively your employees look after your customers. It delivers data for queries such as:
    Intensity of customer care
    Activity History
    Success/failure analysis
    <b>Customer Interaction Center (CIC)</b>
    Activate the InfoCube Interactive Scripting Evaluation (IC WinClient) 0CRM_CIC1.
    Interactive Scripting Evaluation (IC WinClient)
    This InfoCube provides the data base for the interactive scripting evaluation. It supplies the data to the Interaction Center (IC): Interactive Scripting Evaluation query.
    <b>Opportunities Analysis</b>
    Activate InfoCube 0CRM_C04 - Opportunities.
    The CRM Opportunities InfoCube contains all the characteristics and data used for the opportunities analyses.
    <b>Sales Order Complaints Analysis</b>
    Activate InfoCube Complaints (Technical name: 0CSAL_C09).
    You can carry out the complaint analysis on a daily, monthly, weekly or a quarterly basis. The analysis can be done in relation to CRM Service Organization, CRM Sales Organization, CRM Product, and Sold-To Party.
    <b>Service Qualtiy Analysis</b>
    Activate the MultiProvider 0CSRVMC04 - CRM Service - Orders and Confirmations with Complaints.
    The MultiProvider 0CSRVMC04 - CRM Service - Orders and Confirmations with Complaints gets the data from the following ODS objects for analyses in various queries:
    0CRM_PROI - Orders: Item Data
    0CRM_COI - Controlling (Item Data)
    0CRM_CNFI - Confirmations (Item Data)
    0CRM_COMP - CRM Complaints (Items)
    Let me know if you need further help.
    Reward points if it helps.
    Regards,
    Naveen.

  • Need info on Mass Run FKK_EBS_TOI_COPA

    HI,
    For SAP FS-CD project,  We want to post data into CD by generating the IDOC through LSMW in Delayed Status (With out posting) and will be posted using Mass Run FKK_EBS_TOI_COPA.
    What is the standard process of posting throguh IDOC.  when i post through IDOC will they be posted with delayed status ( withour real postings).  Do we have to run Mass Run FKK_EBS_TOI_COPA for real postings.
    I need to know the relevant events for Mass Run FKK_EBS_TOI_COPA.
    Also i  need info on how to track errors on the below;  Is there any way where we can track errors on the below
    1)      LSMW Data Read/Convert
    2)       IDOC generation with error Status
    3)       FKK_EBS_TOI_COPA Mass run SLG1 log
    Please provide the information.
    Edited by: CVMaruthiRao on Jan 5, 2012 8:15 AM

    HI CVMaruthiRao,
    IDOC generation with error Status --> You can use the  WE05 transaction,   in this transaction you will see the error description and you can fixe!
    FKK_EBS_TOI_COPA Mass run SLG1 log  --> In SLG1 you will see only the error after the IDOC processing.... in this case you alredy have the DOCUMENT (FPE1)  Struture... and you can see any error at the document creation...  but not on the IDOC processing.
    WE19 you can use for creat  any IDOC test you need...
    I have a helpfull IDOC MANUAL (TOI COPA) configuration  if is interesant for you , just send me an email.... andreppf hotmail  com !!
    I'm olso in an FS-CD project... but in my client we are not using the TOI COPA ... I have used in RM-CA projet...
    André Frgulhetti....

  • Need info on table: LATP_ENQ

    HI Experts,
    I need info related to the table LATP_ENQ.
    We create sales order in CRM, through some B-Docs order will be replicated in ECC.
    Entries are getting created in this table based on availability of the materials.
    Through Z-Transaction code, we delete entries in this table.
    Sometimes blank entries are getting created in this table, I would like to know in which scenario this table is getting updated.
    Regards,
    Swaraj

    Hi Swaraj
    As it is a Z transaction t.code and as you have deleted the table when we upgrade our ECC version then those blank tables have to be upgraded
    Regards
    Srinath

  • Need info on Billing Outputs

    Hello,
    I need info abt billing Outputs - The language is maintained in Bill to party (Customer master), Its maintained in Condition record, It can be changed while creating the invoice.
    Now my question is, which of the above three cases has got highest priority.
    Could some one provide me some info on this?
    Regards,
    Krishna

    By default, we will maintain language in Bill-to-Party & also Condition record. But if required, it can be chaged at Invoicing level while taking output. Priority will be Bill-to-party, followed by Condition Record.
    Regards,
    Rajesh Banka

  • Need info on RA

    Hi all,
    i am in mid of RA Config...
    where in i need to Assign the Line ids to cost elements
    here we create the coding mask for the cost element to be assigned to line ids...
    so we need to create diff cost elements a/c to the coding mask....????is it so....
    so in next step ie in "Update of WIP calc and RA(OKG4)"
    where in for our Cntrl area i need to maintain diff cost elements....
    so now i am finding the problem in creating those cost elements.... for  each diff cost element types ie primary,sec,rev,settled...do i need to create diff G/L account ???? coz it asking fo it so....and hw to create those diff cost element..
    is it thru (ka01)....
    i have link regarding RA...but it does nt say anything abt these cost elements...
    need info on this...
    reply soon for this thread...

    Hi Amit,
    While i was doing the config according to the notes given by u...
    i was stuck in OKG8
    they have told me to set RA cat as RFKA and POCB
    BUT THOSE REC DOES NT EXISTS....
    where in i can create these RA category.....or can i use any alternative RA category
    so can u tell me wat these mean if u knw...and which P&L and Balance a/c need to be used or created and provide the TCOde if u have as the one of my CO consulatant hasnt turned up today....so i only have to create them..
    AND TO ARCHIVE THE PROJECT IS THE STATUS OF PROJECT MUST BE SET TO CNF MCNF TECO
    OR ITS ENOUGH THT ITS BEEN RELEASED...
    REGARDS,
    PREETI.P.G

  • Need info on basics of SAP Business One

    Hi Gurus !
    I need info on basic stuffs for SAP business one 2007 . I tried searching in forums and help but was not able to gather good info...
    Request u to pls guide me on :
    1. What is SAP bsuiness one 2007 and how it is diff from ecc 6 etc ..?
    2. How it is benefical for small and mid size businesses ?
    3, How much is the Cost / licence  ? ( if it can be discussed here ! )
    4. How many users it can cater to ? I mean what is min and max suggeted ...
    Thx !

    Hi,
    You have too many questions in one posting.  There is a forum rule that one question per one thread.
    For your question 1, check this link:
    http://wiki.sdn.sap.com/wiki/display/B1/SAPBusinessOne
    Thanks,
    Gordon

  • Need Info on RDA-enabled data source based on FM

    Hi,
    I need Info on RDA-enabled data source based on Function Module.
    How to implement it?
    Thanks & Regards,
    Rashmi.

    Hi Rashmi
    Check this link
    http://help.sap.com/saphelp_nw70/helpdata/EN/52/777e403566c65de10000000a155106/frameset.htm
    [under tab Tranferring Transaction Data from Source Systems (RDA)]
    http://help.sap.com/saphelp_nw70/helpdata/EN/3f/548c9ec754ee4d90188a4f108e0121/frameset.htm
    Regards
    Jagadish

  • I have ca. 30 pdf documents I need to search for keywords; how can I do on my MAC?

    I have ca. 30 pdf documents I need to search for keywords; when I open these documents in Adobe Reader on my MAC, it shows a Search tool; however, when I search for keywords I know are in the document, none are found.  How can I do a keyword search?

    Do you know if the text has been OCR recognised? Are the original documents "scans"?
    An easy way to find out, if you can select an individual word or letter? If you are selecting a whole block of text then the document will need to be put through Optical Character Recognition (OCR) software first to enable you to keyword search.

  • Need info regarding light weight AP 1042 registration

    hi ,
    I ordered controller 2504 and will arive soon. I want to know that after configure the initial setup of 2504 (i.e. AP manager , Managment IPs etc) and defining the DHCP for AP. Will the 1042 lightweight AP will register with the controller automatically or i need to manually define the AP (MAC address) on WLC. and also whether the Option 43 and 60 are correctly defined?
    Management Interface: 10.10.22.15
    AP Manager Int: 10.10.22.16
    ip dhcp pool WLAN103
    network 10.10.3.0 255.255.255.0
    default-router 10.10.3.1
    option 60 ascii "Cisco AP c1040"
    option 43 hex f104.0a0a.1610
    dns-server 10.10.3.1
    ip dhcp pool WLAN103
    network 10.10.3.0 255.255.255.0
    default-router 10.10.3.1
    option 60 ascii "Cisco AP c1040"
    option 43 hex f104.0a0a.1610
    dns-server 10.10.3.1
    port-channel load-balance src-dst-ip
    interface range gig 2/38 - 41
      switchport
      channel-group 13 mode on
      no shutdown
    interface port-channel 13
      switchport
      switchport trunk encapsulation dot1q
      switchport trunk native vlan 1
      switchport trunk allowed vlan 1,122,103,113,1002 - 1005
      switchport mode trunk
      no shutdown
    Regards
    Naray

    Hi Naray,
    I just setup my wireless network with 2504 WLC and 1142 AP's. I don't have to define option 43 or 60 for DHCP i think you need to do this if you have more than one dhcp scope or if you create new scope for wireless.
    In my case i use my old dhcp scope and i just configured wlc with external dhcp and AP joined straight  away. One issue i had was AP wasn't joinging the WLC because of wronge time and date on wlc. Its prety straight forward hope it goes well for you.

  • Getting error log 'Customer' needs to be defined for the PA segment'

    Hi guru,
    i am posting automatic payment transaction (F110) ,but i am getting in display log that
    I am unable to do the posting?
    can somebody let me know any reason for this?
    04/09/2010 12:57:54 Job started                                                                        00           516          S
    04/09/2010 12:57:54 Step 001 started (program SAPF110S, variant &0000000089657, user ID X1SRAVKU)      00           550          S
    04/09/2010 12:57:54 Log for payment run for payment on 01/22/2010, identification EIN5                 FZ           401          S
    04/09/2010 12:57:54 'Customer' needs to be defined for the PA segment                                       ZF           019          S
    04/09/2010 12:57:54 Information re. customer 1002215 / paying company code WG ...                     FZ           306          S
    04/09/2010 12:57:54 ... payment not possible because of reported error                                 FZ           311          S
    04/09/2010 12:57:54 End of log                                                                         FZ           398          S
    04/09/2010 12:57:55 Job finished                                                                       00           517          S

    We have user defined PA characteristics.  If there is  new characteristic we update the custom lists through KES1.
    Lack of a match in this table, leads either to no description or the error you are describing.
    good luck

Maybe you are looking for

  • How can I get a "still" graph of my measured values?

    As a student working on my thesis I have to use LabView7Express to acquire data from surface measurement (using CCD laser sensor).Once the measurements have been acquired, I need to dispay the surface hight evolution on a graph. So far I have only be

  • S/MIME lookup works for ActiveSync, but not OWA.

    Hi, I posted this a while back and it still stands.  https://social.technet.microsoft.com/Forums/en-US/1f16aabc-da7e-40a5-9a2d-f584e3bbf5de/owa-2013-an-error-occurred-while-signing-this-smime-message-no-certificate-was-found?forum=exchangesvrgeneral

  • Set Status of processed action to successful

    Hello experts! I implemented a method call as an action when creating a new task. Everything works fine, the e-mails are sent, but if I open "processed actions" at the item, it says that there were errors while processing the action, but everything w

  • Cisco ACE - "show conn" command queries

    Hi all, i have some queries regarding the "show conn" command in Cisco ACE. Working Scenario: VIP : 10.10.10.1 Server 1 : 10.10.20.1 Server 2 : 10.10.20.2 Client: 30.30.30.1 When a client 30.30.30.1 initiates a connection to the VIP on 10.10.10.1, th

  • Dummies Guide to OSB - SSL to External Service

    Hi Guys, I am new to OSB and need a "dummies guide" to this task. I have found some other threads but they mostly assume knowledge I do not have. If anyone could recommend a good document or even a book chapter that could walk me through this. I have