First Occurance

Post Author: tbrack
CA Forum: Formula
Hello all,
I am using Crystal Reports 9 and have a report that accepts two parms Begin and End Number and returns the rows of data within that range.
However, in the report the customer now wants to return only the first occurance of a field in the dataset and the last occurance.
For example I have four records that are returned in a range for a particular key that is grouped.  Lets say 20071201, 20080301, 20080302, 20080303.
the type in Range was 20071201 and 20080308
Of the range, there is no value for the first key but a value for each of the last three. So, Null 10, 20, 30. Right now the formula which I have to use, is returning 0 and 40. It needs to return 10 and 30. I used this if {?Begin Folio Number} = {METER_HISTORY.FOLIO_NUMBER} THEN       x := {METER_HISTORY.BOD_GROSS_TOTALIZER} for my begin number field formula. I'll need to do the end also for the last occurance in the range.
Any help is most appriected.
tom

Post Author: Jagan
CA Forum: Formula
"However, in the report the customer now wants to return only the first occurance of a field in the dataset and the last occurance.For example I have four records that are returned in a range for a particular key that is grouped."
So does that mean that you only want to show the first and last records of each grouped key?Ensure records within the group are ordered and print in the group header & footer instead of the details.You'll just need to ensure you don't print one record twice if there's only one in the group, e.g. suppress footer if count(field,group) = 1

