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 

help needed in submitting jcl from cobc element

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> CICS and Middleware
View previous topic :: View next topic  
Author Message
haseen_mohammed
Beginner


Joined: 20 Feb 2006
Posts: 27
Topics: 14

PostPosted: Wed Feb 22, 2006 6:39 am    Post subject: help needed in submitting jcl from cobc element Reply with quote

in one COBC program i have to send an email if particular condition is set.
i have the jcl to send the email its working independently. i got the materials to spool the jcl also. but when i incorporate it in code.only the first line of jcl is gettin spooled,so no email Sad

can anyone help me in how to do this ..i went hru the other discussiions and sols ..but not clearing my problem to the fullest.

can anyone explain it in detail.like how to declare the working storage variable .. how to write it in code and all .
if possible with sample code.

thanks in advance.

haseen
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Feb 22, 2006 10:31 am    Post subject: Reply with quote

Quote:

but when i incorporate it in code.only the first line of jcl is gettin spooled,so no email


haseen_mohammed,

Before you send to spool make sure that you write the JCL correctly in the program. First write the JCL to an output file and see if it has actually written the entire JCL.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
haseen_mohammed
Beginner


Joined: 20 Feb 2006
Posts: 27
Topics: 14

PostPosted: Thu Feb 23, 2006 1:34 am    Post subject: help needed in submitting jcl from cobc element Reply with quote

hi,

i tried different methods of declaring the jcl and passing, but only the first line of the jcl whatever it is, is getting written to spool successfully.

and after that nothin is comin.

if more info s needed i ll give.
please help me on this... i meean how to declare it in working storage and how to pass it in the cics command to spool. i am not quite sure bout doin this. in the materials i referred its like defining a variable with jcl lines as filler x(80) continuously ending wit /*EOF.

i think declaring each line of jcl as diff variable n keep on call the cics commmad to spool it will work.. but its not efficient and i am sure there will be better ways of doin it.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Thu Feb 23, 2006 5:44 am    Post subject: Reply with quote

haseen_mohammed,

check this topic for an example code

http://mvsforums.com/helpboards/viewtopic.php?t=72&highlight=perform+varying

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
haseen_mohammed
Beginner


Joined: 20 Feb 2006
Posts: 27
Topics: 14

PostPosted: Thu Feb 23, 2006 9:55 am    Post subject: help needed in submitting jcl from cobc element Reply with quote

hi,

i ve seen that code snipet before wen i searched in the forum. But i am not able to understand t code completely.
the variables declared and used ..i dunno how can we use like that.
like JCL-STATEMENT(W-SUB).what is tis variable i think u are referring to ws-jcl-statement-area.(which is a group variable) ..i am not able to make out correctly how v can use this in the way explained.

when i tried in my code also it is giving compilation error.
Expected a reference-modification specification but found ")". The "MOVE" statement.
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 -> CICS and Middleware 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