Page 1 of 1

Open, Edit, Save using JCL

PostPosted: Thu Apr 02, 2009 7:20 am
by manesg
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).

Re: Open, Edit, Save using JCL

PostPosted: Tue Apr 07, 2009 4:18 pm
by expat
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.

Re: Open, Edit, Save using JCL

PostPosted: Wed Apr 15, 2009 11:23 am
by manesg
thanks. So i need a REXX. ok.. I thought it can be used using JCL.
Thank you very much.

Re: Open, Edit, Save using JCL

PostPosted: Wed Apr 15, 2009 4:53 pm
by expat
It can be used via JCL, you need to execute the REXX in a batch ISPF environment.