Similar Messages

  • Find the first occurance of a word

    I have a script which finds and counts ALL occurances of a word.
    I need the script to find the FIRST instance of a word only.
    Can any one please advise how to modify the script to find the first instance of the word?
    Script as follows:
    var numWords = this.getPageNumWords(0);
    for (var i=0; i<numWords; i++)
    var ckWord = this.getPageNthWord(0,i);
    if ( ckWord == "MATERIAL")
    /*Script will go here based on finding the first instance of the word "MATERIAL"*/
    I have tried var CKWord = this.getPageNthWord(0,0); but console reports back is UNDEFINED?

    Thanks for your help.  Script now returns the first occurance of the word "MATERIAL".
    I know have to add to the script to find the SECOND OCCURANCE of the word "ISSUED".
    Can you please advise how I would code the script for this, ie would this have something to do with the break command?
    var numWords = this.getPageNumWords(0);
    for (var i=0; i<numWords; i++)
    var ckWord = this.getPageNthWord(0,i);
    if ( ckWord == "ISSUED")
    var coord = this.mouseX;
    var annot = this.addAnnot({
    page: 0,
    type: "Stamp",
    name: "AppStamp",
    rect: [coord+1000, 2300, 30, 2820],
    rotate: 90,
    AP: "#C94cHAFFa42U1gTH5Tug5C" }); 
    /*break; how can this be modified to break for the second occurance of the word "ISSUED"?*/

  • How to map only the first occurance to the op in graphical mapping

    Hi,
    i have a record whose occurance is ' * '.But to the output i need to only map the value of the field which comes in the first occurance of the record.Can anyone help me in this.its very urgent.
    For ex :
    my input is
    <header>
    <inp1>123</inp1>
    <inp2>hello</inp1>
    </header>
    <header>
    <inp1>456</inp1>
    <inp2>hello</inp1>
    </header>
    To the output field <op1> i have to Map ' inp1 ' field but it has to take the value of the first inp1 i.e "123" only always.Any help on how to do this.
    Thanks in advance,
    Bhargav
    Message was edited by:
            bhargav gundabolu

    Hi Raj,
    My inp structure is:
    <header>
    <inp1>123</inp1>
    <inp2>hello</inp1>
    </header>
    <header>
    <inp1>456</inp1>
    <inp2>hello</inp1>
    </header>
    This has to me mapped to the output structure
    <result>
    </op1>
    </result>
    After Mapping inp1 to op1 my structure should appear as
    <result>
    <op1>123</op1>
    </result>
    <result>
    <op1>123</op1>
    </result>
    where <Header> node is mapped to </result>.As <result> has to appear as many times as Header appears.But the <op1> value has to be same as that of the <inp1> of the first <Header>

  • Get first occurance of records in a group

    Hello,
    I have a query that I'm trying to get the first occurance of each item grouping when an item changes.  However, the is grouping all similar items together. For example;
    Select LocationNumber, ShelfNumber, item, recvDate,
    ROW_NUMBER() over (partition by item order by LocationNumber, ShelfNumber, recvDate) as roworder
    The query returns something like:
    LocationNumber, ShelfNumber, item, recvDate, Roworder
    1                         1                 123  
    01/6/14 16:38:00        3
    1                         1                 123  
    01/04/14 05:35:15      2
    1                         1                 456   01/03/14
    07:18:23       1
    1                         1                 123  
    01/01/14 08:25:15      1
    When I grab all the row_numbers  = 1 this will give me 2 records (should be 3). 
    The query needs have the row_number start over whenever an item changes.  In this case there should be 3 records returned.  How would I do this? for example:
    LocationNumber, ShelfNumber, item, recvDate, Roworder
    1                         1                 123  
    01/6/14 16:38:00      2
    1                         1                 123  
    01/04/14 05:35:15       1
    1                         1                 456  
    01/03/14 07:18:23       1
    1                         1                 123  
    01/01/14 08:25:15       1
    Thanks in advance!

    This is a "gaps and islands" problem.  You can google that term for lots of good info about this type of problem and how to solve them.  One way for your problem would be:
    Declare @SampleTable Table (LocationNumber int, ShelfNumber int, item int, recvDate datetime);
    Insert @SampleTable(LocationNumber, ShelfNumber, item, recvDate) Values
    (1, 1, 123, '01/6/14 16:38:00'),
    (1, 1, 123, '01/04/14 05:35:15'),
    (1, 1, 456, '01/03/14 07:18:23'),
    (1, 1, 123, '01/01/14 08:25:15');
    ;With cte As
    (Select LocationNumber, ShelfNumber, item, recvDate,
    Row_Number() Over (Partition By LocationNumber, ShelfNumber Order By recvDate)
    - Row_Number() Over (Partition By LocationNumber, ShelfNumber, item Order By recvDate) As Island
    From @SampleTable)
    Select LocationNumber, ShelfNumber, item, Min(recvDate) As recvDate
    From cte
    Group By LocationNumber, ShelfNumber, item, Island;
    Tom

  • Macro for first occurance

    Hi,
                  In my planning book I have a row and 12 months for which I want to check a condition and raise alert if the condition is violated. If I have 12 periods and may be 6 months violate the condition, then I need to design a macro such that it only raises alert for the first occurance in those 6 months or the earliest occurance. How can I do this? Can I define a variable that recognizes the first occurance and raise alert then clear the variable.
    Can some one help me with the logic and may be a little detail into the steps, if possible.
    Thanks.

    You can define a layout variable (assume variable name is X) that say can be initialized to a value of 0. then you can define a conditional statement where if variable value of X is 0 and also if the condition you are looking for is satisfied, set the layout variable value to 1. Finally after looping through the time buckets if the layout variable value is 1, you can raise the custom alert.

  • First occurance of a string in a variable

    Hi experts,
    How can I find the first occurance of the following characters '_S' in a string. I need the first occurance counting it from the end of the string.

    Hi,
    try this:
    data: str type string.
    str = 'hs_Sgdtensfdg_Shxgxg'.
    search str for '_S'.
    if sy-subrc = 0.
      write: / 'found at:', sy-fdpos.
    endif.
    Regards, Dieter
    Better is to use:
    find '_S' in str.
    instead of
    search str for '_S'.
    Look in the Docu of search / find.
    Regards, Dieter
    Edited by: Dieter Gröhn on Jul 8, 2008 11:22 AM

  • Mapping the first occurance of condition

    HI friends,
    I am mapping the 271 Inbound mapping.I am receiving the Multiple EB segment.
    Only I need to map the first occurrences of the Segment.
    EB*B*IND*30***29*200~
    EB*B*IND*88****3~
    EB*B*IND*91****3~
    EB*B*IND*92****1~
    EB*1*IND*MH~
    EB*1*IND*82~
    EB*1*IND*88~
    EB*R*IND*30~
    REF*18*098806799M
    Condition is if Eb1= B i need to Map EB7 value to copayment field.
    this scenario i need to map the value of 200.
    Thanks
    hk

    Hi Friends,
    I am able to XSLT for 271 inbound copay amount.But this is XSLT giving the first occurrence of subscriber loop.It not giving the all subscribers for copay amount.Any idea how do we need map all occurances for subscriber loop.
    <xsl:if test="(//*[local-name()='EB_SubscriberEligibilityorBenefitInformation'][EB01_EligibilityorBenefitInformation='B'])[1]/EB07_BenefitAmount/text()">
    <Co-PaymentAmount><xsl:value-of select="(//*[local-name()='EB_SubscriberEligibilityorBenefitInformation'][EB01_EligibilityorBenefitInformation='B'])[1]/EB07_BenefitAmount/text()"/></Co-PaymentAmount>
    </xsl:if>
    hk

  • How to check first value occurance

    Hi,
    I have a requirement as below---
    I have a member 'status' which displays the status of various projects across the budget years and alongwith their relevant projection years. Now I have to check that when a project was first started by checking that when the status for a specific project is not missing for the first time. I could not be able to write any script which can track the first occurance as aforesaid.
    Can anybody help me showing how it can be handled in calc-script in hyperion essbase ver 9.3.1?
    Regards.

    create a member called Project Month (or anything you want)
    Fix(level zero members of dimensions)
    "Project Start"(
    IF(Status/Status <> #Missing and @prior(Status)/@prior(Status) == #Missing)
    "Project Month" = 1;
    ENDIF
    EndFIX
    If you wanted to get fancy, you could increment the Project Month by 1 for every month that has a status
    putting and Else statement in
    "Project Start"(
    IF(Status/Status <> #Missing and @prior(Status)/@prior(Status) == #Missing)
    "Project Month" = 1;
    ELSEIF Status/Status <> #Missing and @prior(Status)/@prior(Status) <> #Missing
    "Project Month" = @Prior(Project Month") + 1;
    ELSE
    #MISSING
    ENDIF
    )

  • Kernel panics keep occurring on Mac Pro

    Hi guys,
    I've been having some difficulties with my Mac Pro recently. It is a Mid 2010 Mac Pro, with an 8-core processor and 8GB of RAM.
    I keep getting kernel panics, to which the computer shuts down abruptly and restarts. Unforntunately I need this computer to work badly, because it is my source of income by recording music.
    The problem first occurred when I plugged an ethernet cable in and disabled Airport, in order to prevent certain errors from popping up in Pro Tools, the recording software. So since this was the only variable that had changed, I changed it back, but it kept on failing.
    In addition, I also repaired the disk permissions on my boot disk once right before it started happening.
    I have tried lots of things, such as resetting the SMC, resetting NRAM and PVRAM, replacing directories of my internal disks using DiskWarrior, and also cleaning them up.
    I also recall an error I got about my RAM memory not being in the right slots or something like that, right before the problems started... So I just switched them, and that error seems to be ok now. At least the Memory Utility tells me that the cards are in the right place.
    And I also did a MemTest, which seemed to be ok as well...
    I'll also post the report I got. I can't seem to make anything of it.
    In any case, thank you guys in advance!!
    Interval Since Last Panic Report:  1219 sec
    Panics Since Last Report:          3
    Anonymous UUID:                    292E1D22-5993-3FF6-5BF0-5244D000C409
    Mon May 27 12:37:57 2013
    Machine-check capabilities 0x0000000000001c09:
    family: 6 model: 44 stepping: 2 microcode: 15
    Intel(R) Xeon(R) CPU           E5620  @ 2.40GHz
    9 error-reporting banks
    threshold-based error status present
    extended corrected memory error handling present
    Processor 0: no valid machine-check state
    Processor 1: no valid machine-check state
    Processor 2: no valid machine-check state
    Processor 3: no valid machine-check state
    Processor 4: no valid machine-check state
    Processor 5: no valid machine-check state
    Processor 6: no valid machine-check state
    Processor 7: no valid machine-check state
    Processor 8: machine-check status 0x0000000000000004:
    machine-check in progress
    MCA error-reporting registers:
    IA32_MC0_STATUS(0x401): 0x0000000000000800 invalid
    IA32_MC1_STATUS(0x405): 0x0000000000000800 invalid
    IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
    IA32_MC3_STATUS(0x40d): 0x0000000000000000 invalid
    IA32_MC4_STATUS(0x411): 0x0000000000000000 invalid
    IA32_MC5_STATUS(0x415): 0x0000000000000000 invalid
    IA32_MC6_STATUS(0x419): 0x0000000000000000 invalid
    IA32_MC7_STATUS(0x41d): 0x0000000000000000 invalid
    IA32_MC8_STATUS(0x421): 0xbe0000000001009f valid
      MCA error code:            0x009f
      Model specific error code: 0x0001
      Other information:         0x00000000
      Threshold-based status:    Undefined
      Status bits:
       Processor context corrupt
       ADDR register valid
       MISC register valid
       Error enabled
       Uncorrected error
    IA32_MC8_ADDR(0x422): 0x000000010d92d440
    IA32_MC8_MISC(0x423): 0xe163495600000080
    Processor 9: machine-check status 0x0000000000000004:
    machine-check in progress
    MCA error-reporting registers:
    IA32_MC0_STATUS(0x401): 0x0000000000000800 invalid
    IA32_MC1_STATUS(0x405): 0x0000000000000800 invalid
    IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
    IA32_MC3_STATUS(0x40d): 0x0000000000000000 invalid
    IA32_MC4_STATUS(0x411): 0x0000000000000000 invalid
    IA32_MC5_STATUS(0x415): 0x0000000000000000 invalid
    IA32_MC6_STATUS(0x419): 0x0000000000000000 invalid
    IA32_MC7_STATUS(0x41d): 0x0000000000000000 invalid
    IA32_MC8_STATUS(0x421): 0xbe0000000001009f valid
      MCA error code:            0x009f
      Model specific error code: 0x0001
      Other information:         0x00000000
      Threshold-based status:    Undefined
      Status bits:
       Processor context corrupt
       ADDR register valid
       MISC register valid
       Error enabled
       Uncorrected error
    IA32_MC8_ADDR(0x422): 0x000000010d92d440
    IA32_MC8_MISC(0x423): 0xe163495600000080
    Processor 10: machine-check status 0x0000000000000004:
    machine-check in progress
    MCA error-reporting registers:
    IA32_MC0_STATUS(0x401): 0x0000000000000800 invalid
    IA32_MC1_STATUS(0x405): 0x0000000000000800 invalid
    IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
    IA32_MC3_STATUS(0x40d): 0x0000000000000000 invalid
    IA32_MC4_STATUS(0x411): 0x0000000000000000 invalid
    IA32_MC5_STATUS(0x415): 0x0000000000000000 invalid
    IA32_MC6_STATUS(0x419): 0x0000000000000000 invalid
    IA32_MC7_STATUS(0x41d): 0x0000000000000000 invalid
    IA32_MC8_STATUS(0x421): 0xbe0000000001009f valid
      MCA error code:            0x009f
      Model specific error code: 0x0001
      Other information:         0x00000000
      Threshold-based status:    Undefined
      Status bits:
       Processor context corrupt
       ADDR register valid
       MISC register valid
       Error enabled
       Uncorrected error
    IA32_MC8_ADDR(0x422): 0x000000010d92d440
    IA32_MC8_MISC(0x423): 0xe163495600000080
    Processor 11: machine-check status 0x0000000000000004:
    machine-check in progress
    MCA error-reporting registers:
    IA32_MC0_STATUS(0x401): 0x0000000000000800 invalid
    IA32_MC1_STATUS(0x405): 0x0000000000000800 invalid
    IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
    IA32_MC3_STATUS(0x40d): 0x0000000000000000 invalid
    IA32_MC4_STATUS(0x411): 0x0000000000000000 invalid
    IA32_MC5_STATUS(0x415): 0x0000000000000000 invalid
    IA32_MC6_STATUS(0x419): 0x0000000000000000 invalid
    IA32_MC7_STATUS(0x41d): 0x0000000000000000 invalid
    IA32_MC8_STATUS(0x421): 0xbe0000000001009f valid
      MCA error code:            0x009f
      Model specific error code: 0x0001
      Other information:         0x00000000
      Threshold-based status:    Undefined
      Status bits:
       Processor context corrupt
       ADDR register valid
       MISC register valid
       Error enabled
       Uncorrected error
    IA32_MC8_ADDR(0x422): 0x000000010d92d440
    IA32_MC8_MISC(0x423): 0xe163495600000080
    Processor 12: machine-check status 0x0000000000000004:
    machine-check in progress
    MCA error-reporting registers:
    IA32_MC0_STATUS(0x401): 0x0000000000000800 invalid
    IA32_MC1_STATUS(0x405): 0x0000000000000800 invalid
    IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
    IA32_MC3_STATUS(0x40d): 0x0000000000000000 invalid
    IA32_MC4_STATUS(0x411): 0x0000000000000000 invalid
    IA32_MC5_STATUS(0x415): 0x0000000000000000 invalid
    IA32_MC6_STATUS(0x419): 0x0000000000000000 invalid
    IA32_MC7_STATUS(0x41d): 0x0000000000000000 invalid
    Package 1 logged:
    IA32_MC8_STATUS(0x421): 0xbe0000000001009f valid
      Channel number:         15 (unknown)
      Memory Operation:       read
      Machine-specific error: Read ECC
      COR_ERR_CNT:            0
      Status bits:
       Processor context corrupt
       ADDR register valid
       MISC register valid
       Error enabled
       Uncorrected error
    IA32_MC8_ADDR(0x422): 0x000000010d92d440
    IA32_MC8_MISC(0x423): 0xe163495600000080
      RTID:     128
      DIMM:     0
      Channel:  0
      Syndrome: 0xe1634956
    Processor 13: machine-check status 0x0000000000000004:
    machine-check in progress
    MCA error-reporting registers:
    IA32_MC0_STATUS(0x401): 0x0000000000000800 invalid
    IA32_MC1_STATUS(0x405): 0x0000000000000800 invalid
    IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
    IA32_MC3_STATUS(0x40d): 0x0000000000000000 invalid
    IA32_MC4_STATUS(0x411): 0x0000000000000000 invalid
    IA32_MC5_STATUS(0x415): 0x0000000000000000 invalid
    IA32_MC6_STATUS(0x419): 0x0000000000000000 invalid
    IA32_MC7_STATUS(0x41d): 0x0000000000000000 invalid
    IA32_MC8_STATUS(0x421): 0xbe0000000001009f valid
      MCA error code:            0x009f
      Model specific error code: 0x0001
      Other information:         0x00000000
      Threshold-based status:    Undefined
      Status bits:
       Processor context corrupt
       ADDR register valid
       MISC register valid
       Error enabled
       Uncorrected error
    IA32_MC8_ADDR(0x422): 0x000000010d92d440
    IA32_MC8_MISC(0x423): 0xe163495600000080
    Processor 14: machine-check status 0x0000000000000004:
    machine-check in progress
    MCA error-reporting registers:
    IA32_MC0_STATUS(0x401): 0x0000000000000800 invalid
    IA32_MC1_STATUS(0x405): 0x0000000000000800 invalid
    IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
    IA32_MC3_STATUS(0x40d): 0x0000000000000000 invalid
    IA32_MC4_STATUS(0x411): 0x0000000000000000 invalid
    IA32_MC5_STATUS(0x415): 0x0000000000000000 invalid
    IA32_MC6_STATUS(0x419): 0x0000000000000000 invalid
    IA32_MC7_STATUS(0x41d): 0x0000000000000000 invalid
    IA32_MC8_STATUS(0x421): 0xbe0000000001009f valid
      MCA error code:            0x009f
      Model specific error code: 0x0001
      Other information:         0x00000000
      Threshold-based status:    Undefined
      Status bits:
       Processor context corrupt
       ADDR register valid
       MISC register valid
       Error enabled
       Uncorrected error
    IA32_MC8_ADDR(0x422): 0x000000010d92d440
    IA32_MC8_MISC(0x423): 0xe163495600000080
    Processor 15: machine-check status 0x0000000000000004:
    machine-check in progress
    MCA error-reporting registers:
    IA32_MC0_STATUS(0x401): 0x0000000000000800 invalid
    IA32_MC1_STATUS(0x405): 0x0000000000000800 invalid
    IA32_MC2_STATUS(0x409): 0x0000000000000000 invalid
    IA32_MC3_STATUS(0x40d): 0x0000000000000000 invalid
    IA32_MC4_STATUS(0x411): 0x0000000000000000 invalid
    IA32_MC5_STATUS(0x415): 0x0000000000000000 invalid
    IA32_MC6_STATUS(0x419): 0x0000000000000000 invalid
    IA32_MC7_STATUS(0x41d): 0x0000000000000000 invalid
    IA32_MC8_STATUS(0x421): 0xbe0000000001009f valid
      MCA error code:            0x009f
      Model specific error code: 0x0001
      Other information:         0x00000000
      Threshold-based status:    Undefined
      Status bits:
       Processor context corrupt
       ADDR register valid
       MISC register valid
       Error enabled
       Uncorrected error
    IA32_MC8_ADDR(0x422): 0x000000010d92d440
    IA32_MC8_MISC(0x423): 0xe163495600000080
    panic(cpu 13 caller 0xffffff800a2b8709): "Machine Check at 0xffffff7f8bd4ae87, registers:\n" "CR0: 0x000000008001003b, CR2: 0x000000007fa1f910, CR3: 0x000000000cc81000, CR4: 0x00000000000206e0\n" "RAX: 0x0000000000000020, RBX: 0xffffff801cf21800, RCX: 0x0000000000000001, RDX: 0x0000000000000000\n" "RSP: 0xffffff80fb2a3d70, RBP: 0xffffff80fb2a3da0, RSI: 0x0000000000000006, RDI: 0x0000000000000006\n" "R8:  0x0000000000000000, R9:  0x7ffffffffffffffe, R10: 0xffffff800a8bdc2d, R11: 0x0000000000000201\n" "R12: 0x0000000000000006, R13: 0xffffff801ccd99c0, R14: 0x0000000000000000, R
    Model: MacPro5,1, BootROM MP51.007F.B03, 8 processors, Quad-Core Intel Xeon, 2.4 GHz, 8 GB, SMC 1.39f11
    Graphics: ATI Radeon HD 5770, ATI Radeon HD 5770, PCIe, 1024 MB
    Memory Module: DIMM 1, 2 GB, DDR3 ECC, 1066 MHz, 0x80AD, 0x484D54313235553754465238432D48392020
    Memory Module: DIMM 2, 2 GB, DDR3 ECC, 1066 MHz, 0x80AD, 0x484D54313235553754465238432D48392020
    Memory Module: DIMM 5, 2 GB, DDR3 ECC, 1066 MHz, 0x80AD, 0x484D54313235553754465238432D48392020
    Memory Module: DIMM 6, 2 GB, DDR3 ECC, 1066 MHz, 0x80AD, 0x484D54313235553754465238432D48392020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8E), Broadcom BCM43xx 1.0 (5.106.98.100.16)
    Bluetooth: Version 4.1.3f3 11349, 2 service, 11 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en2
    PCI Card: ATI Radeon HD 5770, sppci_displaycontroller, Slot-1
    PCI Card: 2: AES16e in Slot-4, Audio, Slot-4
    PCI Card: 1: AES16e in Slot-3, Audio, Slot-3
    Serial ATA Device: HL-DT-ST DVD-RW GH61N
    Serial ATA Device: INTEL SSDSA2CW120G3, 120,03 GB
    Serial ATA Device: WDC WD1001FALS-41Y6A1, 1 TB
    USB Device: Keyboard Hub, apple_vendor_id, 0x1006, 0xfa200000 / 2
    USB Device: Apple Keyboard, apple_vendor_id, 0x0220, 0xfa220000 / 3
    USB Device: USB to ATA/ATAPI bridge, 0x152d  (JMicron Technology Corp.), 0x2329, 0xfd500000 / 2
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x5a100000 / 2
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8215, 0x5a110000 / 3
    USB Device: iLok, 0x088e, 0x5036, 0x3a200000 / 2
    USB Device: USB Trackball, 0x046d  (Logitech Inc.), 0xc408, 0x3d100000 / 2
    FireWire Device: built-in_hub, 800mbit_speed

    That problem is very often a RAM Error. Your Mac Pro 65lb tower has Error Correcting Code memory. If a single-bit error is detected, it is corrected on the fly, and eventually noted in some counters. Most double-bit errors are not correctable and cause the machine to halt on a Machine check, uncorrected error (exactly what you have).
    It appears that when valid, the Physical Address will be reported, as well as the data (probably as read). If that is what is being presented, the address is:
    IA32_MC8_ADDR(0x422): 0x0000 0001 0d92 d440
    data is:
    IA32_MC8_MISC(0x423): 0xe163495600000080
    That address is more than 4GB (0x0000 0001 0000 0000)±1 and less than 6GB (0x0000 0001 8000 0000)±1, so I would expect it to be in the THIRD 2GB module. The way you have them installed, I think that would be DIMM5.

  • Reg: Replacement of second occurance of character in string

    Hi,
    Consider one string1 =  'ABCDAE' OR  string2 = 'SHEETAL'.
    I want to replace the second occurance of A in above string1.and second occurance of E in above string2 with any differnt character.
    I tried with offset calculation , length , replace , split stmts.
    but always first occurance is getting replace.
    Please provide your ideas.
    Regards,
    Shital

    Hi,
    Try this.
    data: string1 type char10 value 'ABCDAE',
            len     type i.
      write: / string1.
      search string1 for 'A'.
      if sy-subrc = 0.
        add 1 to sy-fdpos.
        len = strlen( string1 ) - sy-fdpos.
        replace 'A' in string1+sy-fdpos(len) with '!'.
        write: / string1.
      endif.
    Darren

  • Regex and matcher only returns the first match

    Hi all.
    Im trying to rewrite some code and im using a regular expression to grab data out of a css formatted file, but im getting a bit confused. My matcher is only finding the first occurance of my pattern, how do i get it to find all occurances of my pattern?
    here is a sample css file
    .header
    font-family:arial, verdana;
    font-weight:bold;
    color:#ff00ff;
    background-image:url(background.jpg);
    .mainBody
    font-weight: bold;
    color: Red;
    padding 0px;
    }and here is my matcher code
    tstr = tstr.replaceAll("\\\\","/");
    tstr = tstr.replaceAll("\\n","");
    tstr = tstr.replaceAll("\\r","");
    Pattern styleFind=Pattern.compile("^\\.?[\\w\\s\\W]+?\\{.*?\\}",Pattern.DOTALL | Pattern.MULTILINE);
    Matcher styleMatch=styleFind.matcher(tstr);
    while(styleMatch.find())
    System.out.println("[A]"+styleMatch.group());
    }     i thought that if i did while(macther.find) then it would keep looping through finding all of the matches, but it is only finding the first match.
    any ideas what im doing wrong?

    tstr = tstr.replaceAll("\\\\","/");
    tstr = tstr.replaceAll("\\n","");
    tstr = tstr.replaceAll("\\r","");
    Pattern
    styleFind=Pattern.compile("^\\.?[\\w\\s\\W]+?\\{.*?\\}", Pattern.DOTALL | Pattern.MULTILINE);
    Matcher styleMatch=styleFind.matcher(tstr); You do MULTILINE despite the fact that you delete all end of line characters first. The '^' matches only at the very beginning of the input.
    Apart from that I would prefer "[^\\}]" anytime ofer ".*?\\}", because what you want is a shortest match which often turns out not to be the same as a non-greedy match.
    Harald.
    Java Text Crunching: http://www.ebi.ac.uk/Rebholz-srv/whatizit/software

  • Error occurred while trying to refresh edit panel "SeqEdit.ba"

    I've been working on a TestStand project for a while (my first) and lately I get the following error just by clicking on a different step (and any step thereafter, even the one I was previously on):
    Error occurred while trying to refresh edit panel "SeqEdit.ba":
    Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    Closing TS seems to temporarily clear it out, but it will come back after a while.
    Can anybody help me figure out what this is?
    Thanks!

    Here are my answers to the last two posts.
    When and what were you doing when this error first appeared?
    I'm just developing an automated test, so there's a lot of going back and forth between different subsequences filling in gaps as I go.
    Does this error cause your application to crash or hang?
    Once it appears, it just continues to appear each and every time I click a different step. I can still develop, but it sure is a pain. It's faster to restart TestStand so it doesn't pop up again (hopefully).
    When you said "closing TS seems to temporarily clear it out, but it will come back after a while", could you quantify the amount of time it would take this error to occur again?
    I haven't timed it, but it seems to take several hours. I would suspect more that it's based on the number of times I'm clicking different VIs, but I have no hard evidence.
    Your error may be due to a registry error. If that is the case, I would recommend backing up your project first and then try to repair the software. You can accomplish the repair by going into Add and Remove Software from Control Panel, selecting National Instruments in the program list, choose TestStand and click on Repair. You will need to have the install CD for this.
    Ah, my favorite suggestion...
    Do the VIs specified in a LV steps take a long time to load when you click on the LV steps?
    I'm not sure what a long time to load is. The first time LabVIEW opens, it takes a while (~30 seconds). After that, the steps typically open in about a second. I sure wish I had an SSD.
    Does the error first occur when you clicking on a different LV step or the step is calling a different type of module?
    I'm working exclusively with the LabVIEW adapter and the built-in steps: mainly Wait, Additional Results, If Statements, and For Loops.
    Do the VIs have cluster parameters?  Yes.
    Are the clusters expanded when you select a different step? I had noticed that sometimes they are open and other times they aren't any more. I tried just now and after expanding a few, they all seemed to be expanded. Then I went to another subsequence that makes some of the same VI calls and they were open to begin with, then not (~5-10 VIs clicked on). I went back to the first subsequence and they were no longer open. That's interesting, but what are you looking for here?
    Does the the error occur when you are using the LabVIEW Run-Time or LabVIEW Development System?
    I am using the LabVIEW Professional Development System with the version indicated in my first post.
    Are you running any sequences when the error occurs?
    I typically run the sequence several times when debugging to make sure that the DUT responds the way I want it to. But the error has only occurred when I'm developing while clicking on a different VI after some undefined amount of time (or number of clicks).
    Is it possible for you to post the sequence with some of the VIs that reproduce the problem?  The VI block diagrams can be empty.  I would like to see what type of controls you are using. It's a decently large application so I'm not sure you want all my code and I'm not sure I'd be able to hand it over either. (DoD contract and such.) I have defined a few (3 or 4) strict type def controls that are passed as clusters within TestStand. Other than that, most of my calls are to bench-top instruments (SigGen, SpecAn, power supplies) and a PXI switch. The other is through an RS485 connection to talk to the DUT.
    One other note: This error hasn't occurred since I posted (of course, right?), but I also haven't done as much back and forth clicking of VIs. I have a hunch that it was related to the sheer number of back and forth clicks between different VIs when I was trying to get the values to be uniform among similar calls when I was setting everything up (similar parameter names in subsequences created from custom data types). I hope that helps.
    Thanks!

  • Finding first occurrence of a numeric data in a string

    Hi
    Can you please suggest me in this.
    I have a data set like following..
    'LOMBORD 123'
    'LOMBORDD'
    'LOMBORDD45'
    Here how i will ffind the first occurance of the numeric valu in each string there may be a space charecter like 'LOMBORD 123' .
    As my database version is 9i i can't use regular expression.
    Thanx in advance

    Maybe something like:
    SQL> set feedback on
    SQL> WITH test_tab AS
      2       (SELECT 'LOMBORD 123' col_1
      3          FROM DUAL
      4        UNION ALL
      5        SELECT 'LOMBORDD'
      6          FROM DUAL
      7        UNION ALL
      8        SELECT 'LOMBORDD45'
      9          FROM DUAL)
    10          -- end of test data
    11  SELECT col_1,
    12         TRIM (TRANSLATE (col_1, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', ' ')
    13              ) numbers_in_col,
    14         NVL
    15            (INSTR (col_1,
    16                    TRIM (TRANSLATE (col_1, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', ' ')),
    17                    1,
    18                    1
    19                   ),
    20             0
    21            ) position_of_numbers
    22    FROM test_tab
    23  /
    COL_1       NUMBERS_IN_COL                               POSITION_OF_NUMBERS
    LOMBORD 123 123                                                            9
    LOMBORDD                                                                   0
    LOMBORDD45  45                                                             9
    3 rows selected.
    SQL> Regards,
    Jo
    Edit: Way tooooooooo slow.....

  • I cannot open iphoto, this message occurs each attemptTo open this Aperture library in iPhoto, you need Aperture 3.3 or later. Click Update Aperture to buy the latest version of Aperture from the Mac App Store.  After installing the update, open your

    i do not have Apeture, nor do i want it, how can i access iphoto ?

    When did this problem first occur? Directly after you upgraded to Yosemite and iPhoto 9.6?  Or after a crash?
    If this happened directly after the upgrade, look into the iPhoto library package, but do not change anything there - be very careful.
    A healthy iPhoto Library should look like this, when you ctrl-click it in the Finder and use the commend "Show Package Contents".
    First of all - does the iPhoto Library show the correct "fan of Pictures" icon?
    Is there an additional folder "Old Masters" in addition to your folder "Masters"?
    When you select the file "Info.plist", does the preview show correctly iPhoto Library 9.6?
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>CFBundleGetInfoString</key>
      <string>iPhoto Library 9.6</string>
      <key>CFBundleShortVersionString</key>
      <string>9.6</string>
    </dict>
    </plist>
    If it is not showing iPhoto but Aperture, try to trick iPhoto in opening the library by setting the File extension of the iPhoto Library to "photolibrary"
    But if you are seeing a folder "Old Masters" in your library, you are having a bad library corruption. Then look into that folder, if it contains any photos and post back.

  • How to find the occurance

    Hi
    I have a table with 2 columns
    id value
    1 50
    2 30
    2 75
    3 40
    3 15
    There is two values for id number 2 and 30 is the least value , so the first occurance will come as
    id value occurance
    1 50 1
    2 30 1
    2 75 2
    3 40 2
    3 15 1
    Can any one help me
    Thanks
    Sandeep

    hi,
    do you mean this.
      1  with t as(
      2  select 1 id , 50 value from dual union all
      3  select 2, 30 from dual union all
      4  select 2, 75 from dual union all
      5  select 3, 40 from dual union all
      6  select 3, 15 from dual )
      7  select id,value, row_number() over(partition by id order by id, value)new_id
      8* from t
    SQL> /
            ID      VALUE     NEW_ID
             1         50          1
             2         30          1
             2         75          2
             3         15          1
             3         40          2

Maybe you are looking for

  • Problem in getting the image coordinates  when i zoom in or zoom out

    Hi, i have doubts with scaling (Zoom in and Zoom out) using following code but when i zoom in want to get the x and y coordinates but im getting resized coordinates , pls do the needful public class TiffTest extends JFrame implements MouseListener pu

  • Imovie won't playback on video ipod

    I converted my movie 6 movie to share it with my video ipod. It shows up and plays in itunes. The movie also shows up on my video ipod but when I go to play it all I get is a black screen for a few seconds and then it goes back to the movie title in

  • Am I totally scr3wed?

    Okay, I just bought my first Mac and iLife. I have a sony DVD cam corder, one of the early versions that does not have a fire wire connection. BUT, I do have an extra DVD burner with a firewire cable. Soooo, I finalize my mini DVD and insert it into

  • Mutation issue

    Hi Guys, I have created the following procedure which compiles ok and runs fine independently. When i try to call it in an update trigger, i get a mutation error. I have tried to get around this by using a cursor, but it's still mutating. Any advice

  • In trying to install LR update, your instructions tell me I need to re-install CC, which I am unable to do??????

    In trying to re-install CC, I have followed the instructions, but each time I attempt to install, I continue to get this message and I can go no further.  Can someone help?