Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 10202
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: 4648
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: 10202
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 How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm
This topic is locked: you cannot edit posts or make replies. MIPS reduction for Batch job Virendra Shambharkar All Other Mainframe Topics 8 Mon Nov 07, 2016 4:02 pm
No new posts DB2 Streaming Batch Processing Problem Manshadi DB2 4 Sat Sep 24, 2016 12:14 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us