Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Run Edit Macro in Batch?

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

Active User


Joined: 15 Oct 2012
Posts: 139
Location: USA

PostPosted: Tue May 06, 2014 6:52 pm    Post subject: Run Edit Macro in Batch?
Reply with quote

Can an Edit Macro run in batch, and if so does anyone have example JCL?

A developer on my team has a 3-step job process that requires manual intervention from an edit-macro. If we can get an example of running an edit-macro in batch, we can fully automate his process.

What the developer does is…
Runs first-step to create an output, then ends job.
Edits first-step output with his edit-macro.
Continues job past the first-step using a RESTART.

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

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Tue May 06, 2014 7:28 pm    Post subject: Reply to: Run Edit Macro in Batch?
Reply with quote

Yes it can !

ISPSTART CMD(xxxxx)

inside xxxxx

Address ISPEXEC EDIT .... MACRO( the edit macro )
Back to top
View user's profile Send private message
Gary McDowell

Active User


Joined: 15 Oct 2012
Posts: 139
Location: USA

PostPosted: Wed May 07, 2014 1:52 am    Post subject:
Reply with quote

Hey enrico.

Not really sure I understand the coding and format you have suggested. I did some scans on our JCL libraries (Address, ISPEXEC) and did not find an example. What would be an example of "xxxxx"? I understand the "ISPEXEC EDIT" but not sure of the JCL format.

Thanks for any clarification.

Code:
//STEP010  EXEC PGM=IEBGENER
//SYS...   DD SYSOUT=* 
//SYSIN    DD DUMMY
//SYSUT1   DD  DISP=SHR,DSN=input.name.here
//SYSUT2   DD DSN=output.name.here, 
//            DISP=(NEW,CATLG,DELETE),
//            UNIT=SYSDA,
//            SPACE=(TRK,(15,15),RLSE),
//            DCB=(RECFM=FB,LRECL=80,BLKSIZE=0)   
//*
//*  ???
//ISPSTART CMD(xxxxx ?)
  inside xxxxx ?
//Address ISPEXEC EDIT output.name.here MACRO( the edit macro )
//*
//*STEP030   ...
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Wed May 07, 2014 1:57 am    Post subject: Reply to: Run Edit Macro in Batch?
Reply with quote

This ISPF BATCH code snippet is straight from IBM:

Code:
//USERAA   JOB (ISPF),'ISPF USER',MSGCLASS=X,
//         CLASS=A,NOTIFY=&SYSUID
//*
//ISPFSTP  EXEC PGM=IKJEFT01,DYNAMNBR=30,REGION=32M
//ISPPROF  DD RECFM=FB,LRECL=80,SPACE=(TRK,(2,2,2))
//ISPLLIB  DD DSN=USERA.LOADLIB,DISP=SHR
//ISPMLIB  DD DSN=ISP.SISPMENU,DISP=SHR
//ISPPLIB  DD DSN=ISP.SISPPENU,DISP=SHR
//ISPSLIB  DD DSN=ISP.SISPSENU,DISP=SHR
//         DD DSN=ISP.SISPSLIB,DISP=SHR
//ISPTLIB  DD RECFM=FB,LRECL=80,SPACE=(TRK,(1,0,1))
//         DD DSN=ISP.SISPTENU,DISP=SHR
//ISPCTL1  DD SPACE=(CYL,1),RECFM=FB,LRECL=80
//ISPLOG   DD SYSOUT=*,RECFM=FB,LRECL=133
//SYSEXEC  DD DSN=ISP.SISPEXEC,DISP=SHR
//SYSPROC  DD DSN=ISP.SISPCLIB,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN  DD *
  ISPSTART CMD(ISPFCMD)
Back to top
View user's profile Send private message
Gary McDowell

Active User


Joined: 15 Oct 2012
Posts: 139
Location: USA

PostPosted: Wed May 07, 2014 2:42 am    Post subject:
Reply with quote

Ah, thanks Kevin.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Wed May 07, 2014 11:31 am    Post subject: Reply to: Run Edit Macro in Batch?
Reply with quote

Quote:
Not really sure I understand the coding and format you have suggested.


the format I posted was not coding or formal representation ...

just a hint on how to proceed.

run ISPF in batch ( gazillions of example here )
invoking a generic ( You choose the name ) script

and inside the script invoke the ISPF EDIT services with a MACRO
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 Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 3 Fri Sep 15, 2017 9:20 am
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us