× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



If those values look okay, all I can suggest is to turn on tracing and/or
post in the JT400 forum.  Please let us know what the problem was.

Thanks,
Gary

> -----Original Message-----
> From: java400-l-bounces@xxxxxxxxxxxx 
> [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Ali Ekinci
> Sent: Monday, April 12, 2004 6:38 AM
> To: Java Programming on and around the iSeries / AS400
> Subject: RE: Message substitution data and creating indexes
> 
> 
> Thanks Gary,
> Can you be more specific about what you are wanting to see?  
> Message ID, text, severity second level text (i.e. help) all 
> retrieve meaningful, correct strings for me.  Its just the 
> substitution data which always returns null.
> 
> 
>  -----Original Message-----
> From:         Gary L Peskin [mailto:garyp@xxxxxxxxxxxx] 
> Sent: Sunday, April 11, 2004 2:17 AM
> To:   'Java Programming on and around the iSeries / AS400'
> Subject:      RE: Message substitution data and creating indexes
> 
> Can you show us a printout including retrieving and printing 
> the following attributes for each message in the loop:
> 
>   MESSAGE_ID
>   MESSAGE_TEXT
>   SUBSTITUTION_DATA
> 
> Thanks,
> Gary
> 
> > -----Original Message-----
> > From: java400-l-bounces@xxxxxxxxxxxx
> > [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Ali Ekinci
> > Sent: Saturday, April 10, 2004 3:29 PM
> > To: java400-l@xxxxxxxxxxxx
> > Subject: re: Message substitution data and creating indexes
> > 
> > 
> > I am trying to retrieve the substitution data from an
> > RQueuedMessage, but all I ever get is for the substitution 
> > data is null.   Here is the code I am using...
> > 
> >     try {             
> >       RJobLog wJobLog = new RJobLog(pAS400, pJobName,
> > pUserName, pJobNumber);
> >       wJobLog.setSelectionValue(RJobLog.STARTING_MESSAGE_KEY, 
> > RJobLog.OLDEST);
> >       wJobLog.open();
> >       wJobLog.waitForComplete();
> >       long wNumberOfMessages = wJobLog.getListLength();
> >       for(long wI = 0; wI < wNumberOfMessages; ++wI) {
> >         RQueuedMessage wQMsg = 
> (RQueuedMessage)wJobLog.resourceAt(wI);
> >         wQMsg.load(MessageFile.SUBSTITUTE_FORMATTING_CHARACTERS);
> > //        wQMsg.load(MessageFile.NO_FORMATTING);
> > //        wQMsg.load(MessageFile.RETURN_FORMATTING_CHARACTERS);
> >         byte[] wSD = 
> > (byte[])wQMsg.getAttributeValue(wQMsg.SUBSTITUTION_DATA);
> >         System.out.println("Substitution data is always null: 
> > " + wSD);
> >       }
> >       wJobLog.close();    
> >     } catch (Exception wExc) {
> >       wExc.printStackTrace();
> >     }
> > 
> > The substitution data is always null (not an empty byte
> > array).  I have tried all three of the load constants, which 
> > by the way they seem to have no effect on the formatting of 
> > the second level text either.
> > 
> > While I'm searching for answers let me ask another question.
> > The reason I am doing this is I want to hunt down message 
> > CPI432F, which states an Access path is suggested.   I then 
> > want to construct an index with information from the 
> > substitution data.  I would sure think that I am re-inventing 
> > the wheel on this task.   Can anyone reference me to some 
> > existing code to accomplish this?
> > 
> > Thanks for any help in advance.
> > 
> > _______________________________________________
> > This is the Java Programming on and around the iSeries /
> > AS400 (JAVA400-L) mailing list To post a message email: 
> > JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change 
> > list options,
> > visit: http://lists.midrange.com/mailman/listinfo/java400-l
> > or email: JAVA400-L-request@xxxxxxxxxxxx
> > Before posting, please take a moment to review the archives
> > at http://archive.midrange.com/java400-l.
> > 
> 
> _______________________________________________
> This is the Java Programming on and around the iSeries / 
> AS400 (JAVA400-L) mailing list
> To post a message email: JAVA400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.
> 
> 
> 
> 
> _______________________________________________
> This is the Java Programming on and around the iSeries / 
> AS400 (JAVA400-L) mailing list
> To post a message email: JAVA400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.
> 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.