IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to remove '+' sign in the SYSLOG message


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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: 771
Location: Germany

PostPosted: Tue Jun 17, 2008 7:17 pm
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
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
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
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
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
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: 771
Location: Germany

PostPosted: Wed Jun 18, 2008 1:56 pm
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: 771
Location: Germany

PostPosted: Wed Jun 18, 2008 2:07 pm
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
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
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

Global Moderator


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

PostPosted: Wed Jun 18, 2008 7:47 pm
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: 771
Location: Germany

PostPosted: Wed Jun 18, 2008 8:02 pm
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
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
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
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
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

Moderator Emeritus


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

PostPosted: Thu Jun 19, 2008 12:18 pm
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
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
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
Thiru Chandira Moorthi

New User


Joined: 20 Jun 2007
Posts: 29
Location: chennai

PostPosted: Thu Jun 19, 2008 12:51 pm
Reply with quote

This is what i could not understand.
Quote:
Re-link with AC=1 added to the LKED PARM
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Thu Jun 19, 2008 1:11 pm
Reply with quote

Quote:
Dont bother about security issues.


It would be wise on your side to understand what APF(*) means,
and what are the security exposure related to it

the security issues are not related to datset access,
but to the damages which can be done by improper use/erroneous coding
of an APF program

for example an APF program might overwrite crucial system areas

(*) APF - Authorized Program Facility
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Jun 19, 2008 2:56 pm
Reply with quote

Morning Lady's !

I suppose, without beeing authorized,Thiru Chandira Moorthi could not have added the module to the APF-Lib. Otherwise we have to put a question mark over the whole company he's working for. Then, would be nice to work over there :-)

Also looking at his other posts, it seams, that he is working in the authorized Group, to do the things he does.

So why beating around the bush! I think, Bill Dennis got to the point!!!
So, Mr. Thiru Chandira Moorthi, what is what you do not understand???

Just for disambiguation, and for all the other poor creatures out there in the universe, who don't know about what we are talking, when we're discussing this APF and behave like mystery-mongers, and because of having enough time here and getting well paid for distributing my spiritually wisdoms instead of working hard on the projekt:

APF is used to allow the installation to identify system or user programs that can use sensitive system functions. To maintain system security and integrity, a program must be authorized by the APF before it can access restricted functions, such as supervisor calls (SVC) or SVC paths. APF helps to avoid integrity exposures; the installation identifies which libraries contain special functions or programs. These libraries are then called APF libraries.

An authorized program can do virtually anything that it wants. It is essentially an extension of the operating system. It can put itself into supervisor state or a system key. It can modify system control blocks. It can execute privileged instructions (while in supervisor state). It can turn off logging to cover its tracks. Clearly, this authorization must be given out sparingly and monitored carefully.

APF programms have following characteristics:

they runs in supervisor state, bit 15 of the PSW is zero

run with PSW key 0 to 7, bits 8 through 11 of the PSW contain a value in the range 0 to 7

By the way, other outstanding definitions for APF are:

APF Atomic Packing Factor (fraction unit cell occupied by atoms)
APF American Philatelic Foundation (Los Angeles, California)
APF Auxiliary Particle Filter

And last but not least:

APF Air Procedures Flight, Ramstein Air Base Germany
...had been there working for the nato years ago


Oh good, I love that job. I Think, i have to thank you ervery day for having the chance and personal liberty to what i do. There are only a chosen few out there, getting princely paid for all this feeblemindedness.

Sorry, sometimes my gift for writing poetry just to gains the mastery.

Have a nice day,
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 3:52 pm
Reply with quote

Hello all,

I am having access to give SETPROG command.
I have a authorised ID.
I just want to conform whether we can remove '+' sign or not.
If we can, I want to know the process.
Quote:
Re-link with AC=1 added to the LKED PARM

I am not clear about where to give this AC and also just adding the module of the program to APF, it is not giving the desired output.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


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

PostPosted: Thu Jun 19, 2008 6:44 pm
Reply with quote

thiru,

not all programs in an APF library are authorized. they are only eligible to get authorized.

the program you are executing was assembled/compiled and link edited prior to execution. find this job and examine the link edit step for the PARM options. rerun the job adding the additional parm value and check the step output for a message indicating the module is now APF authorized.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
This topic is locked: you cannot edit posts or make replies. how can I proof that message was post... Java & MQSeries 1
No new posts Remove leading zeroes SYNCSORT 4
No new posts IMS Message : DFS3577A IMS DB/DC 4
No new posts dsnrexx fails without error message CLIST & REXX 9
Search our Forums:

Back to Top