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
 
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 .Net support for CICS containers? John Poulakos CICS 0 Fri Feb 02, 2018 9:22 pm
No new posts CICS called and calling program rizwanaccy CICS 1 Thu Feb 01, 2018 4:34 pm
No new posts CICS EZASOKET CONNECT using DNS name ankit.jain CICS 1 Tue Jan 16, 2018 7:24 pm
No new posts How to change the logon screen info o... sakthikumarT TSO/ISPF 4 Fri Dec 29, 2017 6:44 pm
No new posts CICS web service from DB2 Triggers or... kiranprasad DB2 2 Wed Dec 20, 2017 11:10 am

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