Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to remove '+' sign in the SYSLOG message
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Thiru Chandira Moorthi

New User


Joined: 20 Jun 2007
Posts: 29
Location: chennai

PostPosted: Tue Jun 17, 2008 7:07 pm    Post subject: How to remove '+' sign in the SYSLOG message
Reply with quote

I am sending a message to the SYSLOG through a program. The message is displayed with a prefix of '+'

for eg:

+IKJ999A THIS IS A TEST MESSAGE

Is there any way to remove this prefix('+' sign)
Back to top
View user's profile Send private message

UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Tue Jun 17, 2008 7:17 pm    Post subject:
Reply with quote

Hi !

How are you sending the message. Using Assembler WTO ???
Back to top
View user's profile Send private message
Thiru Chandira Moorthi

New User


Joined: 20 Jun 2007
Posts: 29
Location: chennai

PostPosted: Tue Jun 17, 2008 7:22 pm    Post subject:
Reply with quote

hi

I am using macro to send a meaaasge.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Tue Jun 17, 2008 7:27 pm    Post subject:
Reply with quote

The + is a printer control character!
Back to top
View user's profile Send private message
Thiru Chandira Moorthi

New User


Joined: 20 Jun 2007
Posts: 29
Location: chennai

PostPosted: Tue Jun 17, 2008 7:31 pm    Post subject:
Reply with quote

ok.
how to remove remove this character while sending a message to syslog.
is it posible?
Back to top
View user's profile Send private message
Thiru Chandira Moorthi

New User


Joined: 20 Jun 2007
Posts: 29
Location: chennai

PostPosted: Wed Jun 18, 2008 12:59 pm    Post subject:
Reply with quote

Thanks to all.
Back to top
View user's profile Send private message
Thiru Chandira Moorthi

New User


Joined: 20 Jun 2007
Posts: 29
Location: chennai

PostPosted: Wed Jun 18, 2008 1:20 pm    Post subject:
Reply with quote

this is not yet resolved.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Wed Jun 18, 2008 1:56 pm    Post subject:
Reply with quote

Morning Sir !

No chance to eliminate that sign. Its system related when Messages from programms are send to Console.

When you issue a WTO with three plus-signs, four will be in the JesLog.

Example:

TRACEMSG_STRT DS 0H
MVC WTO+31(03),=C'123'
WTO WTO '+++ MDL10030 TRACE-MSG-XXX ',ROUTCDE=11
B TRACEMSG_EXIT

JesLog:

10.10.43 JOB56243 -J120830X STEP010 00
017 Jobname: J120830X Stepname: STEP050
017 Requested Size below Limit below
017 0 8704000 8806400
10.11.20 JOB56243 ++++ MDL10030 TRACE-MSG-123
10.11.32 JOB56243 ++++ MDL10030 TRACE-MSG-123
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Wed Jun 18, 2008 2:07 pm    Post subject:
Reply with quote

@Craq !

Shure about the printer-sign ???

By looking at the JesLog it seams to be right in the middle of the text. And CarridgeControl is just at line-beginning.There are ASA-Signs there.


1 J E S 2 J O B L O G -- S Y S T E M M T
0
10.10.42 JOB56243 ---- WEDNESDAY, 18 JUN 2008 ----
10.10.42 JOB56243 IRR010I USERID J120830 IS ASSIGNED TO THIS J
10.10.42 JOB56243 ICH70001I J120830 LAST ACCESS AT 09:57:48 ON
10.10.42 JOB56243 $HASP373 J120830X STARTED - INIT 436 - CLASS

The plus-sign is just at the same position, where the dash-sign is, when Line with JobName is printet. Also same Position as $ when HASP is printed. Seams to be JES specific.

10.10.43 JOB56243 -J120830X STEP010 00 15
10.11.20 JOB56243 ++++ MDL10030 TRACE-MSG-123
Back to top
View user's profile Send private message
Thiru Chandira Moorthi

