View previous topic :: View next topic
|
Author |
Message |
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
How are you sending the message. Using Assembler WTO ??? |
|
Back to top |
|
|
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
hi
I am using macro to send a meaaasge. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
The + is a printer control character! |
|
Back to top |
|
|
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
ok.
how to remove remove this character while sending a message to syslog.
is it posible? |
|
Back to top |
|
|
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
Thanks to all. |
|
Back to top |
|
|
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
this is not yet resolved. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
@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 |
|
|
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
Thanks UmeySan. |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
APF-Authorization, that's the point !!! |
|
Back to top |
|
|
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
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 |
|
|
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
do i need to add this pds in to linklst also? |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
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 |
|
|
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
I am not getting your point clearly.
can please explain the steps of using the above mentioned process. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
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 |
|
|
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
@ dick scherrer
I suppose, without knowing APF authorized I could not add this pds to the library. |
|
Back to top |
|
|
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
This is what i could not understand.
Quote: |
Re-link with AC=1 added to the LKED PARM |
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
Thiru Chandira Moorthi
New User
Joined: 20 Jun 2007 Posts: 29 Location: chennai
|
|
|
|
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 |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
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 |
|
|
|