Open, Edit, Save using JCL



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

Open, Edit, Save using JCL

Postby manesg » Thu Apr 02, 2009 7:20 am

OS: Z/OS 10.1

Iam using the ISPF option 3.4 open the member (DELENTRY) in edit mode and delete lines from 00010 to 00045 using the DD command and then save the member.
The following is the member (DELENTRY) entry.

00010 //PSLIB1 DD DSN=ERP.E44.SQRLIST
...
...
...
00025 //PSLIB2 DD DSN=ERP.E44.SQRINC
...
...
...
00037 //PSLIB3 DD DSN=ERP.E44.SQRSRC
...
...
...
00045 //*

Is there anyway i can use JCL to do this same job (open the member, edit the member by deleting those unwanted lines, then save and exit). I would like to automate by just submitting the jcl, so that it finds this PSLIB1 and deletes until the line 00045? (The PSLIB1 starts and follows by PSLIB2, PSLIB3 etc and ends at 00045 line code).
manesg
 
Posts: 22
Joined: Thu Jul 17, 2008 11:16 am
Has thanked: 0 time
Been thanked: 0 time

Re: Open, Edit, Save using JCL

Postby expat » Tue Apr 07, 2009 4:18 pm

Yes, you will need a base REXX to get the PDS members, or a list from you, and then open each member individually and then execute an ISPF edit macro on each opened member.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: Open, Edit, Save using JCL

Postby manesg » Wed Apr 15, 2009 11:23 am

thanks. So i need a REXX. ok.. I thought it can be used using JCL.
Thank you very much.
manesg
 
Posts: 22
Joined: Thu Jul 17, 2008 11:16 am
Has thanked: 0 time
Been thanked: 0 time

Re: Open, Edit, Save using JCL

Postby expat » Wed Apr 15, 2009 4:53 pm

It can be used via JCL, you need to execute the REXX in a batch ISPF environment.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post