New User


Joined: 20 Jun 2007
Posts: 29
Location: chennai

PostPosted: Wed Jun 18, 2008 2:29 pm    Post subject:
Reply with quote

Thanks UmeySan.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Jun 18, 2008 7:44 pm    Post subject:
Reply with quote

The trainee forum had this same topic submitted by Dolby and an informative post from Mr Spock. He said when using the WTO macro to write to SYSLOG, an APF-authorized pgm does not add the '+' to the message! I tested and confirmed his solution.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Wed Jun 18, 2008 7:47 pm    Post subject: Reply to: How to remove '+' sign in the SYSLOG message
Reply with quote

Yep. We had this problem when our team asked the Sysprog's to provide a utility to us that we could use to create test system messages for automation. It wouldn't work without the proper APF authorization of their module.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 743
Location: Germany

PostPosted: Wed Jun 18, 2008 8:02 pm    Post subject:
Reply with quote

Hi !

APF-Authorization, that's the point !!!
Back to top
View user's profile Send private message
Thiru Chandira Moorthi

New User


Joined: 20 Jun 2007
Posts: 29
Location: chennai

PostPosted: Wed Jun 18, 2008 9:41 pm    Post subject:
Reply with quote

i am not getting the exact output.

i dynamically added my pds member in apf library.
i executed my program but still i'm getting '+' sign.
Back to top
View user's profile Send private message
Thiru Chandira Moorthi

New User


Joined: 20 Jun 2007
Posts: 29
Location: chennai

PostPosted: Wed Jun 18, 2008 9:43 pm    Post subject:
Reply with quote

do i need to add this pds in to linklst also?
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Jun 18, 2008 11:01 pm    Post subject:
Reply with quote

It's more than the APF load library. The module needs the "authorized" flag turned on. Re-link with AC=1 added to the LKED PARM.
Back to top
View user's profile Send private message
Thiru Chandira Moorthi

New User


Joined: 20 Jun 2007
Posts: 29
Location: chennai

PostPosted: Thu Jun 19, 2008 11:42 am    Post subject:
Reply with quote

I am not getting your point clearly.

can please explain the steps of using the above mentioned process.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Jun 19, 2008 12:18 pm    Post subject:
Reply with quote

Hello,

Please talk with your system programmer(s) or other technical support people.

Most organizations do not permit developers to create "authorized" modules. If you do not understand what apf-authorized is about, you can ask this of the same people.
Back to top
View user's profile Send private message
Thiru Chandira Moorthi

New User


Joined: 20 Jun 2007
Posts: 29
Location: chennai

PostPosted: Thu Jun 19, 2008 12:44 pm    Post subject: Reply to: How to remove '+' sign in the SYSLOG message
Reply with quote

hello,

I already added that pds in to APF library.
Dont bother about security issues.
That pds is having program modulle.

Now i am sending a message to syslog but is having '+' sign.

ex:

+TEST01I EXAMPLE

Before adding this module in to APF also i was getting same result.
Back to top
View user's profile Send private message
Thiru Chandira Moorthi

New User


Joined: 20 Jun 2007
Posts: 29
Location: chennai

PostPosted: Thu Jun 19, 2008 12:48 pm    Post subject:
Reply with quote

@ dick scherrer

I suppose, without knowing APF authorized I could not add this pds to the library.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Truncated error message after VERIFY ... David Sde TSO/ISPF 4 Mon Sep 05, 2016 11:26 pm
No new posts Remove Special Characters from Mainfr... Rodger Zhang All Other Mainframe Topics 6 Wed Jul 06, 2016 1:12 am
No new posts IEC999I MESSAGE ERROR Manshadi ABENDS & Debugging 3 Sun Apr 17, 2016 3:43 pm
No new posts Remove header only knobi SYNCSORT 5 Mon Feb 15, 2016 10:42 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us