Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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

Senior Member


Joined: 14 Mar 2007
Posts: 10478
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 RACF- How to find the Last access of ... rahul shanmuganatan All Other Mainframe Topics 6 Thu Jun 21, 2018 3:19 pm
No new posts How to delete large data. Mounika Nemani DB2 1 Wed Jun 13, 2018 1:58 pm
This topic is locked: you cannot edit posts or make replies. Rexx code to find greater then symobl... Bharath Vikraman CLIST & REXX 8 Tue May 29, 2018 9:40 am
No new posts How to convert 2 bytes into single by... pkmurali DB2 6 Fri May 25, 2018 1:41 pm
No new posts Cobol program till a given time or fo... ankita agarwal COBOL Programming 7 Fri May 18, 2018 2:24 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us