MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to launch a jcl via cics cobol program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
enge
Beginner


Joined: 12 Oct 2004
Posts: 78
Topics: 39

PostPosted: Thu Sep 11, 2008 3:40 am    Post subject: how to launch a jcl via cics cobol program Reply with quote

hi everybody,

i need to write into internal reader a jcl by a application program in cobol cics. is that possible?

many tanks
Back to top
View user's profile Send private message
acevedo
Beginner


Joined: 03 Dec 2002
Posts: 127
Topics: 0
Location: Europe

PostPosted: Thu Sep 11, 2008 3:47 am    Post subject: Reply with quote

search in the CICS manual for SPOOL sentences (spoolopen-spoolwrite-spoolclose)

hth
Back to top
View user's profile Send private message
enge
Beginner


Joined: 12 Oct 2004
Posts: 78
Topics: 39

PostPosted: Thu Sep 11, 2008 4:31 am    Post subject: Reply with quote

THANK YOU FOU YOUR TIP! I FIND OUT AN EXAMPLE!
!EXEC CICS SPOOLOPEN OUTPUT
! NODE ('LOCAL')
! USERID ('INTRDR')
! RESP(RESPCODE)RESP2(RES2CODE)
! TOKEN(TOKEN)
!END-EXEC
!
!PERFORM VARYING JCL-IND FROM +1 BY +1
! UNTIL RETCODE NOT = DFHRESP(NORMAL)
! OR JCL-IND > jcl-ind-max
! MOVE JCLELE (JCL-IND) TO JOBQUEUE
! EXEC CICS SPOOLWRITE
! FROM(JOBQUEUE)
! RESP(RESPCODE) RESP2(RES2CODE)
! FLENGTH(OUTLEN)
! TOKEN(TOKEN)
! END-EXEC
!END-PERFORM
!
!EXEC CICS SPOOLCLOSE
! TOKEN(TOKEN)
! RESP(RETCODE) RESP2(RESP2)
!END-EXEC
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group