How to test if particular character is empty in a row

Hi All ,
Requirement : To split the input file into two files .
If the length of the row is 93 characters and the condition is If characters from 28 to 32 are empty then create a file with the name PCO1 .txt else create a file with the name PCO2 .txt
Please let me know how to test in a row if particular character has certain value or from 28 to 32 are empty .
Thanks for your help

hi Sharma,
IF line+27(5) EQ space.
==> positions 28-32 have no value (i. e. all characters are spaces)
ELSE.
==> positions 28-32 have some value
ENDIF.
some explanation:
line+27(5) ==> this means: 5 characters after position 27
hope this helps
ec

Similar Messages

  • How to display a particular character  of a word

    Hi,
    can anyone tell me how to display  a particular character of a word in smart forms,Ex:suppose word is India and i want to display character d..
    Thanks in advance.
    Rajesh

    please look at the below explanation:
    DATA: VAR TYPE CHAR20.
    VAR = 'INDIA'.
    WRITE:/ VAR(3) - THIS WILL PRINT FIRST THREE CHARACTERS OF THE INDIA SO THE OUTPUT WILL BE : IND
    WRITE:/ VAR+3(1) = THIS WILL PRINT 1ST CHARACTER AFTER FIRST 3 CHARACTERS SO THE OUTPUT WILL BE : I
    COPY REQUIRED CHARACTERS IN ANOTHER VARIABLE.
    DATA: VAR2 TYPE CHAR10.
    VAR2 = VAR+3(2) .

  • How to test if a character is a number

    Hi all.
    Anyone got an idea on what is the most efficient way to test if a character is a numeric character (0...9) in pl/sql.
    Thanks

    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select '0' as chr from dual union all
      2             select '3' from dual union all
      3             select 'A' from dual union all
      4             select 'x' from dual union all
      5             select '8' from dual union all
      6             select 'w' from dual)
      7  -- END OF TEST DATA
      8  select chr
      9        ,CASE WHEN regexp_like(chr,'^[0-9]$') THEN 'Number'
    10         ELSE 'Not Number'
    11         END as test
    12* from t
    SQL> /
    C TEST
    0 Number
    3 Number
    A Not Number
    x Not Number
    8 Number
    w Not Number
    6 rows selected.
    SQL>

  • How to count a particular character in a column ??

    I am facing a probem while intergrating a module, we have a column in which user inserts conditions like 1.asd.2.err.3.errr..etc..now my requirement is that i need to count the number of conditions made in this particular column . Can anyone please suggest me how to do this as i have tried many ways but couldn't get the desired result.

    Do you mean like this?
    SQL> ed
    Wrote file afiedt.buf
      1  select length(regexp_replace(regexp_replace('1.asd.2.err.3.errr','([^0-9]|^)([0-9])','~'),'[^~]')) as num_conditions
      2* from dual
    SQL> /
    NUM_CONDITIONS
                 3
    SQL>

  • How to test T61 backup battery?

    Hello,
    am taking apart a T61 for cleaning, OS reload etc and am thinking of testing the backup battery while I am in the maintenance mode. The maintenance manual indicates to remove the battery and measure the voltage, but doesn't indicate how to do this, I have a multimeter but have no idea how to test this particular part.
    Any suggestions welcome.
    Thanks!
    T400 6475-8Q5 | 8GB RAM | WXGA+ | Seagate 500GB 7200 | Win 7 Pro 64-bit............T61 7658-CTR | 8GB RAM | WD Black 320GB
    Solved!
    Go to Solution.

    it's a simple DC battery with two wires, you just check the voltage across them, but I'd recommend you remove any bios passwords you may have set first. 
    Also, these batteries don't often go bad, so you can simply remove the main battery and unplug the AC for a few hours and if the clock remains set, the cmos battery is working. 
    ThinkPad W-510 i7-820QM(1.73-3.06GHz) Quad Core... ThinkPad T500, T9900, 8gb SSD...FrankNpad T-60p/61p (X9000 2.8ghz) 8gb SSD ips FlexView...ThinkPad T-61p (T9300 2.5ghz) 8gb ram...Thinkpad X-61 Tablet 4gb ram...ThinkPad A-31 (1.9ghz P4 1.5gb ram)

  • How to Test Mail's Trainable Filter?

    In the Apple Support Discussions topic No Junk mailbox in Training mode? a question arose regarding how to test if the trainable filter (the filter that evaluates the "Message is Junk Mail" condition) is evaluated independently of the other conditional tests of the Junk Filter rule -- IOW, if some other test condition in the Junk Filter rule, like sender is not in the address book, evaluates to false, does the "Message is Junk Mail" test which follows it in the rule's list of conditions ever get evaluated?
    A proposed test for this involved resending to yourself a message that Mail had previously marked as junk using the "Message > Send Again" function of Mail. It has been pointed out to me that this probably isn't a valid test because "Message > Send Again" doesn't send the original message in unaltered form (there are substantial changes in the header info regarding sender, path, etc.) & thus the filter may not consider the resent message as junk, even if it were to evaluate it.
    So, for testing purposes, does anybody have a suggestion about how to resend (or fake resending) a received message to myself without altering its header info?

    What matters is whether the Message is Junk
    Mail condition would still evaluate to true
    regardless.
    That depends on what you are trying to determine & if the test produces decisive results.
    For instance, consider tests with the standard Junk Filter automatic settings & no other rule involving "Message is Junk Mail" in the list. A test is performed in an attempt to determine if the filter's conditional tests are performed in the indicated order only until one evaluates to false.
    "Send Again" should not cause the "Message is Junk Mail" test to be evaluated at all, since in this case the sender is oneself & the Junk Filter should exit as soon as the 'sender not in Address Book' test is evaluated.
    Yet, when I try this with a message (correctly) marked as junk when originally received, the resent version is still marked as junk, & this happens not just on my on Mac but on the few others I have checked as well. I have tested with only a limited number of junk messages because on the other Macs the owners do not keep them for long & on my own I do not get that many (AOL is my primary account & has excellent spam filtering), so I would love to know if readers of this topic see similar results.
    BTW, I should mention here what might be a potential hazard of using "Redirect" for testing with "real" spam: As I hope everybody knows by now, it is a bad idea to enable automatic loading of remote html images because doing so can alert spammers one's email address is valid. In one case, when I tried the "Redirect" method on my own Mac, AOL refused to accept the redirected message, possibly because of AOL's spam filters. At that point, Mail displayed the message, asking if I wanted to try sending it from another account, edit it, or what. Even though I have the option disabled, Mail loaded the original's remote html images along with its other content. I don't know if that is a design feature of Mail, a problem with just my Mac, particular to AOL, or what, but I want readers to be aware of it, just in case.
    Anyway, for this reason I have since confined myself to testing with "Send Again," which seems safe in all cases, & mostly to testing only on my on Mac, just in case it is not.
    Back to the "so what" aspects of this topic: It may be that the "Message is Junk Mail" test is sometimes treated differently from the other conditional tests in the Junk Filter in that it may be evaluated first or even if other tests before it evaluate to false. This makes some sense as a design feature in that even if the Junk Filter's automatic mode action isn't performed, it gives users more training opportunities. It may be a bug. It may just be something particular to my Mac. It may be something else, perhaps having to do with trusting junk headers, or something more subtle as yet unconsidered.
    In any event, the point is holding all variables save one constant in any single "black box" test of a multi-variable system is a necessity for definitive results because variables may be interdependent. Because of this, the ability to resend to oneself the same message in unaltered form would be useful for a variety of tests, so I would still like to know if anyone has any ideas about how to do this.
    iMac G5/2.0 GHz 17" ALS (Rev B)   Mac OS X (10.4.7)   512 MB RAM, Kensington Trackball

  • How to test 'Max. Reschedules per Message' in standard program RSXMB_RESTART_MESSAGES

    Hi Experts,
    I have changed the variant value 'Max. Reschedules per Message' in the starndard program RSXMB_RESTART_MESSAGES from 20 to 10., in order to reduce the alerts in case of failuer happend in mapping. Current problem is for a particular BPM interface if we get mapping error, we are getting 20 alerts now we want to minimise to 10. Please let me  know if we required to configured any other parameters.
    Can you please advise me how to check this particular varient is working or not? Is it possible to test this without end to end testing?
    Thanks,
    Chandar.

    Can you please let me know how I can find out the duplicate record.
    you need to split the records from flat file structure into your internal table ans use a delete ADJACENT duplicates comparing fields
    split flat_str into wa_f1 wa_f2 wa_f2 at tab_space.

  • How can I EXCLUDE particular folders/files from being included in the Lightroom 5 catalog?

    How can I EXCLUDE particular folders/files from being included in the Lightroom 5 catalog?
    I want to be able to specify paths and/or filename patterns that should NEVER be indexed in the catalog: not that they don't show up under certain circumstances, just that they are NOT THERE (in the catalog) to begin with!!
    I also do NOT want to have to respecify these criteria when "synching" the catalog; criteria should be PERMANENT (or at least 'til they're changed in LR preferences).
    I cannot be the only person in the world with this problem--but it sure seems like it, because I've spent an inordinate amount of time doing online searches & I can't find anything that addresses this issue.
    Can anyone PLEASE HELP me?
    BTW, Adobe employees (if there are any of you out there), I'm simply trying out LR now.  If I can't get this (seemingly fundamental) thing worked out (with relatively little effort), Adobe is going to LOSE A SALE of LR, because it's useless to me without this feature.
    Thanks,
    -t

    Thanks for the info... but how to you TELL LR to EXCLUDE images in a particular directory/directory structure?  The intuitive place to indicate this would be a right-click on the folder itself (or particular images), but no such option exists..  "???"  Thanks again, -pt
    The same way that you avoid buying things in your local convenience store. You don't stick a lot of labels on certain shelves, slap a credit card down on the counter each week, and announce you are buying everything that doesn't have a label on its shelf. You just choose the things you want to buy.
    Your mention of "synching the catalog" suggests that you are expecting the LR library, to mirror the total images in the computer by default. This is not IMO a useful way to think about it. LR contains no images at all, by default: the Catalog starts out empty.
    Then you Add just those selected images that you want to import, among those already in the computer. That's a one-off process which is IMO best achieved controllably in batches - which you can keyword and otherwise organise in LR terms as you go. For new incoming images, ongoing, it is a question of Copying, Moving or Adding these in defined batches as they occur - from the relevant location only - there is no need to re-consider the import of a wider body of images. And one would not want to repeat that whole task anyway: one's prior investment in achieving the right selectivity, has a positive value.
    RP

  • How to test the PMS/apprisal template

    Hi experts,
    We have completed the configuration of Apprisal templete.
    With OOHAP_BASIC,PHAP_CATALOG_PA we have completed the process along with status and substatus,staus flow.
    I struckup at this juncture.
    How to test the entire process after the configuration.
    Please advice.
    Regards,
    Sairam.

    Hi Sairam,
    To test the PMS process, please follow the below steps :
    1. Go to PHAP_CREATE_PA and select your template. Enter the details for appraisee, appraiser, reviewer ( if applicable ) and also the start date and end date. Save the document.
    2. Go to PHAP_ADMIN_PA and select the template/appraisee id in the appraisee column in the selection screen and execute. Select your appraisal document and then select from Menu- Appraisal Document->Change Status and select your initial status and sub status.
    Now you can login to Portal/R3 with the user and start testing. The substatus will move automatically based on your workflow. Once you complete a particular status say 'In Planning' you need to manually change the status again from PHAP_ADMIN_PA to 'In Review'.
    Get back to me in case of any queries.
    Regards,
    Sachin

  • How to Test the individualmapping field and conditions...

    Hi Frnds,
    I done mapping from source to destination as per tech spec in my scenario based on some conditions
    i used node functions also..
    But my question is how to test the every mapping filed , condition is correct or not, what i used node function working properly or not...
    Regards,
    Raj

    Hi
    If you want to check mapping for individual mapping then in design go to test tab and put your data there and then come again on Design tab and click on any target field fro which you want to check mapping then right click on target field in mpping area and click on Display queue and check whether it is expected output for that particular field mapping.
    Regards
    Sami
    Reward points if useful.

  • How to test the JSP pages and sevlets using JUnit. ?

    How to test the JSP pages using JUnit. How to configure what are all the steps to execute the JUnit test cases.

    Hi xiepei,
    since you are using modbus, a simple error checking is implicit in the protocol and is the comparison between returned checksum and the calculated one on the received message: checksum errors, if any, are an effect of communications errors (you should have at least 2 bits changed and on particular patterns to have the checksum be calculated correctly!). You won't be able to calculate BER on them, but you can calculate PER (Packet Error Rate).
    Another flag for communication errors, on the other direction, is to intercept error messages from the device: if it fully implements modbus protocol, it should return some warning in case of error (I seem to remember that in some cases it returns the reveived message with some error bits added: please check in modbus documentation).
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How to test to see if the cursor is on the last row in a jTable?

    I like to know how to test the cursor position in jTable.

    From the many topics you post here, I can see that you are thinking in the wrong terms.
    Although it's possible, you should not test if the current row is the last one in a JTable. Instead you should test whether or not the current row is the last one in a VO instance, to which any particular JTable's model is bound.
    So, please read the API documentation for oracle.jbo.ViewObject and oracle.jbo.server.ViewObjectImpl.

  • Scan\Look for a particular character in a file

    I would like to look for a particular character(@) in a file. The character might be in a word. When if find the character I want to read the actual whole word that contains that character.
    What's the best way of going abt this?
    Thx,
    Kapapra.

    Read the file line by line using BufferedReader.
    Tokenize each line on space.
    Loop through the token strings.
    For each token that contains the character that you are looking for (e.g. @) found using indexOf operator of the String class, print or save (or whatever you want to do with that token) that token.
    Continue reading the file line by line till the end of the file.
    Does this make sense? Look the java.io package API for the details on how to read the file and stuff.
    If anyone has more effecient method to do this, please share.

  • How to test File Adapter from EM Console

    Hi All,
    I have one issue with File Adapter where I am trying to implement a simple BPEL process. Below are the steps;
    1. I have created an empty BPEL process and then add a read file adapter to the left side which will read from a file aa.txt which is present in D:\work folder. File is having data like XXXX,YYYY,ZZZZ. (I have used Native builder for schema generation)
    2. Then I have added Write file adapter on the right side which will write to an other file bb.txt.
    Then I have rebuild and deploy this on weblogic SOA server but on the EM console I am not able to test it as Test button is disabled. Then how to test this scenario? Also I tried testing by placing a new file aa1.txt in the same directory with some content. Logically it should be picked up and then write it to the bb.txt but it is not happening.
    Can anyone please help me in this as how to troubleshoot it.
    Thanks
    RJ

    Thanks for the reply.
    So if i understood correctly it means that we cannot test it using EM console as we have read adapter on the left side because of which we have not exposed it as SOAP service. When we put any file in the D:\XXX then automatically read adapter will pick that up and create one instance in the EM console and then write adapter will write it into the destination file?
    But in our case no instance is getting created in the EM console even when I am copying a file to the directory. Below is the read_file.jca
    <adapter-config name="Read" adapter="File Adapter" wsdlLocation="Read.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/FileAdapter" UIincludeWildcard="rj*.txt"/>
    <endpoint-activation portType="Read_ptt" operation="Read">
    <activation-spec className="oracle.tip.adapter.file.inbound.FileActivationSpec">
    <property name="DeleteFile" value="false"/>
    <property name="MinimumAge" value="0"/>
    <property name="PhysicalDirectory" value="D:\mywork"/>
    <property name="Recursive" value="true"/>
    <property name="PollingFrequency" value="60"/>
    <property name="IncludeFiles" value="rj.*\.txt"/>
    <property name="UseHeaders" value="false"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>
    Please help as why it is not getting picked up?
    Regards
    RJ

  • FYI: Test Message in MIGO is empty

    Hi Experts,
    I have created PO and while executing T-code MIGO following error message displays on sreen and due to that unable to creat GR
    FYI: Test Message in MIGO is empty
    Message no. 00007
    Thanks
    Sanjay D

    hi,
    your question is not fillfull, but im suggesting while doing migo we need mentioned how much qty are receiving and you should accept the material  i mean you have to select check box under qty
    bai

Maybe you are looking for

  • Automatic creation AUC sub assets at the time of settlement

    Hi, I have created the investment profile,AUC asset class,Source structuce(Hard,Pave and Soft) and cost element group(Hard,Pave and soft) . Then assign these three source structure to Investment profile. I created WBS element under project and releas

  • IPhone app image size and resolution?

    The icon and image creation guidelines specify all of the custom icons and images that I need to create for my app in two sizes: one for the iPhone 3 screen (and earlier) at 163 pixels per inch; and one for the iPhone 4 screen at 326 pixels per inch.

  • Audio not working on macbook with Garageband

    The audio works with itunes and even the keyboard piano feature in Garageband but I cannot get audio to work with any garageband tracks. Any ideas?

  • Images from camera card

    I downloaded images from my camera card into Elements. They have an offline symbol on them and the images are fuzzy. What does this mean and how do I correct it?

  • Using time machine instead of setup assistant

    My G5 running Leopard is nearly dead, and it only boots using the so-called "hair dryer trick". Even then it only runs for a few hours before dying again. Fortunately, the G5s two internal hard drives are still OK, and they are backed up via Time Mac