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

HOw to pass the userid data to the program?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vin12pr
Warnings : 1

New User


Joined: 14 Jun 2006
Posts: 56

PostPosted: Mon Apr 16, 2007 1:28 pm
Reply with quote

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
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Apr 16, 2007 2:30 pm
Reply with quote

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
View user's profile Send private message
vin12pr
Warnings : 1

New User


Joined: 14 Jun 2006
Posts: 56

PostPosted: Mon Apr 16, 2007 2:49 pm
Reply with quote

Thank u
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Apr 16, 2007 3:07 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 2
No new posts Store the data for fixed length COBOL Programming 1
No new posts Using API Gateway from CICS program CICS 0
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top