Using ispf edit commands in JCL



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Using ispf edit commands in JCL

Postby usuario24 » Wed Dec 01, 2010 5:04 pm

Hi everyone!!

Could anyone help me to find how to use ispf edit commands in a JCL process?

I need to edit a dataset in an automatic process using this ISPF commands:

x all
f 'expression' all
del x all

Create a dataset with the result of the operation.

Is it possible? (Everything is posible, i know, but i don't know yet how to do it ;-))

Thanks a lot
usuario24
 
Posts: 9
Joined: Thu Jul 08, 2010 3:22 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Using ispf edit commands in JCL

Postby MrSpock » Wed Dec 01, 2010 5:48 pm

- ISPF requires TSO, so you'll need to run TSO in batch (see the IKJEFT01 program). See Executing the terminal monitor program.

- With a TSO address space established, you'll need to invoke ISPF. See ISPF services in batch mode. Notice that you need to include all of the appropriate ISPF libraries for your job.

- With TSO and ISPF active, you'll need to invoke the ISPF Editor Service for your dataset. See EDIT--edit a data set. The ISPF Edit Process will need to call an ISPF Edit Macro. The macro will run those commands as you mentioned earlier. ISPF Edit Macros are described here.
User avatar
MrSpock
Global moderator
 
Posts: 808
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Using ispf edit commands in JCL

Postby prino » Wed Dec 01, 2010 10:31 pm

Using SORT with the correct control statements would quite likely be a far more appropriate solution...
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: Using ispf edit commands in JCL

Postby MrSpock » Wed Dec 01, 2010 10:33 pm

prino wrote:Using SORT with the correct control statements would quite likely be a far more appropriate solution...


Exactly what I was thinking ... but, I figured there was an as-of-yet undisclosed reason for the OP to want to take this path ...
User avatar
MrSpock
Global moderator
 
Posts: 808
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post