DECODE ERROR

Hi All
I used the following calculation in the disco plus :
DECODE (Primes And Subs Vw.Firm Type Code, S, Primes And Subs Vw.Sub Firm Name, P, Primes And Subs Vw.Prime Firm Name)
When the firm type code is S it must give me the sub firm name and when the firm type code is P then it must give me the prime firm name, but instead its giving me the following error:
An error occured while attempting to perform the operation. The operation didnt complete successfully.
Any help is greatly appreciated.
Thank You

Could be one of two things (or both, or none).
Your view name has the word "And" in it, which is a reserved word. Try enclosing the view name in double quotes.
Also, there is no "else" condition in the decode. If your firm type code is other than S or P, the decode doesn't know what to do.
This will address both issues:
DECODE ("Primes And Subs Vw"."Firm Type Code", 'S', "Primes And Subs Vw"."Sub Firm Name", 'P', "Primes And Subs Vw"."Prime Firm Name", NULL)Replace the NULL at the end with something more meaningful when the code is not an S or a P.

Similar Messages

  • Red frames and MXF decode error

    Hi there,
    I have Premiere Pro CC and running Mac OSX 10.9.5. I have one long 32 minute long C300 MXF clip in my timeline which seems to be fine until around the 26 minute mark, where the entire frame goes red. The audio still works, but I can't see anything. I have tried to convert the clip to ProRes in Media Encoder also, but the same issue happens.
    In the report log from Media Encoder I get the following message repeated many times:
    MXF decode error in "[FOOTAGE LOCATION]/Card 1/CONTENTS/CLIPS001/E51151/E5115107.MXF" at frame 47650. Frame 47618 was substituted.
    And then occasionally it says:
    MXF read error in "[FOOTAGE LOCATION]/Card 1/CONTENTS/CLIPS001/E51151/E5115107.MXF" at frame 239.
    Any advice about this??
    Thanks,
    Simon

    Hi there,
    I have Premiere Pro CC and running Mac OSX 10.9.5. I have one long 32 minute long C300 MXF clip in my timeline which seems to be fine until around the 26 minute mark, where the entire frame goes red. The audio still works, but I can't see anything. I have tried to convert the clip to ProRes in Media Encoder also, but the same issue happens.
    In the report log from Media Encoder I get the following message repeated many times:
    MXF decode error in "[FOOTAGE LOCATION]/Card 1/CONTENTS/CLIPS001/E51151/E5115107.MXF" at frame 47650. Frame 47618 was substituted.
    And then occasionally it says:
    MXF read error in "[FOOTAGE LOCATION]/Card 1/CONTENTS/CLIPS001/E51151/E5115107.MXF" at frame 239.
    Any advice about this??
    Thanks,
    Simon

  • Decode error when outputting to file to later burn to DVD

    I have an MPG file created in Ulead Media Studio Pro (which I can no longer run as it does not run on Windows 7 which my new PC uses).  I created a new project in PE9, added the mpg file, dragged it to the timeline and told Premiere to change the project settings to match. It is now PAL DVD Upper field first.  There is no red line on the timeline above the clip.  When I try to output it to a file for later burning to DVD I get a decode error around a particular frame.  When I go near that frame in the monitor window and step forward one frame at a time it moves smoothly until it gets to the frame in question when there is a noticeable delay from pressing the arrow button and the time counter updating to the next frame number.  The MPG plays fine in Windows Media Player and VLC player - it shows a cross fade transition at the spot that fails in PE9.  Is there anything I can do to fix this?  I don't have independent DVD authoring software as otherwise that would be an option.

    Depending on the source footage, I have found that some other programs do a better job of handling them. For that reason, I have CyberLink PowerDirector, and Magix MovieEdit Pro on my computer. Actually, since I use PrPro for most of my work, that is also why I bought and installed PrE - it handles footage well, that PrPro chokes on.
    Personally, I am less comfortable actually editing in PowerDirector, or MovieEdit Pro (older versions of both), but PrE is closer to PrPro, so I rely on it as my "first step," and the other two NLE's more as just converters.
    Still, if another tool in your video-editing toolbox, works better, there is zero shame in using it. Sometimes an adjustable spanner is all a mechanic needs, but when they require a universal socket with a "wobbly" extension on their Snap-On rachet, then the adjustable spanner goes back into the toolbox.
    Most of all, I am glad that you are able to produce the desired results. That is what it's all about.
    Thanks for reporting your workflow and your success. Good luck.
    Hunt

  • Decode Error in Cisco VCS for a call from Jabber to telyHD

    Hi,
    We have the following setup:
    Cisco Jabber <---> Cisco VCS <---> telyHD (Our Video Product)
    Now, the call works well when the call is intiated from telyHD to Cisco Jabber.
    But, the call fails when the Cisco Jabber initiates the call towards telyHD.
    The packet capture on VCS shows that there is a syslog message from VCS to Jabber indicating the following when 180 Ringing is received from telyHD:
    Message [truncated]: tvcs: Event="Decode Error" Service="SIP" Src-ip="10.1.1.19" Src-port="5060" Dst-ip="10.1.11.11" Dst-port="25331" Detail="(User-Agent) Single header User-Agent appeared twice in message" Protocol="TCP" Level="1" UTCTime
    Can you please help in troubleshooting this issue. I don't see multiple "User-Agent" headers in the 180 Ringing sent by telyHD.
    I have attached the packet capture on VCS.

    I am also having the same issue.  Can someone please respond? Thanks.

  • How can I eliminate (watch) in videos that read "ERROR: DECODE ERROR"?

    Usually when in a web site (like Fox News) & there's a video to watch I can't watch it due to the message "ERROR: DECODE ERROR". How can I eliminate this & watch the video? Thanks for your input.

    Have you tried to reinstall Flash on your system, uninstall from the control panel, then install from get.adobe.com/flashplayer/‎ and try the video again.
    Also see [[Flash 11.3 doesn't load video in Firefox]]

  • Decoding error in parsing of spnego token

    Dear Friends,
    I was getting this error in the portal and it was not letting users into portal, the users got error message as authentication failed. I am pasting the log file for the error, Please help me find the solution to the error,
    Note: Restarting the J2EE engine solved the issue, however I want to understand the root cause so that I can prevent the issue in future.
    Decoding error in parsing of spnego token. [EXCEPTION]  iaik.asn1.CodingException: Error reading ASN.1 datastructure: null
         at iaik.asn1.DerCoder.decode(Unknown Source)
         at com.sap.security.core.server.jaas.SPNegoLoginModule.doHandshake(SPNegoLoginModule.java:565)
         at com.sap.security.core.server.jaas.SPNegoLoginModule.doLogin(SPNegoLoginModule.java:378)
         at com.sap.security.core.server.jaas.SPNegoLoginModule.login(SPNegoLoginModule.java:303)
         at com.sap.engine.services.security.login.ModulesProcessAction.run(ModulesProcessAction.java:69)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.services.security.login.FastLoginContext.login(FastLoginContext.java:153)
         at com.sap.engine.system.SystemLoginModule.login(SystemLoginModule.java:90)
         at sun.reflect.GeneratedMethodAccessor225.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
         at javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
         at javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
         at javax.security.auth.login.LoginContext.login(LoginContext.java:534)
         at com.sap.security.core.logon.imp.SAPJ2EEAuthenticator.getLoggedInUser(SAPJ2EEAuthenticator.java:86)
         at com.sapportals.portal.prt.service.authenticationservice.AuthenticationService.getLoggedInUser(AuthenticationService.java:305)
         at com.sapportals.portal.prt.connection.UMHandler.handleUM(UMHandler.java:96)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:186)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:312)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:368)
         at com.sap.portal.navigation.Gateway.service(Gateway.java:101)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Thanks and Regards,
    Deepak

    Deepak, generally this error is displayed when the  keytab file is generated with a  ktpass tool with is not compatible to the JDK Kerberos implementation.If you have created the keytab file using different version ktpass tool, you have to recreate the keytab file using the required version. Please You verify the SAP Note 927350 - keytab generation for Kerberos authentication with SPNego.
    Regards
    Alejandro

  • AIP-51504:  General Decode Error

    Hi,
    We are facing the below error while processing 997's for a partner. This error is inconsistent. 997 setup works sometimes and it doesn't at times.
    Did any one else faced this situation?
    Thanks,
    Description: Unable to decode the message
    StackTrace:
    Error -: AIP-51504: General Decode Error: Error -: AIP-11015: Object does not exist 4C1D1D4ADAB8FCF6E040710A1F4C5E93-35-1
         at oracle.tip.adapter.b2b.msgproc.FunctionalAck.processIncomingMessage(FunctionalAck.java:669)
         at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1778)
         at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:2030)
         at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:1962)
         at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:1920)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:463)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:335)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: Error -: AIP-11015: Object does not exist 4C1D1D4ADAB8FCF6E040710A1F4C5E93-35-1
         at oracle.tip.repos.core.driver.InternalObject.getAssociation(InternalObject.java:690)
         at oracle.tip.repos.core.persistency.BaseObject.getAssociation(BaseObject.java:388)
         at oracle.tip.model.b2b.instance.BusinessMessageReceiverInter.getReceiver(BusinessMessageReceiverInter.java:186)
         at oracle.tip.adapter.b2b.msgproc.AccessRepo.findRequestBusinessMessageByControlNumber(AccessRepo.java:665)
         at oracle.tip.adapter.b2b.msgproc.DbAccess.getRequestB2BMsgIdByControlNumber(DbAccess.java:3066)
         at oracle.tip.adapter.b2b.msgproc.FunctionalAck.processIncomingMessage(FunctionalAck.java:588)
         ... 7 more
    Edited by: user4540631 on Oct 15, 2008 10:50 AM

    Hi,
    More information:
    1) Only inbound FA's are failing (please note its random)
    2) The number in AK102 matches to our outbound invoice's GS number, so i guess the correlation is fine.
    3) I just reprocessed the FA after modifying AK102 number in FA to the ISA number of the invoice, with all preceding zero's and this works.
    Example for my below outbound invoice, i have pasted below the FA that is failing and the modified FA which working.
    Kindly advise
    My Outbound Invoice
    ISA*00* *00* *01*MY ID *01*MY PARTNER'S ID *081014*1012*U*00401*000001646*0*P*>'
    GS*IN*MY ID*MY PARTNER'S ID*20081014*1012*1646*X*004010'
    ST*810*1646'
    BIG*20081016*123456*20081014*PO-NUMBER-A***DI'
    CUR*SE*USD'
    REF*VN*9001256'
    N1*BT*TECH DATA CORP*93*TEMP000889-11350383-GP'
    N3*5350 TECH DATA DRIVE'
    N4*CLEARWATER*FL*33760*US'
    N1*RE*REMIT TO.'
    N3*REMIT TO.'
    N4*PALATINE*IL*60055*US'
    N1*ST*CSC SCORE DIVISION*93*4922495'
    N3*PURCHASING DEPT, BLD#1479*NAS NORTH ISLAND,'
    N4*SAN DIEGO*CA*92135*US'
    DTM*011*20081016'
    IT1*1*2*EA*151.2**VP*ABCDEF*BP*04989J'
    PID*F****PRODUCT ABCDEF'
    TDS*30240'
    CAD*****UPS'
    CTT*1'
    SE*23*1646'
    GE*1*1646'
    IEA*1*000001646'
    Modified FA, which is not failing
    ISA*00* *00* *01*MY PARTNER'S ID *01*MY id *081015*1341*U*00401*200000541*0*P*|~
    GS*FA*MY PARTNER'S ID*MY ID*20081015*1341*200000541*X*004010~
    ST*997*0661~
    AK1*IN*000001646~ -->Please note, modified AK102 with ISA13
    AK9*A*1*1*1~
    SE*4*0661~
    GE*1*200000541~
    IEA*1*200000541~
    Original FA which is erroring out
    ISA*00* *00* *01*MY PARTNER'S ID *01*MY ID *081015*1341*U*00401*200000541*0*P*|~
    GS*FA*MY PARTNER'S ID*MY ID*20081015*1341*200000541*X*004010~
    ST*997*0661~
    AK1*IN*1646~ --> note AK102 is matching the invoice's GS number
    AK9*A*1*1*1~
    SE*4*0661~
    GE*1*200000541~
    IEA*1*200000541~

  • Problem with Adobe Decoder ST 7.5 - decoding error

    Hi all,
    I have an Adobe LiveCycle Barcoded Forms ST version 7.5 installed on
    Windows XP. While trying to decode a barcoded pdf it logs the following
    AdobeException: "Error in the PDF library."
    The same pdf file is successfully decoded on Adobe LiveCycle Barcoded Forms ST version 7.0.
    I've try to design the barcoded pdf with Adobe Designer 7.1 and 8.0 the decoding error is the same with Adobe Barcoded Forms 7.5.
    I'll be very thankful for any kind of information about it.

    Hi Lee,
    I'm decoding a PDF that was filled, then saved without printing or scanning.
    I create it with Adobe Designer 8.0, after that I'm adding it all rights (including 2D barcode decoding) with ReaderExtension 7.2. During the execution I have an error in the ReaderExtension console - "ERROR: document does not have certifying signature".
    After that I'm filling and saving the extended pdf file with Adobe Reader 7.0.5, then I put the filled file in the input directory of the decoder and I receive the decoder error.
    I'll send you the file.
    Thank you very much.
    Stanislava.
    P.S. The ReaderExtensions and Barcoded Forms Decoder are both installed on Windows XP (one computer).

  • Decoder error on media center

    I have media center for an hp computer: model # m7170N... it will no longer record or play television. The error message: decoder error- video has either malfunctioned or is not installed comes up. how can i fix this??

    Your Microsoft Windows Xp SP3 version value in the registry may be inconsistent or missing ...
     - Please navigate to the following tree in the registry editor and paste the value for "CSDVersion"
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
    The regkey can be accessed by searching for 'CSDVersion' in the registry editor or you could follow the steps below.
    (1) Click 'Start' > choose 'Run'
    (2) type 'regedit' in the run window and click 'ok'. This will open the registry editor
    (3) Navigate the tree to 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
    (4) look in the left side pane and locate 'CSDVersion' and its value.
    And how did your upgrade to SP3 happen? Did it come preinstalled on your machine or have you upgraded it by downloading upgrades from the internet.
    ~S~

  • Ber Decoding error in embedded OCSPResponse

    Hi,
    I'm trying to sign Pdf using iText and I'd like to embed the OCSPResponse in the autheticated attributes of the SignerInfo.
    When  the document is validated online by Reader everything is ok. The  offline certificate status verification is successfull using the  embedded crl, but it fails to check the embedded OCSPResponse because of  "a BER decoding error". I can't figure out what the error is....
    You can download my PKCS7 files (one contains only the OCSP response, the other has both the OCSP and the crl) here:
    http://www.adrive.com/public/e30000d3d7e4b097f7b7733cd35ddb6e3bb3b75c3 538942194461dd755a395ab.html
    http://www.adrive.com/public/21971967c579fc0b065e5e05951fa486309be66ac 844427e367dbbb68a5183aa.html
    Can anybody help me, please?
    Thanks
    Tania

    Hi lizz4321,
    A digital ID is made up of three components; a private key, a corresponding public key, and some identifying information. The keys themselves are pretty straight forward, they are just big blobs of numbers used to encrypt and decrypt data. It's the identifying information that gets a bit tricky. On first look, the identifying information looks like plain text. You'll see your name and the issuer's name, a serial number, some dates for when the validity starts and ends. All pretty straight forward.
    However, all of this information is actually formatted using something called ASN.1 (it stands for Abstract Syntax Notation) and then encoded using BER (Basic Encoding Rules). When someone creates a digital ID they can put just about anything in there. Per specifications (RFC 5280 if you wanted to look it up) some items are required, and others are optional. Each piece of information that goes into the public-key certificate (the PKC is basically the digital ID without the private key) is contained in an extension. These extensions are identified using an OID (Object ID) and conform to a specification which may either be public or confidential.
    There are two possibilities in the case you are seeing. Either, some of the information that Acrobat knows about was formatted or encoded incorrectly, or, there is an optional entry that Acrobat doesn't understand how to decode. My guess is it's the latter possibility. There is a rule that states if an extension is marked as critical, and the application using the public-key certificate (in this case the application would be Acrobat), doesn't understand the extension, then the application is supposed to reject the certificate. It could be the former case (badly formatted data), but without seeing the certificate all I can do is guess.
    Steve

  • Decode error with japanese input

    hi,
    i have no problem displaying japanese text. but i have problem accepting japanese text from my jsp application.
    i got the following error when i submit a form contains japanese text input:
    Error: 500
    Location: /proj/myProj.jsp
    Internal Servlet Error:
    java.lang.IllegalArgumentException: Decode error
         at org.apache.tomcat.util.RequestUtil.unUrlDecode(RequestUtil.java:353)
         at org.apache.tomcat.util.RequestUtil.processFormData(RequestUtil.java:233)
         at org.apache.tomcat.core.RequestImpl.handleParameters(RequestImpl.java:686)
         at org.apache.tomcat.core.RequestImpl.getParameterValues(RequestImpl.java:259)
         at org.apache.tomcat.core.RequestImpl.getParameter(RequestImpl.java:250)
         at org.apache.tomcat.facade.HttpServletRequestFacade.getParameter(HttpServletRequestFacade
    pls advice me what could be the possible error.
    thank u.

    Did you ever have any luck with that? I am having a similiar problem - displaying the Euro sign (�). But it can display it no problem when displaying it from the Database.
    Did anyone ever get a solution?
    Any help is appreciated - thanks Liam.

  • YouTube videos dnt play decode error

    I m using nokia Lumia 720, after windows 8.1cyan update, in YouTube every videos I m facing decode error problem. Plz reply me what is the solution for that.
    Solved!
    Go to Solution.

    Congrats on your first post, manangowda. Have you already tried the solution given by hpholm? When you say "8.1 update", are you referring to the Lumia Cyan update? Does the issue happens to all the videos that you are trying to watch? Also, does it happen regardless of the connection you are using? 
    We'll wait for your response. 

  • MXF decode errors and red frames in exports

    Ever since upgrading to Premiere Pro release 2014.2 (8.2.0 (65) Build) we've been having problems with random red frames appearing in our exports.  These errors are always associated with our Sony PMW-200 media files (.mxf files.)  Red frames during editing happen very rarely, but are usually present in our exports.  For short form work re-exporting the sequence will work sometimes, but may cause red frames to appear elsewhere...  For long form work we've adopted a very lengthy work-around to fix the errors after exporting.
    Phone support recommended deleting the media cache files, but we've tried that and the problem still exists.  This problem is happening with new media that has been imported since the upgrade as well as old media that we imported before the upgrade.  We're editing with many mixed media files all in their native codec and the only media files that get flagged with decode errors are the .mxf files.
    We edit a large volume of work daily and this problem is a huge setback in our confidence with our exports as well as Adobe products.
    For the record were editing with Mac Pros that are about a 3-5 years old with OS X 10.8.5 and an Xsan shared storage system.  We have a Cloud for Teams subscription and all our software is updated frequently.
    Any thoughts would be helpful.  Personally I would love to escalate this problem to a higher level support team.
    Regards,
    Eric

    I have the same problem running Adobe CC on high-end PCs. - My business is smalish, but this leads to having a rather big impact on my confidence.
    MXF-files from Canon C300 and Sony FS7 platforms.
    - With FS7 footage I've had the frames appear throughout a clip with perfect distance (16 frames apart) - when applying Denoiser 2 from Red Giant. - The plugin simply stopped the frames from appearing on a random basis.
    - I've also experienced that when the error was present, dissolves became cuts.
    - I've tried to isolate software/hardware rendering, but it does not seem to change anything to select one over the other.
    I try work around it by rendering uncompressed sections of the timeline and replace it where it works, and then try again and again. - Very time-consuming and cumbersome.
    Best
    Torsten
    Denmark

  • MXF decode error

    When I tried to render my sequence I got an error message.  In Premiere I saw "MXF decode error".
    It only happens on the spots where I used opacity and transitions.
    Deleted cache and all the usual things I could do, but nothing helps.
    Cheers

    Try to convert your MXF files into other format like MPEG. Or just find go for another edit software like FCP X, the 10.1.4 can support MXF files natively and as well as 4K . But if you just get used to this Adobe premiere , here are some free converters for you : Handbrake, ffMPEG(_this one I am not very recommended, it will mess all your original video and database), MPEG Stream clip, any video converter. I used now is this MXF Converter from pav, and the quality is good.

  • PDF decoding error then  data exceeds 99 pages

    Dear all,
    i'm facing a PDF decoding error when as an atachment in a Email.
    I figure that PDF attachment is opening when it HAS less the 100 pages but can not open
    below is the error message when open ADOBE, this happens only when pages are more  than 99.
    "Adobe Reader could not open 'NAME.PDF' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded) "
    can anyone help me please.

    For checking this
    First download using fm GUI_DOWNLOAD as bin (PDF) download to you desktop and open it. if its working then you may need to check settings in SCOT.

  • Help with job scheduling; decode error

    Hi
    Iam trying to change a job that runs my procedure using dbms_job.. Here is the output I got.
    Can someone help me why this is giving me errors.
    <code>
    SQL> exec dbms_job.next_date(395,decode(sign(substr(to_char(sysdate,'dd/mm/yy hh24:mi'),10,2)-17),-1,'trunc(sysdate) +18.5/24',1,'trunc(sysdate)+1+6.5/24'));
    BEGIN dbms_job.next_date(395,decode(sign(substr(to_char(sysdate,'dd/mm/yy hh24:mi'),10,2)-17),-1,'trunc(sysdate) +18.5/24',1,'trunc(sysdate)+1+6.5/24')); END;
    ERROR at line 1:
    ORA-06550: line 1, column 30:
    PLS-00204: function or pseudo-column 'DECODE' may be used inside a SQL
    statement only
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    </code>
    Thanks in advance

    I'm not sure what you're trying to achieve.
    Is this a one time action or do you want to run this statement on a regular basis?
    How about this:
    begin
      if ( to_number(to_char(sysdate,'hh24')) <= 17 ) then
        dbms_job.next_date(395, 'trunc(sysdate)+18.5/24');
      else
        dbms_job.next_date(395, 'trunc(sysdate)+1+6.5/24');
      end if;
    end;

Maybe you are looking for

  • Question regarding ScrollView and pageControl with multiple XIBs

    Hi, I am very new to iPhone programmming and OO type programming in general so please forgive me for my basic questions. I am trying to set a paging scrollview up with each page being loaded from a different XIB and put into a view controller. This v

  • MAC powerpc MIME not working with latest update

    i have installed the latest flash player and upon doing that i go to youtube.com but i get a pop up saying content of MIME type "application/x-shockwave-flash". Because you don't have a plug-in installed for this MIME type, this content can't be disp

  • Events in TAble Maintenance

    I am using a FORM routine of Maintenance type as 05 - Create New Entry. Here when ever a new entry is made i am using the code as below.   CALL FUNCTION 'UIPW_ENCRYPT'     EXPORTING       i_pw_decr = ztest_tm_logins-password     CHANGING       x_pw_e

  • Printing w/ Scale Width & Height Setting?

    With CS4 and CS5. When I put in a percentage in the Height Box and then Print the InDesign document, InDesign remembers the percentage. But when I put a percentage in the Width Box InDesign does not remember the number, ie, if I put in 98.52% it reve

  • IMP: When will go HTTP and When we will go for SOAP????

    Hey Experts, Here i have requirement like that, I want to syn the date from SAP to external applications eg.., dot net So here which adapter i need to use here ,Either HTTP or SOAP?? When we will go for Http and when we will go SOAP ? and which suits