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
 

 

Can I invoke a Batch JOB from a CICS Screen

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
abhik_b_144

New User


Joined: 28 Oct 2006
Posts: 1
Location: Kolkata

PostPosted: Sat Oct 28, 2006 1:16 pm    Post subject: Can I invoke a Batch JOB from a CICS Screen
Reply with quote

Hello

Can I invoke a Batch JOB from a CICS Screen. If I can how do I go about it? Any help provided will be much appreciated
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sun Oct 29, 2006 11:07 am    Post subject:
Reply with quote

There are 2 conventional methods:
1. Use the supplied SPOOL commands of CICS, as you can see in the fine manual.
2. Define a TD queue and connect its output to INTRDR.

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

New User


Joined: 06 Nov 2006
Posts: 2

PostPosted: Mon Nov 06, 2006 6:16 pm    Post subject: Try this spool command
Reply with quote

This example may help u.Please don't hesitate to contact me.This is a sample program written for report generation.

*************************************************************
*JCL FOR REPORT GENERATION
*************************************************************
01 GEN-REPORT.
05 FILLER PIC X(80) VALUE
'//DSRC525A JOB MSGCLASS=X,'.
05 FILLER PIC X(80) VALUE
'// CLASS=B,TIME=(,15),NOTIFY=SRGKSQ'.
05 D1.
10 FILLER PIC X(33) VALUE
'//SENDNOTE EXEC PGM=H21AP06,PARM='.
10 FILLER PIC X VALUE "'".
10 STDATE PIC X(8) VALUE SPACES.
10 FILLER PIC X(1) VALUE SPACES.
10 ENDATE PIC X(8) VALUE SPACES.
10 FILLER PIC X(29) VALUE "'" .
05 FILLER PIC X(80) VALUE
'//SYSPRINT DD SYSOUT=*'.
05 FILLER PIC X(80) VALUE
'//*'.
01 FILLER REDEFINES GEN-REPORT.
05 CARD OCCURS 5 TIMES INDEXED BY CARD-INDEX PIC X(80).
01 CARD-EDIT PIC X(72) VALUE SPACES.



EXEC CICS SPOOLOPEN OUTPUT
TOKEN(S-TOKEN)
USERID(S-USERID)
NODE(S-NODE)
CLASS(S-CLASS)
NOCC
PRINT
NOHANDLE
END-EXEC.

PERFORM
VARYING CARD-INDEX FROM 1 BY 1 UNTIL CARD-INDEX > 5
EXEC CICS SPOOLWRITE
TOKEN(S-TOKEN)
FROM(CARD(CARD-INDEX))
FLENGTH(80)
NOHANDLE
END-EXEC
END-PERFORM.
EXEC CICS SPOOLCLOSE TOKEN(S-TOKEN) NOHANDLE END-EXEC.
Back to top
View user's profile Send private message
shankern

New User


Joined: 06 Nov 2006
Posts: 2

PostPosted: Mon Nov 06, 2006 6:18 pm    Post subject: Try this spool command
Reply with quote

This example may help u.Please don't hesitate to contact me.This is a sample program written for report generation.
*************************************************************
*JCL FOR REPORT GENERATION
*************************************************************
01 GEN-REPORT.
05 FILLER PIC X(80) VALUE
'//DSRC525A JOB MSGCLASS=X,'.
05 FILLER PIC X(80) VALUE
'// CLASS=B,TIME=(,15),NOTIFY=SRGKSQ'.
05 D1.
10 FILLER PIC X(33) VALUE
'//SENDNOTE EXEC PGM=H21AP06,PARM='.
10 FILLER PIC X VALUE "'".
10 STDATE PIC X(8) VALUE SPACES.
10 FILLER PIC X(1) VALUE SPACES.
10 ENDATE PIC X(8) VALUE SPACES.
10 FILLER PIC X(29) VALUE "'" .
05 FILLER PIC X(80) VALUE
'//SYSPRINT DD SYSOUT=*'.
05 FILLER PIC X(80) VALUE
'//*'.
01 FILLER REDEFINES GEN-REPORT.
05 CARD OCCURS 5 TIMES INDEXED BY CARD-INDEX PIC X(80).
01 CARD-EDIT PIC X(72) VALUE SPACES.



EXEC CICS SPOOLOPEN OUTPUT
TOKEN(S-TOKEN)
USERID(S-USERID)
NODE(S-NODE)
CLASS(S-CLASS)
NOCC
PRINT
NOHANDLE
END-EXEC.

PERFORM
VARYING CARD-INDEX FROM 1 BY 1 UNTIL CARD-INDEX > 5
EXEC CICS SPOOLWRITE
TOKEN(S-TOKEN)
FROM(CARD(CARD-INDEX))
FLENGTH(80)
NOHANDLE
END-EXEC
END-PERFORM.
EXEC CICS SPOOLCLOSE TOKEN(S-TOKEN) NOHANDLE END-EXEC.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies.    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS Transaction attach count of supp... lind sh CICS 1 Wed Jun 21, 2017 1:33 pm
No new posts CICS Transaction Timeout Hooman24 CICS 2 Sun Apr 16, 2017 2:16 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
No new posts Batch job tuning sgandhla Testing & Performance analysis 5 Fri Mar 24, 2017 9:41 pm
No new posts MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm


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