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 pass the userid data to the program?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: HOw to pass the userid data to the program?
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: 1439
Location: Bangalore,India

PostPosted: Mon Apr 16, 2007 2:30 pm    Post subject:
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    Post subject: Re: HOw to pass the userid data to the program?
Reply with quote

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Mon Apr 16, 2007 3:07 pm    Post subject: Re: HOw to pass the userid data to the program?
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am


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