MQSeries---to remove the first message from queue

Hi all,
I have some question in MQSeries in Sun Solaris.
I would like to ask if there are any command in runmqsc that can remove the first message only? I know the command 'CLEAR QLOCAL' but it removes all the messages inside the queue but not only the first one.
Thanks a lot.
Jane.

You might have more luck with pure MQSeries questions on www.mqseries.net

Similar Messages

  • How to remove the first number from a queue?

    Hi,
    I am trying to implement the following code for a queue. I've made an attempt on the RemoveFromQueue method, but it doesn't seem to work. How would i correctly be able the method for it to be able to remove the first number from the queue? thanks.
      if (q.QueueIsEmpty())
            System.out.println("Queue empty");
      else
             int firstEntry = q.RemoveFromQueue();     
                  System.out.println("Integer extracted  : "  + firstEntry);
    int RemoveFromQueue ()
             if (QueueIsEmpty())
                   return false;
             else
                  for(i=1; i <= total; i++)
                        Queue[i-1] = Queue;
                         total--;
                         return -1;
    }

    int RemoveFromQueue ()
    if (QueueIsEmpty())
    return false;
         else
         for(i=1; i <= total; i++)
         Queue[i-1] = Queue;
         total--;
         return -1;
    }Here we go:
    1) if the queue is empty you attempt to return 'false' while the method itself is
    supposed to return an int.
    2) you attempt to assign an entire queue to a single queue element.
    3) your indentation is a mess.
    4) why do you test for an empty queue outside of that method?
    5) use pencil and paper and scribble down exactly what you want to do.
    6) don't use initial uppercase letters for method names.
    kind regards,
    Jos

  • How do I remove the text message from my iPad

    Someone please help, I am a teacher and I use an iPad in my classroom. I just purchased my first iPhone, but somehow, some icons from my phone appear on my iPad. The main one that worries me is my text messaging. I need to remove the text messaging from my iPad.

    Hi, Srta. Sunshine. 
    Thank you for using Apple Support Communities. 
    I would recommend signing out of iMessage or turning this feature off on your iPad.  You can sign out of iMessage by selecting Settings > Messages > Send & Receive > Select Your Apple ID > Sign Out.  Or you can turn off iMessage by selecting Settings > Messages and turn iMessage off. 
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/ts4268
    Cheers,
    Jason H. 

  • Need help with java File IO ( Removing the first line from a file )

    Hi guys ,
    I am currently doing a project in which I need to extract out the values from the second line of a file to the end. The question is how do I ignore the first line ??
    I thought of two possible answers myself. One is to use randomaccessfile to read and rewrite. But the file may be HUGE so storing the whole file in memory is not a very good idea.
    Second is to jump to second line before doing while ((str = in.readLine()) != EOL) ... or just delete the first line from the file. Can anyone suggest a better solution or show me some sample codes ? Thanks.
    regards
    billyam

    Just skip the first line (bufferedReader.readLine()), add a comment, and then handle the rest of your file

  • MQ Adapter does not clear the rejected message from the queue

    Hi All,
    I'm using a MQ Adapter to fetch the message from the queue without any Backout queue configured. However, whenever there is any bad structured message found in the queue, MQ adapter rejects the message and moves the message to the rejmsg folder but does not clear it off the queue, as a result of which it keeps retrying the same hence, filling the logs and the physical memory. Somehow we do not have any backout queue configured so I can move the message to blackout queue. I have tried configuring the jca retry properties and global jca retry as well but to no avail.
    - Is it not the default behaviour of MQ Adapter to remove the rejected message from the queue irrespective of Backout queue is configured or not? The same behaviour working well with the JMS and File Adapter though.
    - Is there any way I can make MQ Adapter delete the message from that queue once it is rejected?
    Regards,
    Neeraj Sehgal

    Hi Jayson,
    Check this URL which answers a problem with com.sap.engine.boot.loader.ResourceMultiParentClassLoader problem:
    http://209.85.175.132/search?q=cache:RnFZ9viwuKkJ:https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.sdn.folder.sdn!2fcom.sap.sdn.folder.application!2fcom.sap.sdn.folder.roles!2fcom.sap.sdn.folder.navigationroles!2fcom.sap.sdn.role.anonymous!2fcom.sap.sdn.tln.workset.forums!2fforumtest!2fcom.sap.sdn.app.iview.forumthread%3FQuickLink%3Dthread%26tstart%3D45%26threadID%3D1020700+com.sap.engine.boot.loader.ResourceMultiParentClassLoader&hl=en&ct=clnk&cd=3&gl=in&client=firefox-a
    Please check that the JDK compliance level is at 5.0
    Window->Preferences->Java->Compiler->Compiler compliance level set this to 5.0
    Set the installed JRE to the one you have mentioned JDK 5.0 update 16
    Window->Preferences->Java->Installed JRE's->
    Click on the add button to select the path of your JDK.
    once completed click on the check box next to it.
    regards,
    AKD

  • How to delete the first page from a large number of documents

    Hello all,
    My company has migrated from Adobe Acrobat pro 8 to 11. In version 8 we had
    used Document Processing to remove the first page from all pdf's within a
    directory (5000+). This process took about an hour.
    Now my research has led me to use Actions in version 11, however it appears
    that the action require each document to be open and saved (one after another)
    in Acrobat in order for the first page to be removed.  This thrashing has made this process very
    slow to the point where it's useable.
    Is there any way to run actions from the command line
    so time isn't wasted opening up each document in Acrobat? 
    Is there another way to quickly remove the first page
    from a PDF in bulk?
    I'm outside my expertise area here, so if you need any additional
    information let me know.
    Thanks in advance.

    Indeed, batch processing in Acrobat XI is inferior in many ways to what it was previously.
    To answer your questions:
    1. No.
    2. Yes, it can be done using a stand-alone app much more quickly and more efficiently, but it's somewhat more complicated to develop such an app than to set up an Action in Acrobat.

  • How can I remove the page number from the first page of the document that is the cover page?

    How can I remove the page number from the first page of the document that is the cover page?

    If you open the Pages panel, (Window>Pages) you will see thumbnails of your master pages and your document pages. In new documents, there is usually a master called A-Master and one called None. If you drag the thumbnail of the None master onto the thumbnail of a document page, it will apply that master to that page. Presumably, you have made your page numbers on A-Master, so this will usually do the trick. If you have elements on A-Master that you need on the first page, but just not the page number, you can duplicate A-Master (which, by default will give you B-Master, but you can change the names if you like) and remove the page number on the duplicate and apply that to the document page.
    It might also be worth noting that you can apply master pages in the fly-out of the Pages panel. Go to the fly-out triangle and go down to Apply Master to Pages…, then select a master to apply and the range of pages (1-8 will give you all 8, 1, 3, 5, 7 will be the odds, 1-3, 4, 6-8 if you want continuous ranges and individual pages).

  • How can i remove the phone number from the text messages that i receive in the notification center

    how can i remove the phone number from the text messages that i receive in the notification center?

    You choose whether to see text messages in Notification Center or not.  If you elect to see them, they will display the phone number (unless they are from a contact in your contacts list).
    You can choose not to see them at Settings > Notification Center > Messages.

  • DVD Studio burning problem error message: "remove the VIDEO_TS folder from the Build Location"; where is build location

    DVD Studio burning problem error message: "remove the VIDEO_TS folder from the Build Location"; where is build location?

    Thanks Shane I followed your instructions and it turned out pretty well. One quick question, Im working with DVD Studio Pro 4, how do i implement a theme into my project? I cant even fin where thay are located. Thanks.

  • Code to Retrieve the message from Queue in Oracle BPEL

    Actually I am placing the Message into JMS Queue using JMS Adapter.After Placing the message,I need to retrieve the placed message from same queue.
    Right now I am using the Receive Activity and the JMS Adapter to retrieve the message from Queue.But my receive activity is always in the waiting state itself and I am not able to retrieve the message from queue.What might be the issue????
    Can anybody give me a better suggestion so that I can go ahead??
    Thanks in advance for your help.

    Hi Raja,
    Is the process a empty bpel process which is used to get the message from the MQ?
    Regards
    Surya

  • HT1277 How do I make Mail remove junk/deleted messages from the server? The only option tht works for me now is the "Remove from server" button at Account Info Messages on server.

    How do I make Mail remove junk/deleted messages from the server? The only option tht works for me now is the "Remove from server" button at Account Info > Messages on server. What am I doing wrong?

    Mail > Preferences… > Accounts > Advanced > Remove copy from server after retrieving a message

  • When starting a Lync group message from a Mac, anyone else using a Mac cannot see the first message.

    When a group conversation is started from a Mac, any other Mac user will not see the first message unless they reply to the message immediately.  Here's what I've tested:
    Mac User 1 starts a group conversation with 4 people invited.
    Mac User 2 sees the popup but does not immediately open the conversation window.
    PC User 1 opens the conversation window and sends a reply.
    PC User 2 opens the conversation window and sees all the text.
    Mac User 2 finally opens the window about 30 seconds later and can see all text except the first message.
    Why does the first message disappear for Mac User 2?  
    Note:  This does not happen if the original message was started from a PC, in that case Mac User 2 would be able to see the first message.
    Thank you for any help.

    Hi,
    Did the issue happen only for single Mac computer or for multiple computers?
    Please try to login Lync client on another Mac computer with the same Lync account and test again.
    Please also try to login Lync client on the issued Mac computer with other Lync account and test again.
    Please check if the Lync client on Mac computer update to the latest version, if not, please update to the latest version.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • How to get the XML messages from JMS Queue in BPM

    I have one requirement in my application.we are sending XML messages to the JMS Queue.How to get the XML messages from JMS Queue and how to Extract the details from XMl.
    can you please send me the code to get the XML messages from the JMS Queue.
    Thank you,

    Hi,
    Sure others will have some other ideas, but here's what I typically do to get the XML from a JMS queue. Inside the Global Automatic that pops the messages off the queue you'd have logic similar to this:
    artifactInfoNodes as Any[]
    xmlObject as Fuego.Xml.XMLObject = XMLObject()
    load xmlObject using xmlText = message.textValue
    . . . Once you have this, it's a matter of deciding what you want to do with the message. Most times you'll parse the XML (using XPATH statemens), set argument variables and create a work item instance.
    Hope this helps,
    Dan

  • Unable to delete messages from queue.

    I have a journaling rule setup to send mail to a archive appliance. I have two messages in my queue that are From Address:<>  to my recipient (my archiver's email address). The journal rule works fine since it is working for all my users mail, but I have two messages stuck in my queue complaining that they could not be categorized and an event 9213 for MSExchangeTransport every 30 minutes. 
    "A non-expirable message with the internal message ID 7996 could not be categorized. This message may be a journal report or other system message. The message will remain in the queue until administrative action is taken to resolve the error. Other messages may also have encountered this error. To further diagnose the error, use the Queue Viewer or the Mail Flow Troubleshooter."
    I have tried via the GUI and Shell to remove these two messages. The GUI gives me an error:
    Microsoft Exchange Error
    Action 'Remove (with NDR)' could not be performed on object 'RE: Test to determine if email can be delivered & Received'.
    RE: Test to determine if email can be delivered & Received
    Failed
    Error:
    The requested operation can't be performed for the object with identity MyMailServerName\Submission\7999.
    OK
    The Shell will actually not report back an error but I still have those messages in the queue. The command to see info about the message was:
    Get-Message -IncludeRecipientInfo | Where { $_.Recipients -Like "*[email protected]*" } | Format-List
    Then I tried deleting the message using the "InternetMessageID" info I gathered from this.
    Remove-Message -Filter {InternetMessageID -eq "[email protected]"} -WithNDR $false
    This prompts me for a Yes, No, etc... responce (I thought I had it this time) and gave me no error, but the message still resides in queue.
    I am at a loss. Any help?

    Correct, two messages stuck in queue and cannot remove.
    Environment is a Windows 2003 R2 w/ SP2 64bit server, Exchange 2007 SP1 with all roles, AD/DNS is also Windows 2003 R2 w/ SP2 64bit.
    This just seemed to start happening a few days ago and just with these two particular messages. I have a archive appliance from ArcMail and a journal rule setup in Exchange to journal all mail to the ArcMail appliance. This has been working and continues to work except for these two messages. 
    [PS] C:\>Get-Message -IncludeRecipientInfo | Where { $_.Recipients -Like "*[email protected]*" } | Format-List
    Identity          : CO-MAIL1\Submission\7996
    Subject           : RE: Test to determine if email can be delivered & Received
    InternetMessageId : <[email protected]>
    FromAddress       : <>
    Status            : Retry
    Size              : 29638B
    MessageSourceName : Journaling
    SourceIP          : 255.255.255.255
    SCL               : 0
    DateReceived      : 9/18/2008 1:39:34 PM
    ExpirationTime    :
    LastError         : Categorization failed. The message will be deferred and ret
                        ried because it was marked for retry if rejected.
    RetryCount        : 0
    Queue             : CO-MAIL1\Submission
    Recipients        : {[email protected]}
    IsValid           : True
    ObjectState       : Unchanged
    Identity          : CO-MAIL1\Submission\7999
    Subject           : RE: Test to determine if email can be delivered & Received
    InternetMessageId : <[email protected]>
    FromAddress       : <>
    Status            : Retry
    Size              : 29623B
    MessageSourceName : Journaling
    SourceIP          : 255.255.255.255
    SCL               : 0
    DateReceived      : 9/18/2008 1:39:34 PM
    ExpirationTime    :
    LastError         : Categorization failed. The message will be deferred and ret
                        ried because it was marked for retry if rejected.
    RetryCount        : 0
    Queue             : CO-MAIL1\Submission
    Recipients        : {[email protected]}
    IsValid           : True
    ObjectState       : Unchanged
    Domain Controller Diagnosis
    Performing initial setup:
       Done gathering initial info.
    Doing initial required tests
       Testing server: co-site\CO-DNS1
          Starting test: Connectivity
             ......................... CO-DNS1 passed test Connectivity
    Doing primary tests
       Testing server: co-site\CO-DNS1
          Starting test: Replications
             ......................... CO-DNS1 passed test Replications
          Starting test: NCSecDesc
             ......................... CO-DNS1 passed test NCSecDesc
          Starting test: NetLogons
             ......................... CO-DNS1 passed test NetLogons
          Starting test: Advertising
             ......................... CO-DNS1 passed test Advertising
          Starting test: KnowsOfRoleHolders
             ......................... CO-DNS1 passed test KnowsOfRoleHolders
          Starting test: RidManager
             ......................... CO-DNS1 passed test RidManager
          Starting test: MachineAccount
             ......................... CO-DNS1 passed test MachineAccount
          Starting test: Services
             ......................... CO-DNS1 passed test Services
          Starting test: ObjectsReplicated
             ......................... CO-DNS1 passed test ObjectsReplicated
          Starting test: frssysvol
             ......................... CO-DNS1 passed test frssysvol
          Starting test: frsevent
             ......................... CO-DNS1 passed test frsevent
          Starting test: kccevent
             ......................... CO-DNS1 passed test kccevent
          Starting test: systemlog
             ......................... CO-DNS1 passed test systemlog
          Starting test: VerifyReferences
             ......................... CO-DNS1 passed test VerifyReferences
       Running partition tests on : ForestDnsZones
          Starting test: CrossRefValidation
             ......................... ForestDnsZones passed test CrossRefValidation
          Starting test: CheckSDRefDom
             ......................... ForestDnsZones passed test CheckSDRefDom
       Running partition tests on : DomainDnsZones
          Starting test: CrossRefValidation
             ......................... DomainDnsZones passed test CrossRefValidation
          Starting test: CheckSDRefDom
             ......................... DomainDnsZones passed test CheckSDRefDom
       Running partition tests on : Schema
          Starting test: CrossRefValidation
             ......................... Schema passed test CrossRefValidation
          Starting test: CheckSDRefDom
             ......................... Schema passed test CheckSDRefDom
       Running partition tests on : Configuration
          Starting test: CrossRefValidation
             ......................... Configuration passed test CrossRefValidation
          Starting test: CheckSDRefDom
             ......................... Configuration passed test CheckSDRefDom
       Running partition tests on : lcsd
          Starting test: CrossRefValidation
             ......................... lcsd passed test CrossRefValidation
          Starting test: CheckSDRefDom
             ......................... lcsd passed test CheckSDRefDom
       Running enterprise tests on : lcsd.local
          Starting test: Intersite
             ......................... lcsd.local passed test Intersite
          Starting test: FsmoCheck
             ......................... lcsd.local passed test FsmoCheck
    [PS] C:\>Remove-Message -filter {FromAddress -eq "<>"} -withNDR $false -debug -verbose
    VERBOSE: Remove-Message : Beginning processing.
    Confirm
    Are you sure you want to perform this action?
    Removing the messages that match filter "FromAddress -eq "<>"".
    Yes  Yes to All  No  [L] No to All  Suspend  [?] Help
    (default is "Y"):Y
    VERBOSE: Remove-Message : Ending processing.
    [PS] C:\>Remove-Message -Filter {InternetMessageID -eq "[email protected]"} -WithNDR $false -debug -verbose
    VERBOSE: Remove-Message : Beginning processing.
    Confirm
    Are you sure you want to perform this action?
    Removing the messages that match filter "InternetMessageID -eq
    "[email protected]"".
    Yes  Yes to All  No  [L] No to All  Suspend  [?] Help
    (default is "Y"):Y
    VERBOSE: Remove-Message : Ending processing.
    [PS] C:\>Remove-Message -filter {FromAddress -eq ""} -withNDR $false -debug -ver
    bose
    VERBOSE: Remove-Message : Beginning processing.
    Confirm
    Are you sure you want to perform this action?
    Removing the messages that match filter "FromAddress -eq """.
    Yes  Yes to All  No  [L] No to All  Suspend  [?] Help
    (default is "Y"):Y
    VERBOSE: Remove-Message : Ending processing.
    [PS] C:\>
    Tried several filter options and all had the same result. No events in the event viewer and did not remove the stuck messages.

  • How do I remove the coloured bars from running down the side of my emails.

    How do I remove the coloured bars from running down the side of my emails.

    Hi
    The setting I have in Composing are-
    Composing
    Message Format - Rich Text
    In addressingonly have  tick in When sending to a group
    Responding - tick only the first two boxes
    Last only the bullet for Include selected text
    Hope htis helps

Maybe you are looking for

  • Error message with PCR.

    The logic of PCR is as follows : Compute 15% of /117.And assign this to WT 1223. Compute 27% of /117 Subtract Wt /3F4,MF10,9805,9809 and 9810 from 27% of /117.Assign this to WT 1224. I have written a PCR which is giving an output error message : ****

  • Macbook hardisk ticking, is my hardisk almost dead?

    I have an Alu Unibody Macbook.. Been taking good care of it over the past 3-4 months..Yesterday I had the lid closed and it was sleeping..I lifted the lid and I got the rainbow wheel..My hardisk then began to tick loudly until it stopped. I closed th

  • Dependent characteristic specifications

    We maintain dependent characteristic specifications based on material, plant, and vendor for an inspection plan.   Each time a new entry is created, the SAP assigned dependent characteristic specs. number (PLMW-ZUORDNR) is incremented by 10.   So the

  • Extracting Images from EPS - Problem with the Output

    Hello, I got a big problem extracting images from an EPS, which has been made in InDesign. The image does not appear correct. Source code: %ALDImageFileName: Speicher:image.jpg %ALDImageDimensions: 30 30 %ALDImageCropRect: 0 0 30 30 %ALDImageCropFixe

  • LPA Schedule Agreement

    Hi 1 Using LPA SA, Does allowed to make the MRP generated schedule lines delivery date manually ?. Prior to release or after the release before GR. 2  Even throug first time released prior to GR can i make again change in delivery date and re-release