View previous topic :: View next topic
|
Author |
Message |
vin12pr Warnings : 1 New User
Joined: 14 Jun 2006 Posts: 56
|
|
|
|
Hi all,
In my JCL I m executing a report program.WHoever who submits the job,their id should appear in the report.
I know that in order to do this i need to pass some parameter and recive that in program and correspondingly display that in the report.
But I am not gettig as to what specific parms needs to be passed.Is there any system defined parm which can be passed as a pararmer to the program or is there any other method to do the same?
Thnx in advance.
Vin12pr |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Vin12pr,
Use PARM parameter. Use linkage section in the program to receive the data passed through JCL.
Code: |
//STEPNAME EXEC PGM=IEFBR14,PARM=&SYSUID |
(replace IEFBR14 with your program name)
Hope the above satisfies your need. |
|
Back to top |
|
|
vin12pr Warnings : 1 New User
Joined: 14 Jun 2006 Posts: 56
|
|
|
|
Thank u |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Hi !
the right way of doing such a thing depends on many factors !
Auditing practices of Your IT shop
Security level of the data contained in the report
Privacy concerns about forging a userid
It might be ok to pass it as a parm if the abovesaid requirements are loose
You could submit the job coding
>>> //...................,parm='some other userid'
and the people looking at the report would hold 'some other userid' responsible for it.
If Your organization require stricter rules then You should ask Your support people to guide You in getting the real userid for the RACF control blocks
regards
[/code] |
|
Back to top |
|
|
|