Exclusions not working powershell script

Hello,
I am using a script that goes out and grabs the user accounts that have been inactive for 45 days or more. Some domains it works like it should giving me the correct output and in some domains it gives me the 45 and less days output. I really need help
getting this script accurate.
$CurrentDate = Get-Date
$NumberDays = 45
$userCollection = Search-ADAccount -AccountInactive -UsersOnly -Server local.domain.com -SearchBase "DC=local,DC=domain,DC=com"
$userCollection | Get-ADUser -Properties * | Select-Object Name,Office,DistinguishedName,LastLogonDate,Enabled,@{n="Days";e={((Get-Date) - $_.LastLogonDate).Days}},@{n='LastLogon';e={[DateTime]::FromFileTime($_.LastLogon)}}
Name                        Office            LastLogonDate                      
 Enabled Days
Shepaum, Lillian       Boca Raton    10/11/2013 10:20:02 AM       True        96
Davis, Graylon          Waynesboro  11/11/2013 2:01:50 PM         True        65
Murphy, Ellen           Boca Raton                                                   True     
Keller, Loretta          Neosho         11/25/2013 1:40:23 PM          True        51
Lackey, J.R.              McMinnville    12/10/2013 1:02:22 PM          True        36
Neuendorf, Tim        McMinnville    12/3/2013 8:16:53 AM            True        44
Roy, Kelli                  Bentonville    12/2/2013 2:35:25 PM            True      
 44
Fristoe, Aaron          Bentonville    12/2/2013 1:21:01 PM            True        44

LastLogonDate and LastLogon are different properties, don't mix them up like that.  LastLogonDate is corresponds to the LDAP property lastLogonTimestamp, which is replicated to all DCs.  LastLogon is a more precise value, but is not replicated
to other domain controllers.
For most purposes related to inactive accounts, you can just use LastLogonDate and pretend that LastLogon doesn't exist.
Edit:  Also, you don't seem to be using your $NumberDays variable anywhere.  You need to specify either the DateTime or Timespan parameters to Search-ADAccount, for example:
$CurrentDate = Get-Date
$NumberDays = 45
Search-ADAccount -AccountInactive -UsersOnly -DateTime ($CurrentDate.AddDays(-$NumberDays))

