X characters from the end

Hi,
Does it exist a function how returns a specified number of characters from the end of a text string, like the function "RIGHT" in Excel ?
Thank you.
Patrick

Yep, use SUBSTR with a negative number:
SQL> select substr('Hello world!',-3) from dual;
SUB
ld!

Similar Messages

  • Truncate 4 characters from the end of a field

    How would I go about trimming the last for characters in a field.

    If you are truncating it using the Picture, it should always work. If you are doing it via the !format event, does your data file have a field with the same name as where you put the code?
    I have to admit I dont have a need for truncation so Ive not done any testing besides Test Presentment. The SSN sample came from an actual production form. There isnt anything Im aware of that has to be added to jfpreamble we dont have any form (out of 100s) that has custom jfpreamble coding.
    FYI: We almost exclusively use global field definitions in our data files. If you are using field field definitions that might make a difference. For example, this is a sample from the end of a data file:
    >...
    ^global Authorized_Rep_Name
    G KOCH
    ^global TimeRequested
    11:54:21
    ^global DateRequested
    12/05/2006
    ^global 12_Address_lines
    MRS BARBARA PRODUCTION
    MODIFIED 5606 MARK
    ADDRESS LINE3
    SEATTLE WA 98679-8816
    ^global CP_IA_Record_No
    9
    ^global CP_Address_lines_REC
    9
    ^global DAT_File_Name
    PF_0020_20061205_115421
    ^global DoNotMail
    ^FORM _base_page_v1r3.mdf
    ^field MannerOfServiceImage
    C:\JetForm\Forms\FirstClass.jpg
    ^FORM f-01-115-v1r4.mdf
    ^FORM f-01-115-v1r4-s.mdf
    ^FORM sep-pg9-v1r3-cso.mdf
    ^FORM f-01-115-v1r4-cso.mdf
    If we used field definitions it would look more like:
    >...
    ^form 1111111
    ^field AAAA
    DATA-AAAA
    ^field BBBBB
    DATA-BBBBB
    ^form 222222
    ^field CCCCC
    DATA-CCCCC
    ^field BBBBB
    DATA-BBBBB
    In the first example the data is only defined once, followed by the forms it is to be applied to. In the second example if the data appears on two forms it has to be defined for each form.
    I dont know if this would cause a difference in your truncation problem.

  • Is there a way to prevent Robohelp WebHelp from appending characters to the end of the URL address for a TOC Entry?

    I am running RoboHelp 10 on Windows 7 Enterprise SP1 64 bit OS.
    WebHelp is appending characters to the end of the TOC entry's URL address. The characters "bc-n" where n is a number are being generated for all of the TOC Page Entries when I generate WebHelp output. We are exporting the HTML files for import into an application. The TOC Page Properties Link to: property does not contain the characters in RoboHelp.
    We have standardized names defined for our application and the appended characters are not going to work in the application.
    cid:[email protected]
    When I use the generated html output in IE10 Version 10.0.9200.16635 Update Versions: 10.0.7 (KB2846071) the characters show up in the URL when I hover the mouse over the TOC entry as shown in the screenshot below.
    cid:[email protected]
    The two screenshots show that the Link to property does not have the characters "bc-7" but the URL address does.
    Is there a setting or way to configure RoboHelp to prevent Robohelp WebHelp from generating and appending characters to the end of the URL address for TOC Entries?

    I have never known Rh add any characters so I think something else is at play here. Please open one of the sample projects and see what happens there. Click Open on the RoboHelp Starter page and then click Samples in the ribbon on the left.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • I use since 1 year iTunes match. Do I get a mail from apple to renew my subscription or do I have to renew my subscription for my own? I don't know the exactly date from the end of lifetime?

    I use since 1 year iTunes match. Do I get a mail from apple to renew my subscription or do I have to renew my subscription for my own? I don't know the exactly date from the end of lifetime?
    Kind best regards - sunshine34778

    The subscription will renew automatically (unless you have disabled that) and you will get an email approximately one month before renewal.

  • I have a MacBook purchased in 2009 with Snow Leopard. I tried to access "special characters" from the Finder menu and an intermittent blank pop ups and will not stop. It also happens when I run Word or Pages.

    The blank pop up began as I tried to access "special characters" from the finder menu. I restarted, turned off and restarted and it did not work. It interferes with any application because I cannot work fast. Every new step takes a few seconds longer such as saving, finding text, check spelling and many more. I am desperate to solve this. Thanks in advance for any help given.
    Consuelo Corretjer

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • HT204406 my itunes match has frozen 2 songs from the end of matching my music. what do i do to fix this?

    I have subscribed to itunes match and it checked all of my songs but has frozed 2 somge from the end of step 2 and won't move on to the next step. I don't know how to resolve this as I have tried stopping and starting it but it seems to freeze in the same place every time.

    *When I try to drag over the music, it won't let me. That's what I meant to say.

  • BUG: Extra characters at the end of attachment file names

    I received complaints that my attachments didn't open on the PC's of the recipients. After I saw the messages I noticed there were extra characters at the end of their file names. That's why they wouldn't open. When I looked into my sent mail folder it was there as well. The addition took place when I sent the mail, while composing everything looked fine. It took me a while to realize the pattern. There was one extra for every non-ASCII character in the file name.
    Apparently Mail.app is using two different libraries. The other one counts the non-ASCII characters as two while the other doesn't. I don't know whether Finder still uses MacRoman or Unicode, but this seems to relate to double-byte characters.
    The short term solution is to use only ASCII for file names, but that's not what OS X is all about.

    The class files are broken. Recompile them. If you're uploading them, doublecheck if the FTP program used doesn't do mad things with binary files.

  • Hi I have trouble in using alternative characters from the glyphs panel in illustrator CS5.

    I have recently installed the CS5 version of Adobe Creative Suite I have purchased long ago.
    I have trouble using the alternative characters from the glyphs panel. The problem doesn't happen with a specific font but a few.
    There are fonts that work fine and fonts that do not (either true or open type fonts)
    I can see the characters alternatives in the glyphs panel but when clicking only the normal characters appear.
    I have also tried to re-install the fonts but didn't fix the problem.
    Reading from previous posts that other users had same problem they concluded that there has been a problem / bug with the CS5 version glyphs that needed to be fixed
    Is this the case? What shall I do?

    Hi - I have found the update so problem solved !

  • Try this: extraneous characters on the end of your password

    Can someone else verify this?
    try adding some extraneous characters to the end of your password on ssh login.
    For my fully patched solaris 9 and 10 systems the garbage on the end is accepted as if it was the correct, exact length version.
    Smells like a bug, though I can barely believe it would have survived this long..
    thanks

    Standard unix crypt only holds first 8 characters of password.
    Its not a bug, its a feature :-).
    If you need longer password then you can change the password crypt scheme.
    This can be done in solaris 10, but I don't think it can be done in solaris 9.
    Its controlled by /etc/security/policy.conf

  • Grep Styles/Nested Styles from the end of the paragraph

    Hi -
    It appears that grep styles, and nested styles only allow you to apply styles from the beginning of the paragraph until the match.
    I'd like to be able to apply styles from the END of the paragraph going back.
    This would allow me to apply a non-breaking character style to the end of a paragraph to control "runts". You could make the last two words of a paragraph non breaking, or set a 15 character threshold.
    This wouldn't work for all cases, but I'm working with centered, non-justified text, so it should work fine. If the feature were there.
    I'm sure there are other things one could do with it as well.
    There's a good discussion, and a MANUAL work-around on
    http://pdsassoc.com/tipsCS/DeruntingParagraphs/index.html
    Tom

    I used your suggestion and reviewed the tutorial again.
    Sometimes a missing piece of info drives you nuts.
    Thanks again.
    My clients will love this enhancement.
    CS rocks.

  • How to get substring from string starting from the end of string

    Hi
    How to cut from string:
    $A=C:\ClusterStorage\Volume1\WXP-plwropc300\Virtual Hard Disks\WXP-PLWROPC300_EE20E00F-315E-4781-A6DE-68497D4189B8.avhdx
    this substring (name of VHD file): WXP-PLWROPC300_EE20E00F-315E-4781-A6DE-68497D4189B8.avhdx
    This script should be universal so the best way to be cut all leters from the end of string $A till get the first mark \
    Thank you for help.
    Tomasz
    Kind Regards Tomasz

    PS > Split-Path 'C:\ClusterStorage\Volume1\WXP-plwropc300\Virtual Hard Disks\WXP-PLWROPC300_EE20E00F-315E-4781
    -A6DE-68497D4189B8.avhdx' -leaf
    WXP-PLWROPC300_EE20E00F-315E-4781-A6DE-68497D4189B8.avhdx
    PS >
    That is what "Split-Path" is for:
    ¯\_(ツ)_/¯

  • I created an album and have been showing it presentation style, ken burns effects etc. Now every time I try to re-run it it starts from the end, last picture first! Can't seem to be able to reverse it. Any clue anyone?

    I created an album and have been showing it presentation style, ken burns effects etc. Now every time I try to re-run it it starts from the end, last picture first! Can't seem to be able to reverse it. Any clue anyone?

    First try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
    User/Home/Library/Caches/com.apple.iPhoto folder (Snow Leopard and Earlier).
    or with Lion, Mt. Lion or Mavericks delete the contents the User/Library/Containers/com.apple.iPhoto/
    Data/Library/Caches/com.apple.iPhoto folder.
    3 - reboot, launch iPhoto, reset iPhoto's preferences and try again.
    NOTE: In Lion and Mountain Lion the Home/Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and press the Return key - 10.7: Un-hide the User Library folder.
    If you're running Mavericks, 10.9,  go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
    where you can check the Show Library Folder checkbox.
    Next, if necessary, continue with the two fixes below in order as needed:
    Fix #1
    1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
    2 - run Option #4 to rebuild the database.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button and select the library you want to add in the selection window..
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the Library ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • How do you hide Excluded Roles from the End User (8.1) ?

    We have 2 Buisness Roles: Employee and Contractor. They are excluded from each other, meaning if you have one of the roles, you cannot be assigned the other role.
    When a user logs into 8.1 to the OOTB "Update My Roles" WF, they see their Available Roles for selection.
    These available roles listing includes the excluded roles.
    So when a user with the Contractor role logs in, they see the Employee role as an available role.
    If the Contractor user tries to add the Employee role, they will get an error due to the role exclusion.
    I know it is possible to hide the excluded roles from the end user, but don't know how.
    Does anyone know how to hide the excluded roles from users?
    Thanks.

    Hi
    I may have misread your first comment but I totally agree with your response.
    If the user has capabilities over multiple organizations it will show all roles, whether exclusion or not. (Been confirmed that this is how it is designed to work)
    What could be done is when selecting a user is a specific organization, you could have a rule that only shows up the Business roles that are associated with that organization. So although you have the capabilities over all organizations you only see the roles that are available to the organization where the user is your are updating.
    An idea anyway
    Ian

  • May I run "shrink DB/truncate free space from the end of file" at PROD?

    We have a SAP/MSS production system.
    The disk is full.
    We want to truncate the log file by:
    "shrink DB/truncate free space from the end of file"
    on the log file.
    How risk is it? Can we do it during production is running?
    Thanks! Points!

    Backup the log file (to save the data and keep a consistent backup) Then shrink the file. Its normal for the log not to shrink down to the size you want. Do not shrink past 1GB.
    DO NOT TRUNCATE - you are losing/dropping data and recovery will only be possible to the last on-line, or on-line plus last log/s.
    You can avoid a full log file by setting a 9002 trap - this will trigger a backup (like oraarch when you back up based on % full). Else you need to change the frequency of the backups for the logs to ensure the system never fills ups.
    You can Also add a second log file on a separate F/S if this occurs regular - which it shouldn't if you have a correct backup strategy.

  • VISA Read Losing Characters off the end of the output string

    Hi,
    So I am writing a VI to take an output string of data from an ardunio Uno and parsing it. I am using the Read Visa vi to grab the string from output of the device. In the end I will be connecting a device that actually gives value in this type of string  format : (#80212164,2289,2292,2296,2300,2328,2289,2297,2290,2300,2308,2292,2295,2298,2289,22,24,0*).
    So after a large number of loops, the program starts to drop the last few characters of the string that it outputs. So the string output from Visa Read will read something like (#80212164,2289,2292,2296,2300,2328,2289,2297,2290,2300,2308,2292,2295,2298,2289,22,24,). The only way to fix this problem after it has occured is to completely close labview (all the way). Once I open it again and start running the program, all is fine in the world.
    Anyone ever have this issue? I have been trying to debug this in different ways and the only weird symptom that I have other than the Visa Read function losing a few characters of the string is the fact that looking at the Bytes at Port after I Visa Read, is that it starts showing five bytes instead of zero. 
    attached is my most recent attempt at solving this issue. 
    Note:  The Ardunio outputs a string of this format every 2 seconds with the values being incrimental over a specified range.(#80212164,2289,2292,2296,2300,2328,2289,2297,2290,2300,2308,2292,2295,2298,2289,22,24,0*) 
    Solved!
    Go to Solution.
    Attachments:
    Ardunio(StringOutput).vi ‏36 KB

    So i did a long data collect and It looks like ever 43minutes and 24 seconds the system goes from cutting off the last 5 characters to not cutting off the last 4 characters.
    As I cant see how Labview would be causing that, I am going to try and dig into the Ardunio and solve that issue... hopefully when thats done I can simplfy my code like you guys pointed out.
    Thanks!
    Attachments:
    overnight_11_18.csv ‏3001 KB
    Overnight.png ‏146 KB

Maybe you are looking for

  • Airport connected but can't get internet....PLEASE HELP!!!

    I am a college student who went to college and used an apple airport base station for my mbp and everything worked fine, and before i went to school i used my parents linksys wireless router and it all worked fine. i came home from college today and

  • User Defined field in UDT - how to create select from existing data

    Hi I want to create User Defined Table for purpose of storing records of sales visits made to customers. I want to record detail for example: Date of Visit; Sales Employee; Activity number ref (which has attached PDF visit report); Related Opps) I am

  • ITunes Store app stuck on "Loading..."

    Hello, all! I've been having this issue over the past couple of weeks and googling away to see if there's a fix, but I haven't yet found one, and it's really starting to bug me. It's becoming a nuisance for me to have to use the computer any time I'd

  • Airport, TC and WiFi

    I recently purchased the 500GB Time Capsule and everything works well EXCEPT the fact my WIFI capable phone (Samsung Katalyst) that worked with my first generation Airport Extreme AND worked on Apple's WIFI in the store WILL NOT work at home on the n

  • (SunMC agent: Mx000)Insufficient security privilege to load console info!!!

    I create a user "smcuser" on SMC server, it is in group "platadmn" and "dom0adm", In SMC console, it can monitor a M4000 agent, but it cannot monitor M5000 agent. PS: i have created "smcuser" on XSCF of M4000/M5000 server. When i click "Platform View