Is it possible to lock a LDS using JCl?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Is it possible to lock a LDS using JCl?

Postby manojlives » Thu Jan 22, 2009 1:48 pm

i have one REXX program when executed it makes changes in another JCL, And i have to submit that JCL to get my output .

And it happens that if anyone is running this REXX bfore i can submit this changed JCL their changes comes to this JCL,
how to raise a lock to it?
manojlives
 
Posts: 37
Joined: Wed Dec 24, 2008 5:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Is it possible to lock a LDS using JCl?

 

Re: Is it possible to lock a LDS using JCl?

Postby Bill Dennis » Thu Jan 22, 2009 9:37 pm

How about starting with a JCL model and then saving the changes in a different, user-ID specific file for submission?
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Is it possible to lock a LDS using JCl?

Postby expat » Mon Jan 26, 2009 5:38 pm

Do you mean PDS (Partitioned DataSet) or LDS (VSAM Linear DataSet)
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Is it possible to lock a LDS using JCl?

Postby manojlives » Thu Jun 11, 2009 6:29 am

I mean PDS,

1) Is it possible to lock a PDS

2) Atleast Getenq of the PDS using REXX


My problem is,
1) I have a Rexx That edits a JOB and Save , And i have to submit the job.
if i submitted the first job, and before i can submit the job (thru Batch), if submitted the 1st prog , my JOB gets edited and their changes comes to my 2nd JOB.
manojlives
 
Posts: 37
Joined: Wed Dec 24, 2008 5:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Is it possible to lock a LDS using JCl?

Postby expat » Thu Jun 11, 2009 4:04 pm

As Bill suggested use a model, or either that, use ISPF file tailoring services.
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post