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: 10274
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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am


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