View previous topic :: View next topic |
Author |
Message |
haseen_mohammed Beginner
Joined: 20 Feb 2006 Posts: 27 Topics: 14
|
Posted: Wed Feb 22, 2006 6:39 am Post subject: help needed in submitting jcl from cobc element |
|
|
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
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Feb 22, 2006 10:31 am Post subject: |
|
|
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 |
|
|
haseen_mohammed Beginner
Joined: 20 Feb 2006 Posts: 27 Topics: 14
|
Posted: Thu Feb 23, 2006 1:34 am Post subject: help needed in submitting jcl from cobc element |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
haseen_mohammed Beginner
Joined: 20 Feb 2006 Posts: 27 Topics: 14
|
Posted: Thu Feb 23, 2006 9:55 am Post subject: help needed in submitting jcl from cobc element |
|
|
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 |
|
|
|
|