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 to Webservices safexc CICS 1 Sun Jan 22, 2017 5:49 pm
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm


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