Date  Arithmatic

I am receiving a date textfield in a string format .
say String theDate = "12/25/2002" ; in dd/MM/yyyy format
i need to calculate a previous date of this by 1 day.
The result is to be in String format
say as "12/14/2002"
could you pleased provide the code for this, thanks.

Not so pretty, but it works...I think this is more along the lines of the official way..
String s = "12/25/2002";
SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
Date date = format.parse(s);
GregorianCalendar gc = new GregorianCalendar();
gc.setTime(date);
gc.add(gc.DATE, -1);
System.out.println(format.format(gc.getTime()));

Similar Messages

  • Query regarding date arithmatic

    hi
    i want to write the procedure which will give me the difference of two dates in hours.
    there are two columns start_dt and end_dt and i want to calculate the difference between them in hours.
    morever i want to add functionality like if the start or end date falls on weekend(saturday & sunday) i want to subtract that whole period(which obviously will be in hours) from the total hours elapsed between two dates.
    could anyone please help me in this?
    regards,
    PD

    Diff in hours:
    (end_dt-start_dt)*24Please use the PL/SQL for SQL question.
    Nicolas.

  • Monitoring pending certificate expirations

    We have a number of public web sites that use certificates and we'd like to use SCOM to provide warnings about pending certificate expirations.     Is there a certficate services management pack, or a monitor or rule in an existing pack (like the IIS or windows OS packs) that will tell us when a given certificate is about to expire? 

    Shajeer,
    The only way to really do this is to query the local certificate store on each server.    This is possible with powershell,  but you must have powershell installed on any server that you wish to monitor.  (I believe it's there by default for Win2k8, but you'll need to install it on Win2k3 servers). 
    Here's a power shell script that will query the local computer store and perform date arithmatic to determine if any resident certs will expire in 30 days or less.   If any are found, then it will call the eventcreate utility that's native to windows to generate an eventID number 989.      You can then create a monitor that checks for this event ID.      But first you'll need to run this script on a periodic basis, which you can do by creating a Timed Event rule.     Unfortunately, the timed event rules let you either run a VBS script or an OS command, but not a powershell script.  So we have to use the OS command option to run powershell.    The OS command you would run is     powershell.exe -file  certtest.ps1           This causes some additional complications because the contents of the script below would have to be placed into a file called certtest.ps1, and then this file would have to be distributed to a common directory on any server you want to monitor.      You could alternatively use the Task Scheduler service on each machine to run this script periodically, but that get tedious in large environments.  
    Of course, you could always write a .vbs script and then you could put the script logic directly in the rule,  but I'm not much of a VB programmer.      
    *** Start of Script ***
    $currentdate = get-date
    $certabouttoexpire = "false"
    cd cert:\localmachine\my
    $certstoredate = gci | % {$_.GetExpirationDateString()}
    foreach($x in $certstoredate)
            $certdate = get-date "$x"
            $daysremaining = ($certdate - $currentdate).days
            if ($daysremaining -lt 30)
                 $CertAboutToExpire = "True"
    if ($certabouttoexpire -eq "True") {eventcreate /L System /T Warning /SO CertWarning /id 989 /D "A Certificate on this system will expire in 30 days or less.  Use the Certificates MMC snapin on this machine to identify the certificate"}
    *** End Of Script ***

  • How to optimize data logging in my code?

    I have my program working well enough to have it run some trials in the lab. It was run under some 'extreme' conditions to make sure data acquisiton and logging is working well.
    With frequency being 1000Hz, he requirements are that the relay goes ON for 20ms and and stays off for 250ms. This 250ms should equate to 250samples gathered.
    After a run, the saved files range from 240 to 280 samples for a 250ms setting, but some are as little as 150 samples. I need to ensure that the correct number is logged, a +/- 5% variation is 'OK' but when the samples gathered are close to half of the desired is unacceptable.
    I need the graphs wired to 'data[0]' and 'data[1]' to update in real time, to be smooth.
    Any suggestions? Every time my consumer loop executes, how many samples does my DAQmx Read, at current, receive? I do not think it's an issue w DAQmx setup, but I am not 100% sure..

    Is there any reason you're not using compound arithmatic to get into the logging loop?  What happens in those false cases?  If you're just wiring everything through, you'd be better served to only use one case structure.  Feed all three boolean values into a single compound arithmatic set to AND.  If all three are true, after the NOT used to invert the false value, it will enter the true case.  Otherwise, it'll enter the false case.  It's the same logic, but it's handled better.
    You might consider taking a look at Producer/Consumer or Queued Message Handler.  You can use these to send a message to an external while loop.  If you have multiple cores, this makes it easy to split the task to read data on one core and leave it mostly unaffected by the logging process done on another core.

  • Arithmatic operations on fields in tables

    Hello Members,
    My query might seem pretty basic, but seems uphill to me, as i have no idea how to perform arithmatic operations between fields in tables.
    I have two tables temp1 and temp2. each of these tables have 2 fields : account no. and balance
    the data would resemble the following, in each of the tables:
    6.28899273 0
    6.28899274 0
    6.28899275 0
    6.28899289 625.12
    6.28899292 2666.24
    Can you please give me an idea how to go about doing the following:
    1. Compare the tables temp1 and temp2 for their respective account numbers and balances
    2. Copy the results in a new table temp3, which will have 2 columns :
    account no ( common to temp1 and temp2 )
    deviation: subtracted balance of temp1 and temp2
    regards,
    novice82

    user8635888 wrote:
    Will be great if someone can give me a headstart on the following:
    I have two tables temp1 and temp2 ( tables belonging to 2 different databases ) with two feilds
    account no., ( Common in both tables )
    balance ( float data type ).
    1. I want to compare the balance feilds in temp1 and temp2.
    print out the no. of accounts and percentage of match and mismatch.
    2. output the a/c nos. whose balances dont match into a seperate table..Hello, this might be one approach for you:
    First, identify those accounts that are different, and INSERT them into the table
    INSERT /*+ APPEND */ INTO target_table
    SELECT t1.account_no, t1.balance, t2.balance
      FROM table1 t1
      JOIN table2@db_link t2 ON (t1.account_no = t2.account_no)
    WHERE NVL(t1.balance, -99999999999) != NVL(t2.balance, -99999999999);This assumes that -99999999999 can never be a valid balance.
    Then, you can cycle through this table and print out the mismatches:
    set serveroutput on size 100000 (or set serveroutput on size unlimited)
    BEGIN
      FOR cur_rec IN (SELECT account_no, (t1.balance / CASE t2.balance WHEN 0 THEN NULL END) * 100 percent_mismatch FROM target_table)
        LOOP
          DBMS_OUTPUT.PUT_LINE('Account No: ' || cur_rec.account_no || ', Percent Mismatch: ' || cur_rec.percent_mismatch);
        END LOOP;
    END;
    /If you have a lot of records this may not be a feasible approach, and you'd be better looking at UTL_FILE if you to capture the anomolies in a file.
    And alternative would be to do the whole lot in SQL:
    set pagesize 5000
    set linesize 300
    set colsep ','
    spool /tmp/your_file.csv
    SELECT t1.account_no, t1.balance, t2.balance, (t1.balance / CASE t2.balance WHEN 0 THEN NULL END) * 100 percent_mismatch
      FROM table1 t1
      JOIN table2@db_link t2 ON (t1.account_no = t2.account_no)
    WHERE NVL(t1.balance, -99999999999) != NVL(t2.balance, -99999999999);
    user8635888 wrote:another question, that I have is, how does sql handle the computation, if a value in a particular field is divided by 0 You'll see from the code that if the divisor is zero, I'm substiting NULL, which means that the percent_mismatch will be NULL.

  • Arithmatic conversion error in query

    I have a stored procedure for a report . The underlying table has a decimal(18,2) column.
    In the Stored Procedure code, the conversion to decimal (12,2) gives an error as one of the records has a value that exceeds (12,2).
    I am running this report for a userID that does not have permission to this project (so bad row will not be included in the result).
    When running the Stored procedure from query analyser, this row with bad data is not selected based on #TblPermission and SP returns other rows without errors.
    The issue is when running the SP from the application, i am getting an arithmatic conversion error.
    It appears that the SELECT conversions are happening even before join on the temp table is satisfied.
    Shouldnt it filter data based on the join first and then do the conversions (like when run from query analyser) ?
    We will be fixing the conversion issue at a later point.
    But any ideas/suggestions on how to address this to stop it from erroring when called from the UI ?
    CREATE PROCEDURE [dbo].[Test_Report]
    @_user varchar(10)
    AS
    BEGIN
    SELECT PID INTO #TblPermission FROM dbo.tbl_permissions(nolock) WHERE userid= @_user
    SELECT A.NAME,
     CAST(A.ProjectAmount as decimal(12,2))  Amt -- giving an arithmatic conversion error
    FROM TableA A
    Join #TblPermission UP on UP.PID= A.PID
    WHERE A.ProjectType ='mapped'
    end

    It appears that the SELECT conversions are happening even before join on the temp table is satisfied.
    Shouldnt it filter data based on the join first and then do the conversions (like when run from query analyser) ?
    The answer to that question is no.  SQL is allowed to process a query in whatever order it believes will be most efficient.  So it can do the conversion, and later do the WHERE clause.  So you have to write the code so that it is safe if SQL
    does that.  One way is to use a case statement to only do the conversion when the value will fit in decimal(12,2), so you could do
    SELECT A.NAME,
    Case When A.ProjectAmount Between -9999999999.99 And 9999999999.99 Then CAST(A.ProjectAmount as decimal(12,2)) End Amt
    FROM TableA A
    Join #TblPermission UP on UP.PID= A.PID
    WHERE A.ProjectType ='mapped'
    That will work on all releases of SQL.
    If you are on SQL 2012 or later, you can use the new TRY_CONVERT function which will do conversions without causing errors.  Instead of an error when the valued being converted is invalid, you get NULL.  So that would be
    SELECT A.NAME,
    TRY_CONVERT(decimal(12,2), A.ProjectAmount) Amt
    FROM TableA A
    Join #TblPermission UP on UP.PID= A.PID
    WHERE A.ProjectType ='mapped'
    Tom

  • How to sum hours which is varchar2 data type in oracle

    Hi My table is like this
    emp_ngtshthrs (empno number(10),nightshifthrs varchar2(20));
    now I want sum employee nightshifthrs how to do sum of hrs, this is my hours data 01:00,05:00,08:00,10:00,07:00 and 09:00
    I want sum the varchar2 type of hours how to do it? and I want to display even the sum is more than 24:00 hrs

    Well, first you have posted your question in the wrong forum. You should have posted your question in the PL/SQL forum.
    The second problem I see is that you are being too generic when you have your employees enter their night shift hours worked. If you are able, I recommend you modify your table to record hours seperately from minutes and make the columns of type NUMBER instead of type VARCHAR2(). Then you can use simply arithmatic to total the hours and minutes worked.
    If you are locked into your table and can't change it, then you can convert the characters to numbers and then perform your summary arithmatic on the values. For example:
      1  with tab1 as (
      2  select 10 as empno, '01:00' as nightshifthrs from dual union all
      3  select 10 as empno, '05:00' as nightshifthrs from dual union all
      4  select 10 as empno, '08:00' as nightshifthrs from dual union all
      5  select 10 as empno, '10:00' as nightshifthrs from dual union all
      6  select 10 as empno, '07:00' as nightshifthrs from dual union all
      7  select 10 as empno, '09:00' as nightshifthrs from dual)
      8  select sum(to_number(replace(nightshifthrs,':','.'))) AS hours_worked
      9* from tab1
    SQL> /
    HOURS_WORKED
              40
    SQL> Of course, if your users can and do enter minutes, then that complicates the example I provided. You will have to convert the minutes to decimal, sum the amount, then convert the decimal back to time and add this to your hours. For example:
      1  with tab1 as (
      2  select 10 as empno, '01:15' as nightshifthrs from dual union all
      3  select 10 as empno, '05:00' as nightshifthrs from dual union all
      4  select 10 as empno, '08:30' as nightshifthrs from dual union all
      5  select 10 as empno, '10:00' as nightshifthrs from dual union all
      6  select 10 as empno, '07:45' as nightshifthrs from dual union all
      7  select 10 as empno, '09:00' as nightshifthrs from dual)
      8  select sum(to_number(substr(nightshifthrs,1,2))) + SUM(to_number(SUBSTR(nightshifthrs,4,5)))/60
      9* from tab1
    SQL> /
    HOURS_WORKED
            41.5
    SQL> Hope this helps.
    Craig...

  • Simple arithmatic error??? what am i doing wrong?

    java is not multiplying large numbers correctly??
    run the following program:
    public class Test {
      public static void main(String[] args) {
        System.out.println("testing arithmatic.....");
        double a = (double) 27051900;
        float  b = (float) 56.26;
        int    c = (int) (((double) a) * ((float) b));
        System.out.println(a + " * " + b + " = " + c);
        System.out.println("trusty calculator says correct answer: _1,521,939,894_");
        System.our.println("java is off by: " + (1521939894 - c));
        double x = (double) 12;
        float  y = (float) 6;
        int z = (int) (((double) x) * ((float) y));
        System.out.println(x + "*" y + " = " + z);
        System.out.println("correct answer: _72_ [correct]");
        System.out.println("___end test___");
    }i am mostly new to java.
    what could be causing this strange behaviour?

    The Java primitive data type float is 4 bytes, or 32 bits:
    1 bit Sign 8 bit exponent 23 bit mantissa
    So you result have not be more than 8 388 608 when you operate with float.
    Result can be more, but in this case you will lost first digits.
    So to receive correct result in this case you have use double.
    If you change float to double result will be correct.
    you can see :
    public class test {
    public static void main(String[] args) {
    System.out.println("testing arithmatic.....");
    double a = (double)27051900;
    double b = (double)56.26;
    double c = (int)(((double) a) * ((double) b));
    //(int) (((double) a) * ((float) b));
    System.out.println(a);
    System.out.println(b);
    System.out.println(a*b);
    System.out.println(c);
    System.out.println(a + " * " + b + " = " + c);
    System.out.println("trusty calculator says correct answer: _1,521,939,894_");
    System.out.println("java is off by: " + (1521939894 - c));
    double x = (double) 12;
    float y = (float) 6;
    int z = (int) (((double) x) * ((float) y));
    System.out.println(x + "*" y " = " + z);
    System.out.println("correct answer: _72_ [correct]");
    System.out.println("___end test___");
    Result:
    init:
    deps-jar:
    Compiling 1 source file to C:\Apache\htdocs\petals\Java\JavaApplication1\build\classes
    compile:
    run:
    testing arithmatic.....
    2.70519E7
    56.26
    1.521939894E9
    1.521939894E9
    2.70519E7 * 56.26 = 1.521939894E9
    trusty calculator says correct answer: _1,521,939,894_
    java is off by: 0.0
    12.0*6.0 = 72
    correct answer: _72_ [correct]
    ___end test___
    BUILD SUCCESSFUL (total time: 0 seconds)

  • Update date/time in UNIX timestamp format

    The datetime in my Oracle DB is being stored in UNIX Date Time format.
    Is there a way I can set the date/time using an UPDATE statement in such a case.
    for eg:
    select id, creation_date, expiration_date from skel;
    id creation_date expiration_date
    400019 1213726470     
    400020 1213733052     
    400005 1210867973     
    400018 1213723608     
    I am looking to set the expiration date as creation_date + 1 year.
    Could you please advise?

    I am looking to update the value in the field. The values will still be in UNIX date/time format.Yes, but still: instead of continuing converting to Oracle dates and Unix dates, why not just store dates the way the datebase can deal with it the best?
    You're probably storing your UNIX date/time formatted dates in the database as NUMBERS.
    That is a great loss of lots of built-in date functionality Oracle Database provides.
    If you insist on staying on that road, then explore my previous links, you will find your answer:
    Convert epoch number to date, do arithmatic and convert the result back to epoch number.
    That is overkill.
    It won't work/scale/perform/whatever in the end. It is a bad approach.
    So, please reconsider this:
    Why are you storing dates as numbers?
    Convert those numbers to dates once, and be done with it for ever after and benefit from all the builtin date-functionality Oracle database comes with, or convince us that you really have a valid reason to store dates in UNIX date/time format into an Oracle Database.
    and my last date was...uuhhmm... never mind ;)

  • Arithmatic Operations

    1) Can we declare the variables in the script ?
    2)I have two variables in the driver program.
    Depending on the conditions, i want to perform some arithmatic operations like Addition or subtraction in the script. How to do that ?

    hi,
      You can use the perform statement in the script for calculations in the script.
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    The system does not execute the PERFORM command within SAPscript replace modules, such as TEXT_SYMBOL_REPLACE or TEXT_INCLUDE_REPLACE. The replace modules can only replace symbol values or resolve include texts, but not interpret SAPscript control commands.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See the example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the CHANGING parameters in the PERFORM statement. These parameters are local text symbols, that is, character fields. See the example below on how to return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (‘First page’, ‘Next page’, ‘Last page’) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY ‘PAGE’.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY ‘NEXTPAGE’.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE OUT_PAR WITH KEY ‘BARCODE’.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = ‘|’. "First page
    ELSE.
    OUT_PAR-VALUE = ‘||’. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = ‘L’. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    regards,
    Veeresh

  • Executing a Arithmatic formula stored in Variable

    Hi all,
      I need solution to execute a arithmatic operation which is stored in a variable.
    For Example:
    data : var type string.
    var = ABS('-3').
    Now by means of the variable var i need to get the absolute value of -3
    ie my output should be 3 if i print the variable "var".
    Please help.
    Regards,
    Vijayakumar

    Hello,
    Do like this.
    REPORT ZV_SDN_3 .
    DATA: STR TYPE STRING.
    DATA: STR1 LIKE STR,
          INT TYPE I,
          LEN TYPE I.
    STR = ABS('-3')..
    LEN = STRLEN( STR ).
    DO LEN TIMES.
      IF NOT STR+INT(1) IS INITIAL.
        IF STR+INT(1) CA '0123456789'.
          CONCATENATE STR1 STR+INT(1) INTO STR1.
        ENDIF.
      ENDIF.
      ADD 1 TO INT.
    ENDDO.
    WRITE: STR1.
    Hope this will solve ur issue.
    Cheers,
    Vasanth

  • Arithmatic(add, sub, mult) operations using radiobutton Selection

    Hi,
    I want to create simple arithmatic operation program, in that I want to use radiobutton for selection of type of arithmatic( addition or subtraction etc) and display output. This output is concerned about the selection of radioutton. please anyone give me idea about this.

    Hi,
    this is an example (sum and subtract) that you could extend
       DATA W_NUM TYPE I.
    SELECTION-SCREEN BEGIN OF BLOCK BL1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_NUM1 TYPE I OBLIGATORY,
                P_NUM2 TYPE I OBLIGATORY.
    SELECTION-SCREEN SKIP.
    PARAMETERS : P_ADD RADIOBUTTON GROUP GR1, "sum
                 P_SUB RADIOBUTTON GROUP GR1. "subtract
    SELECTION-SCREEN END OF BLOCK BL1.
    START-OF-SELECTION.
      CLEAR W_NUM.
      PERFORM CALCULATE USING P_NUM1 P_NUM2.
      WRITE W_NUM.
    *&      Form  CALCULATE
    FORM CALCULATE  USING  PR_NUM1
                           PR_NUM2.
      IF P_ADD EQ ABAP_ON.
        COMPUTE W_NUM = PR_NUM1 + PR_NUM2.
      ENDIF.
      IF P_SUB EQ ABAP_ON.
        COMPUTE W_NUM = PR_NUM1 - PR_NUM2.
      ENDIF.
    *others operation
    ENDFORM.                    " CALCULATE
    Regards
    Ivan

  • Trace data load errors in more details

    Hi all.
    During data load (update rules) I get error msg in Load Monitor "Arithmetical errors or conversion errors found in routine ROUTINE_0001 record 400"
    First of all there is no any ROUTINES in update rules, only 1 FORMULA. So, why monitor points to  some ROUTINE_0001?
    Second, is there any other opportunity in BI to trace data load/update errors in more detail?

    Hi,
    This error is because of the internal conversion routines run at the time of loading. While loading the data there might be a chance of some invalid characters (non numeric) coming in the fields with data type  NUMC/AMOUNT/QUANTITY.
    The arithmatic operations can not be performed on such data. So check if this is the reason why you are getting the above error.
    Regards,
    Yogesh.

  • Executing an Arithmatic Formula stored as String

    Hi All,
    Please help,
    I have similar problem with Mr. Vijayakumar V.
    I need to get result value of an arithmatic formula which stored as string.
    ex:
    zform = '( A / 2 ) + ( B * 1.25 + 2 )'.
    if I have A = 10, and B = 4.
    I do expect the final result to be : 12
    for ( 5 + 7 ) = 12
    Is there any simple way to do this or
    Is there built in function in ABAP to deal with something like this?
    Thank you,

    Hi Oki,
    You can solve your problem by generating subroutine at runtime.
    Please look at sample code below:
    REPORT  z_jr05.
    DATA: code(72) OCCURS 10,
          prog(8),
          msg(120),
          lin(3),
          wrd(10),
          off(3),
          var_string(50),
          p_result  TYPE i.
    var_string  = 'temp_result = ( A * B ) + 199.'.
    REPLACE ALL OCCURRENCES  OF'A' IN var_string WITH '10'.
    REPLACE ALL OCCURRENCES  OF'B' IN var_string WITH '11'.
    APPEND 'PROGRAM SUBPOOL.'                  TO code.
    APPEND 'FORM HITUNG changing p_result.'    TO code.
    APPEND 'data: temp_result type i.'         TO code.
    APPEND  var_string                         TO code.
    APPEND 'p_result = temp_result.'           TO code.
    APPEND 'ENDFORM.'                          TO code.
    GENERATE SUBROUTINE POOL code NAME prog
            MESSAGE msg LINE lin
            WORD wrd    OFFSET off.
    IF sy-subrc <> 0.
      WRITE: / 'Error during generation in line', lin,
      / msg,
      / 'Word:', wrd, 'at offset', off.
    ELSE.
      WRITE: / 'The name of the subroutine pool is', prog.
      SKIP 2.
      PERFORM hitung IN PROGRAM (prog) CHANGING p_result.
      WRITE p_result.
    ENDIF.
    Regards,

  • I install window 8 and Unfortunatly all drive format. And all drive mix, now i have only 1 DRIVE C. I want Bit locker Drive's data Back

    Last sunday i install a window 8 and this window format my all drive & make it 1 drive (DRIVE C). Before all of this i have 5 drive in different size with 1 Bitlocker protect drive.
    So i try data recovery software to recover my data. i got back all my data without that ( bitlocker ) protected drive.
    so please guys help me how can i get back data from bitlocker protected drives.
    please please help me.

    Hi,
    I sorry for your experience, but there is no way to recovery the data encryped by BitLocker untill now.
    BitLocker is designed to make the encrypted drive unrecoverable without the required authentication. When in recovery mode, the user needs the recovery password or recovery key to unlock the encrypted drive. Therefore, we highly recommend
    that you store the recovery information in AD DS or in another safe location.
    Please refer to the link below for the statement:
    http://technet.microsoft.com/de-de/library/ee449438(v=ws.10).aspx#BKMK_RecoveryInfo
    Roger Lu
    TechNet Community Support

Maybe you are looking for