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
 

 

REXX code to find out all files created by user.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
surajsrk

New User


Joined: 13 Jun 2006
Posts: 4
Location: bangalore

PostPosted: Thu May 21, 2009 4:21 pm    Post subject: REXX code to find out all files created by user.
Reply with quote

Hi!

I am thinking of creating a REXX tool which can find out all files created bu user on mainframe.

Can anybody help me with this ?

Any specific function/command which serves this purpose ?

- Thanks,

Suraj.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Thu May 21, 2009 4:23 pm    Post subject:
Reply with quote

How are you planning on doing this? In general, a file in z/OS does not have any field indicating the creator so I want to find out what process you're going to use to derive this data.
Back to top
View user's profile Send private message
surajsrk

New User


Joined: 13 Jun 2006
Posts: 4
Location: bangalore

PostPosted: Thu May 21, 2009 5:25 pm    Post subject: Reply to: REXX code to find out all files created by user.
Reply with quote

In Mainframes. All files created by a user will have his/her ID as high level qualifier.

So, I want to get all such files which have a perticular user ID as a high level qualifier.

EX: <HLQF>.* will give all files created by user ID : HLQF.

I want to code REXX EXEC which does this.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu May 21, 2009 5:30 pm    Post subject:
Reply with quote

SYS1.SAMPLIB(IGGCSIRX) and off you go. It accepts all * ** % and %% file filtering capabilities.

Quote:
In Mainframes. All files created by a user will have his/her ID as high level qualifier.

Not true, I am able to create files with many a different HLQ
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu May 21, 2009 5:33 pm    Post subject: Re: Reply to: REXX code to find out all files created by use
Reply with quote

surajsrk wrote:
In Mainframes. All files created by a user will have his/her ID as high level qualifier.


At my shop the HLQ maybe the USERID but it is normally the project code!
Back to top
View user's profile Send private message
surajsrk

New User


Joined: 13 Jun 2006
Posts: 4
Location: bangalore

PostPosted: Thu May 21, 2009 5:39 pm    Post subject: Reply to: REXX code to find out all files created by user.
Reply with quote

Thanks !!!

Any Syntax or sample code for SYS1.SAMPLIB(IGGCSIRX) ?

where is the USERID fits in here ?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu May 21, 2009 5:43 pm    Post subject:
Reply with quote

SYS1.SAMPLIB(IGGCSIRX) IS the 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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am


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