Similar Messages

  • NW7.5sp07: Memberset(BAS) not working in Script Logic

    Hi,
    I wrote one simple script :
    *XDIM_MEMBERSET G_FLOW=F_CLO
    *XDIM_MEMBERSET G_DATASRC =BAS(CMTTOT)
    *XDIM_MEMBERSET DC_ACCT=DA_CE0120000
    *XDIM_MEMBERSET DC_FDETAIL=ALL
    *DESTINATION_APP=FINANCE
    *ADD_DIM CONSOLVIEW=NONGROUP
    *RENAME_DIM DC_ACCT=G_ACCT
    *SKIP_DIM=DC_FDETAIL
    *WHEN DC_FDETAIL
      *IS FD_CE0120006
              *REC(DC_ACCT=DVAL131A3, G_DATASRC=VALIDATIONS)
      *IS BAS(FD_CE0112000)
              *REC(DC_ACCT=DVAL131A4, G_DATASRC=VALIDATIONS)
           *ENDWHEN
    *COMMIT
    But i am not able to get the data for account DVAL131A4, though DVAL131A3 is working fine.
    In DVAL131A44, i am getting 0 records and i check the package status script also

    Hi, as far as I know the BAS option does not work for XDIM_MEMBERSET in the version you are working. I would use teh *SELECT option as an alternative to tackle this issue via some properties.
    Hope this helps.

  • User Profile Disks - exclusions not working

    I'm utilizing User Profile Disks to handle profiles between my Session Host servers. I have some odd requirements on which folders need to be included in the UPD, so for this reason, I am using the option of "Store all user settings and data on the
    user profile disk" and then I am trying to exclude specific folders. However the exclusions are not working properly.
    For example, I am trying to exclude AppData\Roaming\Adobe. In Server Manager under the profile disk settings, I add an exclusion of \AppData\Roaming\Adobe.
    However after I connect to a RemoteApp and my profile disk is created, when I mount the UPD, I see that this folder is still created inside the VHDX. Am I entering the path incorrectly? How would I properly exclude a specific folder from being redirected
    to the user profile disk?

    Hi ,
    This issue may occur if the user profile was manually deleted by using the command prompt or by using Windows Explorer and if the “Do not logon users with temporary profiles” Group Policy setting is configured.
    A profile that is manually deleted does not remove the security identifier (SID) from the profile list in the registry.
    If the SID is present, Windows will try to load the profile by using the ProfileImagePath that points to a nonexistent path. Therefore, the profile cannot be loaded.
    To resolve this problem open yourself, follow these steps:
    Right click Computer > Properties > Advanced system settings > Advanced tab > Under User Profiles, click Settings > In the User Profiles dialog box, select the profile that you want to delete > click Delete > Apply/OK.
    Also check your Synchronization Connection Settings in User Profile Service application also make sure you are running this service application with Service Account i.e. Account with Farm Admin permission.
    Please mark the same as answer if it helps you.Thanks.

  • Picexport is not working with SCRIPT

    Hi ALL,
    I have upgraded my diadem from 2010 to 11 and now this is not working anymore:
    Call PicExport("X:\transfer\081022\"&SaveFile&"_scaled_tsr","WMF",1,768,1024,"",75,"",0)
    when I try this script i get a first the failure message ==> acsess violation; and when i retry this function I get the message that this function is not activated
    please help me
    THX in advance

    Hy,
    I have tried now almost all formats with the same result:
    - when I use the picexport "by hand" it works fine!
    - when I use the record function for scripting it is working...
    - I stop the recording and want to run the script, it works the first time and then I get first the access violation msg and then the "not activated" msg
    I dont wanna use the PDF eport because I have arround 200-300 pictures per "run" which I want to quickcheck ("scrolling" thru all pics witch a picture viewer) and this not very useful by PDF...
    So there must be a solution?!!!! The same script was working with the last diadem version...
    THX
    Andreas
    Attachments:
    accessviolation.PNG ‏46 KB
    not_active.PNG ‏33 KB

  • Activate not working in scripts written 6 years ago not working now

    Hi All,
    I have a script that has been working consistently for 6 to 7 years.  Now I copied it to my new Macbook Pro running yosemite and now the activate is not working when placed before display dialog.  The script uses Illustrator and Excel and for some parts of the script these applications are brought to the front using activate.  These activates seem to work.  However, the activate does not work with display dialog.  I tried to remedy this by putting a tell me block around the code.
    I don't know if this make a difference but the script is executed through the run script command.
    Any help would be great.
    Thanks,
    Carolyn
    OS 10.10.1
    15 inch retina
    2.5 intel core i7

    Do you have the proper conference media resources set up with MRG and MRGLs?

  • CC 2014 alias not working in Scripts folder

    Hi-
    I bought a new laptop (Macbook Pro Retina 15") and did a clean install of CC 2014 using my existing account.  On my old machine I had an alias in the Scripts folder to a central repository I keep of scripts for After Effects.  When I made the alias on this new machine, After Effects would not load the scripts inside that folder.  I did some additional testing using a folder of Adobe-supplied scripts, and again, they would not load when the path to them involved an alias. 
    Anyone have any thoughts?
    Thanks!
    Dan Scully

    Have you triple-checked all your permissions?

  • SQL Plus Bug/Question: 'COMPUTE' command does not work in script.(BUG?!)

    Good Day to ALL!
    I have a script of SQLPlus that creates a report. I have 8/9 numeric columns which are 'SUM'ed up thru 'COMPUTE' command. It works for all BUT 2 columns. If I put these two columns, compute does not take affect. If I remove these two columns ( just cut) 'COMPUTE' works fine!!! These two coulumns use DB Function. But I have other column that also use DB Function. These two columns has some extra additions. Any thing wrong with the script/column defn.
    Thanks - Pradip (Pradip Biswas @Singapore) Could you pl. reply to [email protected]
    Here is bit of script. Sorry about the length of the cut and paste.
    COLUMN OPEN_QTY_BAL           FORMAT 9,99,990          HEADING 'Opening|Qty'           Justify LEFT
    COLUMN OPEN_QTY_VALUE          FORMAT 99,999,990      HEADING 'Opening|S$'           Justify LEFT
    COLUMN PO_RECEIPTS_QTY      FORMAT 99,990          HEADING 'PO Rec|QTY '          Justify LEFT
    COLUMN PO_RECEIPTS_QTY_VALUE     FORMAT 9,999,990      Heading 'PO Rec|S$'           Justify LEFT
    COLUMN MISC_RECEIPTS_QTY     Format 99,990          Heading 'Misc |Qty'          Justify LEFT
    Column MISC_RECEIPTS_QTY_VALUE      Format 9,999,990      Heading 'Misc|S$'          Justify LEFT
    COLUMN WORKORDER_QTY           FORMAT 99,990          HEADING 'WorkOrd|Qty'          Justify LEFT
    COLUMN WorkOrder_QTY_VALUE      Format 9,999,990      HEADING 'WorkOrd|S$'          Justify LEFT
    COLUMN SALES_SHIPMENT_QTY      FOrmat 99,990          Heading 'SalesShip|Qty'          Justify LEFT
    COLUMN SALES_SHIPMENT_QTY_VALUE FOrmat 9,999,990      Heading 'SalesShip|S$'          Justify LEFT
    COLUMN MISC_ISSUE_QTY     Format 99,999          HEADing 'Misc|Qty'          Justify LEFT
    COLUMN MISC_ISSUE_QTY_VALUE Format 9,999,990 heading 'Misc|S$'          Justify LEFT
    COLUMN TRANSFER_QTY          format 99,990          heading 'Transfer|Qty'          Justify LEFT
    COLUMN TRANSFER_QTY_VALUE     format 99,999,990     heading 'Transfer|S$'          Justify LEFT
    COLUMN REVAL_VALUE Format 99,990          Heading 'Reval|S$'          Justify LEFT
    COLUMN ON_HAND_QTY           FORMAT 9,99,990      HEADING 'Closing|Qty'           Justify LEFT
    COLUMN ON_HAND_QTY_VALUE     FORMAT 99,999,999,990      HEADING 'Closing|S$'           Justify LEFT
    REPHEADER on
    REPHEADER left ' GL Period From: &&P_GL_PERIOD_NAME_FROM ' skip left ' GL Period To : &&P_GL_PERIOD_NAME_TO ' skip left ' Inv Org Code : &&P_INV_ORG_CODE ' skip left 'SubInventory Code : &&P_SUBINVENTORY_CODE ' skip 2
    TTITLE left 'H - Inv Inventory Movement Report as at:' TTITLE_DATE RIGHT 'PAGE:' FORMAT 999 SQL.PNO SKIP 2
    BTITLE skip 1 CENTER 'COMPANY CONFIDENTIAL - Printed on ' TTITLE_DATE
    BREAK on REPORT skip 1;
    --rem(1) compute SUM label 'Total' of OPEN_QTY_VALUE PO_RECEIPTS_QTY_VALUE MISC_RECEIPTS_QTY_VALUE WorkOrder_QTY_VALUE SALES_SHIPMENT_QTY_VALUE MISC_ISSUE_QTY_VALUE TRANSFER_QTY_VALUE REVAL_VALUE on report;
    --REM(2) compute SUM label 'Total $S: ' of OPEN_QTY_VALUE REVAL_VALUE on report;
    --REM(3) compute SUM label 'Total $S: ' of OPEN_QTY_VALUE REVAL_VALUE  ON_HAND_QTY_VALUE on report;
    compute SUM label 'Total $S:' of OPEN_QTY_VALUE PO_RECEIPTS_QTY_VALUE MISC_RECEIPTS_QTY_VALUE WorkOrder_QTY_VALUE SALES_SHIPMENT_QTY_VALUE MISC_ISSUE_QTY_VALUE TRANSFER_QTY_VALUE REVAL_VALUE on report;
    WHENEVER SQLERROR EXIT FAILURE
    select
    --     MSI.ORGANIZATION_ID                          ORGANIZATION_ID,
    -- MSI.INVENTORY_ITEM_ID                                   INVENTORY_ITEM_ID,
         MSI.SEGMENT1||'//'||MSI.DESCRIPTION                                   ITEM,
    -- MSI.DESCRIPTION                                             DESCRIPTION,
    All_Item_subinv.SUBINVENTORY_CODE                              SUBINVENTORY,
    MSIV.PRIMARY_UOM_CODE                                        UOM,
         --NVL(MOQ_OPen_BAL.OPEN_QTY_BAL ,0)                               OPEN_QTY_BAL ,
    -- NVL(MOQ_OPen_BAL.OPEN_QTY_BAL,0) * NVL(AVG_ITEM_COST1.ITEM_COST,0)           OPEN_QTY_VALUE,
    (MOQ_OPen_BAL( All_Item_subinv.SUBINVENTORY_CODE,
              MSI.ORGANIZATION_ID,
    MSI.INVENTORY_ITEM_ID,
    '&P_GL_PERIOD_NAME_FROM') )     OPEN_QTY_BAL ,
    (MOQ_OPen_BAL_VAL( All_Item_subinv.SUBINVENTORY_CODE,
              mSI.ORGANIZATION_ID,
    MSI.INVENTORY_ITEM_ID,
    '&P_GL_PERIOD_NAME_FROM')
         )                                             OPEN_QTY_VALUE,
    NVL(AGGREGATED_MTT.PO_RECEIPTS_QTY,0)                              PO_RECEIPTS_QTY,
         NVL(AGGREGATED_MTT.PO_RECEIPTS_QTY_VALUE,0)                          PO_RECEIPTS_QTY_VALUE,
         NVL(AGGREGATED_MTT.MISC_RECEIPTS_QTY,0)                              MISC_RECEIPTS_QTY,
         NVL(AGGREGATED_MTT.MISC_RECEIPTS_QTY_VALUE,0)                          MISC_RECEIPTS_QTY_VALUE,
         NVL(AGGREGATED_MTT.WORKORDER_QTY,0)                              WORKORDER_QTY,
         NVL(AGGREGATED_MTT.WorkOrder_QTY_VALUE,0)                          WorkOrder_QTY_VALUE,
    NVL(AGGREGATED_MTT.SALES_SHIPMENT_QTY,0)                         SALES_SHIPMENT_QTY,
         NVL(AGGREGATED_MTT.SALES_SHIPMENT_QTY_VALUE,0)                         SALES_SHIPMENT_QTY_VALUE,
         NVL(AGGREGATED_MTT.MISC_ISSUE_QTY,0)                              MISC_ISSUE_QTY,
         NVL(AGGREGATED_MTT.MISC_ISSUE_QTY_VALUE,0)                          MISC_ISSUE_QTY_VALUE,
         NVL(AGGREGATED_MTT.TRANSFER_QTY,0)                              TRANSFER_QTY,
         NVL(AGGREGATED_MTT.TRANSFER_QTY_VALUE,0)                         TRANSFER_QTY_VALUE,
         NVL(AGGREGATED_MTT.REVAL_VALUE,0)                              REVAL_VALUE,
              (MOQ_OPen_BAL(All_Item_subinv.SUBINVENTORY_CODE,
              MSI.ORGANIZATION_ID,
    MSI.INVENTORY_ITEM_ID,
    '&P_GL_PERIOD_NAME_FROM')
              +
              nvl(AGGREGATED_MTT.PO_RECEIPTS_QTY,0)      +
              nvl(AGGREGATED_MTT.MISC_RECEIPTS_QTY,0)     +
              nvl(AGGREGATED_MTT.WORKORDER_QTY,0)     +
              nvl(AGGREGATED_MTT.SALES_SHIPMENT_QTY,0)     +
              nvl(AGGREGATED_MTT.MISC_ISSUE_QTY,0)          +
              nvl(AGGREGATED_MTT.TRANSFER_QTY,0)     )                ON_HAND_QTY,
    ((MOQ_OPen_BAL_VAL( All_Item_subinv.SUBINVENTORY_CODE,MSI.ORGANIZATION_ID,MSI.INVENTORY_ITEM_ID,'&P_GL_PERIOD_NAME_FROM'))
    +(nvl( AGGREGATED_MTT.PO_RECEIPTS_QTY_VALUE,0) )     
    +(nvl( AGGREGATED_MTT.MISC_RECEIPTS_QTY_VALUE,0) )
    +(nvl( AGGREGATED_MTT.WorkOrder_QTY_VALUE,0) )
    +(nvl( AGGREGATED_MTT.sALES_SHIPMENT_QTY_VALUE,0) )
    +(nvl( AGGREGATED_MTT.MISC_ISSUE_QTY_VALUE,0) )
    +(nvl( AGGREGATED_MTT.TRANSFER_QTY_VALUE,0) )
    +nvl( AGGREGATED_MTT.REVAL_VALUE,0))                               ON_HAND_QTY_VALUE -- column alias
    FROM
    -- In line View for MSI
    (select distinct MMT.ORGANIZATION_ID, MMT.INVENTORY_ITEM_ID, MMT.SUBINVENTORY_CODE
    From MTL_MATERIAL_TRANSACTIONS      MMT,
    ORG_ORGANIZATION_DEFINITIONS      OOD,
    MTL_ONHAND_QUANTITIES moq
    where
         OOD.organization_code           = '&P_INV_ORG_CODE' --'HS' --'&P_INV_ORG_CODE'
    AND OOD.inventory_enabled_flag = 'Y'
    AND OOD.operating_unit          = fnd_profile.value('ORG_ID') --83 --fnd_profile.value('ORG_ID')
    AND OOD.SET_OF_BOOKS_ID          = fnd_profile.value('GL_SET_OF_BKS_ID') --1 --fnd_profile.value('GL_SET_OF_BKS_ID')
    AND     MMT.ORGANIZATION_ID          = OOD.organization_id
    AND MMT.SUBINVENTORY_CODE          = NVL('&P_SUBINVENTORY_CODE', MMT.SUBINVENTORY_CODE)
    and MMT.ORGANIZATION_ID      = MOQ.ORGANIZATION_ID -- to eliminate consigend items:2007Jan04:PKB
    and MMT.INVENTORY_ITEM_ID = MOQ.INVENTORY_ITEM_ID --,,
    and MMT.SUBINVENTORY_CODE = MOQ.SUBINVENTORY_CODE --,,
    UNION
    Select distinct      MOQ.ORGANIZATION_ID,      MOQ.INVENTORY_ITEM_ID,     MOQ.SUBINVENTORY_CODE
    from      MTL_ONHAND_QUANTITIES                MOQ,
         ORG_ORGANIZATION_DEFINITIONS           OOD2
    WHERE
         OOD2.organization_code           = '&P_INV_ORG_CODE' --'HS' --'&P_INV_ORG_CODE'
    AND OOD2.inventory_enabled_flag      = 'Y'
    AND OOD2.operating_unit          = fnd_profile.value('ORG_ID') --83 --fnd_profile.value('ORG_ID')
    AND OOD2.SET_OF_BOOKS_ID          = fnd_profile.value('GL_SET_OF_BKS_ID') --1 --fnd_profile.value('GL_SET_OF_BKS_ID')
    AND moq.ORGANIZATION_ID          = OOD2.organization_id
    AND moq.SUBINVENTORY_CODE          = NVL('&P_SUBINVENTORY_CODE', moq.SUBINVENTORY_CODE)
    ) ALL_Item_SUBInv,
    MTL_SYSTEM_ITEMS_B MSI,
    Mtl_System_Items_Vl MSIV,
    (SELECT
         MMT.ORGANIZATION_ID ORGANIZATION_ID,
    MMT.INVENTORY_ITEM_ID          INVENTORY_ITEM_ID,
    MMT.SUBINVENTORY_CODE          SUBINVENTORY_CODE,
    -- PO RECEIPTS.
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Purchase order')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('PO Receipt','PO Rcpt Adjust','Return to Vendor')
    THEN
                   --MMT.TRANSACTION_QUANTITY
                   mmt.primary_quantity
    ELSE 0
    END
    ELSE 0
    END ) PO_RECEIPTS_QTY,
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Purchase order')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('PO Receipt','PO Rcpt Adjust','Return to Vendor')
    THEN
                   NVL(MMT.ACTUAL_COST,0)* nvl(mmt.primary_quantity,0)
                   MMT.TRANSACTION_COST * NVL(AVG_ITEM_COST.ITEM_COST,0)
    ELSE 0
    END
    ELSE 0
    END ) PO_RECEIPTS_QTY_VALUE,
    -- MISC RECEIPTS.
    SUM( CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Account','Inventory')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Account receipt','Miscellaneous receipt')
    THEN
                   --MMT.TRANSACTION_QUANTITY
                   mmt.primary_quantity
    ELSE 0
    END
    ELSE 0
    END ) MISC_RECEIPTS_QTY,
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Account', 'Inventory')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Account receipt','Miscellaneous receipt')
    THEN
                   NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
                        MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
    ELSE 0
    END
    ELSE 0
    END ) MISC_RECEIPTS_QTY_VALUE,
    -- WorkOrder Qty and S$
    SUM( CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Job or Schedule')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('WIP Assembly Return','WIP Assy Completion','WIP component issue','WIP Component Return')
    THEN
                   --MMT.TRANSACTION_QUANTITY
                   mmt.primary_quantity
    ELSE 0
    END
    ELSE 0
    END ) WORKORDER_QTY,
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Job or Schedule')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('WIP Assembly Return','WIP Assy Completion','WIP component issue','WIP Component Return')
    THEN
                   NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
                        MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
    ELSE 0
    END
    ELSE 0
    END ) WorkOrder_QTY_VALUE,
    -- Sales Shipment
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ( 'Sales order','RMA')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Sales order issue','Sales Order Pick','RMA Return','RMA Receipt')
    THEN
                   --MMT.TRANSACTION_QUANTITY
                   mmt.primary_quantity
    ELSE 0
    END
    ELSE 0
    END ) SALES_SHIPMENT_QTY,
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ( 'Sales order','RMA')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Sales order issue','Sales Order Pick','RMA Return','RMA Receipt')
    THEN
                   NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
                   MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
    ELSE 0
    END
    ELSE 0
    END ) SALES_SHIPMENT_QTY_VALUE,
    -- MISC ISSUE
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Inventory','Account' )
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Miscellaneous issue','Account issue')
    THEN
                   --MMT.TRANSACTION_QUANTITY
                   mmt.primary_quantity
    ELSE 0
    END
    ELSE 0
    END ) MISC_ISSUE_QTY,
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ('Inventory','Account' )
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Miscellaneous issue','Account issue')
    THEN
                   NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
                   MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
    ELSE 0
    END
    ELSE 0
    END ) MISC_ISSUE_QTY_VALUE,
    -- Transfers
    SUM( CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ( 'Inventory' )
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Subinventory Transfer')
    THEN
                   --MMT.TRANSACTION_QUANTITY
                   mmt.primary_quantity
    ELSE 0
    END
    ELSE 0
    END ) TRANSFER_QTY,
    SUM( CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ( 'Inventory')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Subinventory Transfer')
    THEN      NVL(MMT.ACTUAL_COST,0) * nvl(mmt.primary_quantity,0)
                   MMT.TRANSACTION_COST NVL(AVG_ITEM_COST.ITEM_COST,0)
    ELSE 0
    END
    ELSE 0
    END ) TRANSFER_QTY_VALUE,
    -- Adjustment to Cost (Revaluation)
    SUM(CASE
         WHEN MTST.TRANSACTION_SOURCE_TYPE_NAME in
    ( 'Standard cost update','Job or Schedule')
         THEN
              CASE
              WHEN MTT.TRANSACTION_TYPE_NAME in
    ('Standard cost update','WIP cost update')
    THEN
                   --2007JAN03:PKB MMT.TRANSACTION_COST
    MMT.TRANSACTION_COST* MMT.QUANTITY_ADJUSTED
    ELSE 0
    END
    ELSE 0
    END ) REVAL_VALUE
         FROM
         MTL_MATERIAL_TRANSACTIONS                MMT,
         --GL_PERIODS                          GP,
         MTL_TRANSACTION_TYPES                MTT,
         MTL_TXN_SOURCE_TYPES                    MTST,
    ORG_ORGANIZATION_DEFINITIONS                OOD
    WHERE     
    OOD.organization_code           = '&P_INV_ORG_CODE' --'HS' --'&P_INV_ORG_CODE'
    AND OOD.inventory_enabled_flag = 'Y'
    AND OOD.operating_unit          = fnd_profile.value('ORG_ID') --83 --fnd_profile.value('ORG_ID')
    AND OOD.SET_OF_BOOKS_ID          = fnd_profile.value('GL_SET_OF_BKS_ID') --1 --fnd_profile.value('GL_SET_OF_BKS_ID')
    AND     MMT.ORGANIZATION_ID          = OOD.organization_id
    AND MMT.SUBINVENTORY_CODE          = NVL('&P_SUBINVENTORY_CODE', MMT.SUBINVENTORY_CODE)
    -- AND GP.PERIOD_SET_NAME          = 'HF-ACCTG-CAL' -- Hardcoded PKB
    AND
         (     (EXISTS
         ( select GP.Period_name
    FROM GL_PERIODS GP
    where TO_DATE(TO_CHAR(MMT.TRANSACTION_DATE,'DD-MM-YYYY'),'DD-MM-YYYY')
                   >= TO_DATE(TO_CHAR(GP.START_DATE,'DD-MM-YYYY'),'DD-MM-YYYY') --Between GP.START_DATE and GP.END_DATE
         AND GP.PERIOD_NAME      = '&P_GL_PERIOD_NAME_FROM'
              and GP.PERIOD_SET_NAME          = 'HF-ACCTG-CAL'
    AND NVL('&P_GL_PERIOD_NAME_FROM','ALL')      != 'ALL'
    OR (NVL('&P_GL_PERIOD_NAME_FROM' ,'ALL')               = 'ALL')
    AND
         (     (EXISTS
         ( select GP.Period_name
    FROM GL_PERIODS GP
    where TO_DATE(TO_CHAR(MMT.TRANSACTION_DATE,'DD-MM-YYYY'),'DD-MM-YYYY')
                   <= TO_DATE(TO_CHAR(GP.END_DATE,'DD-MM-YYYY'),'DD-MM-YYYY')
         AND GP.PERIOD_NAME      = '&P_GL_PERIOD_NAME_TO'
              and GP.PERIOD_SET_NAME          = 'HF-ACCTG-CAL'
    AND NVL('&P_GL_PERIOD_NAME_TO','ALL')      != 'ALL'
    OR (NVL('&P_GL_PERIOD_NAME_TO','ALL')               = 'ALL')
    AND MMT.TRANSACTION_TYPE_ID          = MTT.TRANSACTION_TYPE_ID
    AND MMT.TRANSACTION_SOURCE_TYPE_ID          = MTST.TRANSACTION_SOURCE_TYPE_ID
    group by
         MMT.ORGANIZATION_ID,
    MMT.INVENTORY_ITEM_ID,
    MMT.SUBINVENTORY_CODE
    )                    AGGREGATED_MTT,
    -- Inline Table for AVG_ITEM_COSTs 2nd time,
    (SELECT
         CIC.ORGANIZATION_ID     ORGANIZATION_ID,
    CIC.INVENTORY_ITEM_ID INVENTORY_ITEM_ID,
    CIC.COST_TYPE_ID COST_TYPE_ID,
    CCT.COST_TYPE     COST_TYPE,
    NVL(CIC.ITEM_COST ,0) ITEM_COST
    FROM
         CST_ITEM_COSTS           CIC,
         CST_COST_TYPES           ccT,
    ORG_ORGANIZATION_DEFINITIONS                OOD1
    WHERE
         CCT.COST_TYPE_ID           = CIC.COST_TYPE_ID
         /*AND (
         (CCT.COST_TYPE          = 'Average' and '&P_INV_ORG_CODE' = 'HS')
              OR
    (CCT.COST_TYPE          = 'Frozen' and '&P_INV_ORG_CODE' = 'HL')
    AND CCT.COST_TYPE_ID =
              ( select      m.primary_cost_method
              from      mtl_parameters m
    where      m.organization_id      = OOD1.ORGANIZATION_ID
         and OOD1.organization_code      = '&P_INV_ORG_CODE' --'HS' --'&P_INV_ORG_CODE'
         AND OOD1.inventory_enabled_flag = 'Y'
         AND OOD1.operating_unit          = fnd_profile.value('ORG_ID') 83 --fnd_profile.value('ORG_ID')
         AND OOD1.SET_OF_BOOKS_ID     = fnd_profile.value('GL_SET_OF_BKS_ID') 1 --fnd_profile.value('GL_SET_OF_BKS_ID')
         AND cic.ORGANIZATION_ID          = OOD1.organization_id
         )                               AVG_ITEM_COST1
    WHERE
    AGGREGATED_MTT.ORGANIZATION_ID(+)          = All_Item_subinv.ORGANIZATION_ID
    AND AGGREGATED_MTT.INVENTORY_ITEM_ID(+) = All_Item_subinv.INVENTORY_ITEM_ID
    AND AGGREGATED_MTT.subinventory_code(+)     = All_Item_subinv.subinventory_code
    AND All_Item_subinv.ORGANIZATION_ID          = MSI.ORGANIZATION_ID
    AND ALL_Item_SUBInv.INVENTORY_ITEM_ID          = MSI.INVENTORY_ITEM_ID
    AND AVG_ITEM_COST1.ORGANIZATION_ID(+)     = MSI.ORGANIZATION_ID
    AND AVG_ITEM_COST1.INVENTORY_ITEM_ID(+)      = MSI.INVENTORY_ITEM_ID
    and msi.ROWID                         = MSIV.ROW_ID
    and msi.ORGANIZATION_ID                    = fnd_profile.value('ORG_ID') --83 --fnd_profile.value('ORG_ID')
    and sysdate between NVL(msi.start_date_active,sysdate -1 )
    and NVL(msi.end_date_active,sysdate+1)
    Order BY
         MSI.SEGMENT1,
    MSI.DESCRIPTION     ,
    All_Item_subinv.SUBINVENTORY_CODE
    /

    Hi Barry and All: This indeed is a bug in SQLPLUS ! Version 9.2.0.1.0 as well.
    Thanks for asking the version no of SQLLPLUs. I was working thru Oracle Apps 11i.10 (concurrent program). So I did not get any message from SQLPLUS.
    I tested independently in SQLPLUS and got the message! Thanks Oracle!!!
    The Bug is in the name of COLUMN NAME or ALIAS Name. I renamed the columns from ON_HAND_QTY and ON_HAND_VALUE to CLOSE_QTY and CLOSE_QTY_VALUE. It worked!! The string 'ON' in the column/alias name is taken as 'ON' keyword/clause for 'compute' statement for SQLPLUS.
    Here is the message from SQLPLUS
    " SP2-0084: COMPUTE ON keyword specified already"
    See these two line and compare
    --compute SUM label 'Total $S: ' of SALARY ON_SALARY  on report;
    compute SUM label 'Total $S: ' of SALARY on report;
    Thanks - Pradip
    Here is the sample code to simulate. (not Big :))
    WHENEVER SQLERROR EXIT FAILURE
    CLEAR computes
    CLEAR BREAKS
    clear column
    TTITLE OFF
    BTITLE OFF
    set verify off
    set feedback off
    set echo off
    set heading off
    set termout off
    set linesize 203
    set pagesize 30
    set termout on
    SET UNDERLINE =
    set heading on
    COLUMN SALARY               FORMAT 9,999,990      Heading 'SALARY'           
    COLUMN ON_SALARY          format 9,999,990 Heading 'ON Salary'
    column ENAME format a20 heading 'NAME'
    COLUMN EMPNO Format 99999 HEADING 'EMPNO'
    BREAK on REPORT skip 3;
    --compute SUM label 'Total $S: ' of SALARY ON_SALARY  on report;
    compute SUM label 'Total $S: ' of SALARY on report;
    WHENEVER SQLERROR EXIT FAILURE
    select empno, ename, sal SALARY, sal ON_SALARY from scott.emp;

  • PS/Bridge CS5 Batch Processor Not Working / Missing Scripts

    I'm having a bit of a problem within Photoshop/Bridge CS5 and haven't found anything that works to resolve it.
    In Bridge, I want to launch the Photoshop Batch Processor via Tools>Photoshop>Batch.
    When I select this, Photoshop launches, but the dialog to process the images never shows. On occasion, if I return to Bridge and attempt the same operation again, I'll get a notification that there's already something in progress and asks if I want to queue this operation. The other times (majority) I can return to Bridge and attempt the operation again but get no dialogues in Photoshop. I can try the other options in this menu as well (eg Image Processor, etc) and get the same results.
    Here's what I've done so far:
    1. Checked Bridge Edit>Preferences>Startup Scripts and ensured those were all checked. I even disabled all, closed Bridge and Photoshop, then re-enabled.
    2. Cleared all Preferences from Bridge and Photoshop (using Ctrl+Shift+Alt at launch).
    3. Reinstalled Photoshop (multiple times)
    4. Uninstalled Photoshop, ran the Adobe CS Cleaner application, then reinstalled Photoshop.
    It should be noted that in Bridge>Edit>Preferences and Startup Scripts, if I click the button to 'Reveal my scripts' the folder it takes me to is blank. Not sure if this folder is solely used for personal/user created scripts or for others as well, but it's completely empty.
    I have also gone to Help>Updates and updated both applications with any necessary updates from Adobe.
    If I go into Photoshop and select File>Automate>Batch or even File>Scripts>Image Processor, both dialogues open fine.
    Running Windows 8.1 Pro.
    Anyone else seen this and actually resolve the issue? Does anyone know where the scripts are supposed to be located and/or if I can get them from somewhere else? Any help is much appreciated

    Make sure Photoshop is not started and then try to use Bridge menu Tools>Photoshop>Batch does Photoshop start up?
    Bridge CS5 menu Tools>Photoshop>Batch works on my Windows 7 Pro system
    Photoshop Automate>Batch is not a script  and Photoshop does not any external java program it had its own version of java plugin.
    c:\Program Files (x86)\Adobe\Adobe Photoshop CS5\Plug-ins\Extensions\ScriptingSupport.8li
    c:\Program Files\Adobe\Adobe Photoshop CS5 (64 Bit)\Plug-ins\Extensions\ScriptingSupport.8li
    However there are two startup scripts for the bridge involved Bridge and Photoshop  You must have them for you have a Bridge menu Tools>Photoshop>items
    two scripts on my system are:
    c:\Program Files (x86)\Common Files\Adobe\Startup Scripts CS5\Adobe Bridge\bridge-4.jsx
    c:\Program Files (x86)\Common Files\Adobe\Startup Scripts CS5\Adobe Photoshop\photoshop.jsx
    The photoshop.jsx seems to be the one the the inserts the menu Tools>Photoshop>Batch into Bridge and also invokes Photosgop Automate>batch  photoshop.jsx  also inserts the other Bridge menu Tools>Photoshop>Menu Itens that you state work.
    Here is what I see in my photoshop.jsx for batch.  I do not know or understand Bridge scripting and do not know javsscript but what I see there seems to be some checking done about Photoshop being available and if it is not the script just returns which is what you seem to be experiencing the test looks like this
      if (!photoshop.correctPSIsAvailable (availabilityCheckOptions))
      return;
    The whole batch support section follows:
    //=================================================================
    // Batch
    // Sets up Photoshop's Batch automation command to be
    // accessed from the Bridge.
    //=================================================================
    // This routine takes an array of files. If called by Photoshop,
    // it will invoke Batch with the files. If called by
    // any other app, it will send a BridgeTalk message to Photoshop
    // to invoke this routine with the same arguments.
    photoshop.batch = function (/* Array */ files, availabilityCheckOptions)
      try
      if (availabilityCheckOptions == null)
      availabilityCheckOptions = new AvailabilityCheckOptions ();
      // Make sure this can be run.
      if (!photoshop.correctPSIsAvailable (availabilityCheckOptions))
      return;
      if (BridgeTalk.appName != "photoshop")
      // Bring Photoshop to the foreground.
      BridgeTalk.bringToFront (photoshop.versionInfo.btTargetName);
      // Create a new BridgeTalk message for Photoshop to invoke
      // Batch with the selected files
      var btMessage = new BridgeTalk;
      btMessage.target = photoshop.versionInfo.btTargetName;
      btMessage.body = "photoshop.batch (" + files.toSource () + ");";
      btMessage.send ();
      else
      app.bringToFront();
      photoshop.runActionCommand ('batch', files,
      localize ("$$$/PSBI/Automate/BatchSettingsFile=Batch via Bridge Settings"));
      catch (error)
      if (error.number != 8007) // Don't report user cancelled errors.
      alert (error);
    // This routine is called when the Bridge's Batch menu item is
    // chosen.
    photoshop.batchFromBridge = function ()
      try
      var availabilityCheckOptions = new AvailabilityCheckOptions ();
      // Make sure this can be run.
      if (!photoshop.correctPSIsAvailable (availabilityCheckOptions))
      return;
      var files = photoshop.getBridgeFileListForAutomateCommand (true, false);
      if (files.length != 0)
      photoshop.batch (files, availabilityCheckOptions);
      catch (error)
      if (error.number != 8007) // Don't report user cancelled errors.
      alert (error);
    // The code below inserts the Batch menu item into the Bridge menus.
    if ((BridgeTalk.appName == "bridge") && (BridgeTalk.appVersion.indexOf (photoshop.versionInfo.bridgeTargetVersion) == 0))
      // Use temp function to keep vars out of global namespace.
      photoshop.tempFunction = function ()
      // Set up the info necessary for inserting this item into the Bridge's menus later.
      var menuItemInfo = new Object;
      menuItemInfo.text = localize ("$$$/PSBI/Menu/Automate/Batch=Batch...");
      menuItemInfo.name = 'Batch';
      menuItemInfo.onSelect = photoshop.batchFromBridge;
      photoshop.menuItemInfoArray.push (menuItemInfo);
      photoshop.tempFunction ();
      delete photoshop.tempFunction;

  • Workflow does not work from Script Menu or as Application

    Hi,
    I create a really simple script to adjust podcast volume...
    1. Get Specified iTunes Items (Recently added podcast – my smart folders of recently downloaded items)
    2. Filter Songs in iTunes (Volume Adjustment is 0: so the workflow will not touch podcasts already adjusted.)
    3. Set Options of iTunes Songs (Volume Adjustment: 80)
    The workflow works find when running from Automator. But when I save it as script plug-in or application and try to run it, nothing happens. Please help. Thanks.
    P.S. I tried to create folder action script that adjust the volume automatically when a podcast is downloaded (get selected items -> set options in iTunes songs). At first it works. Now it doesn't.

    It starts by pausing iTunes, executes a applescript where there are say commands, pauses for 3 seconds, gets info from ical, filters out todays events, speaks these events out loud, fetches a weather report via web(xml), speaks out loud, pauses a couple of seconds, gets current itunes song, resumes playing of this song and the workflow is finished.
    It quits right before it is about to announce todays events. Doesnt matter if there are events for today or not. If I start the application manually however, everything seems fine.
    The Applescript used to launch the program:
    tell application "TodaysiCal"
    run
    end tell
    Any suggestions now ?

  • Stop() does not work, action script from 2.0 to 3.0

    Hi everybody, some years ago I have created a website in Flash with Actionscript 2.0
    Now the customer want to change something in the text and I stumble upon the action script 2.0 has become 3.0
    This means that my stop() (I have kind of menu on the left that should display afterwards from frame 5-10 for instance)
    Now my swf works when I execute it locally but when online it just goes on and on ....
    anyone an idea ? I am getting crazy ...
    Thanks in advance !
    the site can be looked at www.kitwerken.be/index.php
    and the concerned part is "Over ons"

    I don't think the actionscript could have changed itself.  If you are using Flash CC then the problem is that Flash CC does not support AS2, so it took your file and changed it to AS3.  You will need to get your hands on an older version of Flash (CS6 or earlier) to edit the file and keep it as an AS2 file.

  • Material Exclusion Not working in Sales Order

    Hi All,
    I configured material Listing/Exclusion to make some  materials available for(Industrial Sector customer) and exclude for ( Public  Sector customer).
    I used the following configuration procedures
    u2022     Created a  Condition table with combination of fields(Sales Organisation, Customer Group and Material).
    u2022     Then created two Access sequences   and Assigned the Condition table to each Access Sequence.
    u2022     Created two condition Types and Assigned the Access Sequence.
    u2022     Created Determination Procedure for Listing/Exclusion and Assigned the Condition Types.
    u2022     Then  assigned the Determination Procedures(Listing/Exclusion) to Order Document Type.
    u2022     Using VB01, I created a condition record for Exclusion, select the sales area, defined the Customer Group as Public Sector and selected all the materials to be excluded.   Also created the condition record for listing with the customer group defined as (_Industrial Sector_ and selected all the valid materials).
    When I create the Sales Order the exclusion materials were allowed for the Public Sector Customer.
    Could you please tell me what I am doing wrong?
    Thanks in advance for your help.
    DorisFola.
    PS:  I am a beginner.

    Hello,
    Thank you very much, I have tried the suggested solution but it has not solved the problem.
    Have you encountered similar problem in the past and is it possible it can be due to the related table not being refreshed?
    As someone just told me, it has encountered the problem  before and that sometime if the backup tables are not supportive it will not reflect?
    Regards Doris.

  • [solved] show battery status in PS1 not working correctly (script)

    Hey,
    I got this script to show the battery life of my laptop in my PS1:
    #!/bin/bash
    BATTERY=/sys/class/power_supply/BAT1
    REM_CAP=`cat $BATTERY/energy_now`
    FULL_CAP=`cat $BATTERY/energy_full`
    BATSTATE=`cat $BATTERY/status`
    CHARGE=`echo $(( $REM_CAP * 100 / $FULL_CAP ))`
    NON='\033[00m'
    BLD='\033[01m'
    RED='\033[01;31m'
    GRN='\033[01;32m'
    YEL='\033[01;33m'
    COLOUR="$RED"
    case "${BATSTATE}" in
    'Charged')
    BATSTT="$BLD=$NON"
    'Charging')
    BATSTT="$BLD+$NON"
    'Discharging')
    BATSTT="$BLD-$NON"
    esac
    if [ "$CHARGE" -gt "99" ]
    then
    CHARGE=100
    fi
    if [ "$CHARGE" -gt "30" ]
    then
    COLOUR="$GRN"
    fi
    if [ "$CHARGE" -gt "15" ]
    then
    COLOUR="$YEL"
    fi
    echo -e "${COLOUR}${CHARGE}%${NON} ${BATSTT}"
    I made it executable: chmod +x /home/kanikuleet/scripts/battery_status.sh
    Put this in my .bashrc file: PS1="[ \$(/home/kanikuleet/scripts/battery_status.sh) ] \u@\h:\w \$ "
    Built it: source ~/.bashrc
    Now I get this errors:
    /home/kanikuleet/scripts/battery_status.sh: Line 30: [: echo $(( $REM_CAP * 100 / $FULL_CAP )): integer expression expected
    /home/kanikuleet/scripts/battery_status.sh: Line 35: [: echo $(( $REM_CAP * 100 / $FULL_CAP )): integer expression expected
    /home/kanikuleet/scripts/battery_status.sh: Line 40: [: echo $(( $REM_CAP * 100 / $FULL_CAP )): integer expression expected
    My bash promt currently looks like this:
    [ echo $(( $REM_CAP * 100 / $FULL_CAP ))% ] kanikuleet@arch: ~ $
    I have acpi installed and BAT1 is my battery, I checked it.
    Can anyone help??
    Last edited by kanikuleet (2012-12-28 22:21:10)

    kanikuleet wrote:Works! Thank you
    In that case, please mark your thread as [solved] by editing the title of your post.

  • Simple mp3 player not working :( action script error

    Hi Everyone!
    I'm wondering if anyone can help with this problem:
    I am currently designing a website and creating a simple mp3 player with an on / off function but doesn't appear to be working. I am getting this error:
    1095: Syntax error: A string literal must be terminated before the line break.
    1083: Syntax error: end of program is unexpected.
    1084: Syntax error: expecting rightparen before end of program.
    1084: Syntax error: expecting rightparen before end of program.
    1084: Syntax error: expecting rightparen before end of program.
    1084: Syntax error: expecting rightparen before end of program.
    I have uploaded a zip file containing the images and FLA file. I'm wondering if someone wouldn't mind taking a look for me and telling me how to fix this problem:
    http://www.c-recordz.co.uk/download/mp3_player.zip
    Thanks
    Davies

    Hi Davies,
    On line 19 don't break the line, Flash will do it for you... other aspect that I would recomend is to not put the '$' on the variables. In AS2 variables don't need to be declared as such (although it's a good policy), instead of the '$' put the 'var' word, as you already have in those variables.
    Greetings
    Leo

  • Save as FXG option not working from script.  Am I doing this right?

    I see that the Illustrator Scripting reference document for CC 2014 [1] has references to FXG, FXGSaveOptions, etc.  I thought I would give it a try to see if I can save a document to FXG.  Here is what I am trying:
    var myDocument = app.documents[0];
    var myTextFrame = myDocument.textFrames.add();
    myTextFrame.position = [200,200];
    myTextFrame.contents = "Hello World!"
    var newFile = new File("c:/temp/fxgfile");
    var fxgSaveOptions = new FXGSaveOptions();
    myDocument.save(newFile,fxgSaveOptions);
    This causes the file to get saved as fxgfile.ai and not fxgfile.fxg that I was looking for.
    Any ideas?
    Thanks,
    Om
    [1] http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/illustrator/sdk/CC2014/Illustrator% 20Scripting%20Reference%20-%20…

    I've attempted to modify other script samples from C:\Program Files\Adobe\Adobe Illustrator CC 2014\Presets\en_US\Scripts and use FXGSaveOptions but it outputs a 0 byte FXG file :/

  • SQL*Plus column command not working with Script Runner

    SQL Developer EA 2.1
    When running a script (interactive or from a file), the COLUMN commands are ignored. The documentation (User's Guide 1.7.1) says that COLUMN is supported, but the headings set in the column command are not changed. As a test, the SET FEEDBACK OFF command is processed.
    SET FEEDBACK OFF
    COLUMN ename HEADING 'Name'
    COLUMN job HEADING 'Job'
    COLUMN deptno HEADING 'Dept'
    SELECT ename as ename, JOB, DEPTNO
    FROM EMPLOYEES;
    The documentation for Script Runner (User's Guide 1.7.2) says that a much more limited set of SQL*Plus commands are available.
    Is this intended behavior? If so, the documentation should reflect that the COLUMN command is ignored.

    Hi,
    Doc bug logged:
    Bug 9015160 - OTNEA1: USER GUIDE COLUMN SUPPORTS 'COLUMN...NEWVAL' ONLY
    The user guide says column is supported, but
    Column supports the following new_value use only
    i.e. moving a value from a selected column to a substitution variable:
    column aval new_v a
    select 1 aval from dual;
    select '&a' || ' is 1' from dual;
    Output:
    AVAL
    1
    1 rows selected
    '1'||'IS1'
    1 is 1
    1 rows selected
    -Turloch

Maybe you are looking for

  • Satellite L875D-S7232 Hangs Up When Booting on Battery Power

    Hello all... As I stated in another thread regarding Special Function Keys, my new Satellite L875D-S7232 has an issue that during boot-up of Windows 7 HP SP1 without the AC Adapter plugged into it, it will "hang up". After many hours of troubleshooti

  • How to determine the type of the jobject... similar to instanceof

    hi, I would like to know how to determine the jobject reference of an instance is of which class. this is something similar to instanceof we use in java. is there any thing like 'instanceof' in JNI. if there how to use it? i got this as objective que

  • Authenticated RSS feeds viewer in Sharepoint 2010

    Hi All, I need to create an RSS feed viewer in the sharepoint page from an external site (Service Now) in which authentication is needed. I tried adding the OOTB RSS viewer webpart and found out that in our environment they are not allowing authentic

  • Converasion Tool for CCB

    Hi , i am trying to migrate to CCB, but could not find the Conversion Tool in edelivery, Can anyone tell me where can i get it from. Is that i have to use Conversion Tool for migration or can use Oracle Data integrator. which one is quite friendly?.

  • Validating the type

    I have a UI which has JTextFields. I want to validate the data type(string, boolean etc) when the user enters and clicks an ok button. Also I have certain fields which are "*" fields, "*" fields are required. I do I enforce this to the user? How do I