View previous topic :: View next topic
|
Author |
Message |
ug123 Warnings : 1 New User
Joined: 01 Mar 2007 Posts: 39 Location: Chennai
|
|
|
|
Hi all,
can anyone tell how to frame warning messages and error messages manually.
In JCL while doing jclprep we can see the warning messages and error messages. Can anyone please tell me how those messages are getting populated.
Because im doing a rexx tool to find syntax error in a cobol program. I want to populate the error messages and warning messages in the given program as how jcl prep is working.
Please help me out.
Thanks,
Ugandar.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Because im doing a rexx tool to find syntax error in a cobol program. I want to populate the error messages and warning messages in the given program as how jcl prep is working |
Is there some reason to use something other than the error messages presented by the compiler? |
|
Back to top |
|
|
ug123 Warnings : 1 New User
Joined: 01 Mar 2007 Posts: 39 Location: Chennai
|
|
|
|
No, just need how the messages are getting populated while doing jclprep...
The below is the example
****** ***************************** Top of Data ****************************
=NOTE= 1 MESSAGE(S) REPORTED BY JCLPREP
=NOTE= 1 ERROR MESSAGE(S)
==MSG> JCP0173E EXPECTED CONTINUATION NOT FOUND -- (J)1
==MSG> JCP0173E EXPECTED CONTINUATION NOT FOUND -- (J)1
000001 //NBK2YYKT JOB (0008293ZZS,0J1,,C),'COBOL COMPILE',
000002 // CLASS=0,MSGCLASS=U,NOTIFY=&SYSUID,
000003 //*****************
=NOTE= //NBK2YYKT JOB (0008293ZZS,0J1,,C),'COBOL COMPILE',
=NOTE= // CLASS=0,MSGCLASS=U,NOTIFY=NBK2YYK,
000004 //UCC11 EXEC UCC11
=NOTE= XXUCC11RMS PROC TYPRUN=F
=NOTE= *** CREATED 8/14/06 BY CG
=NOTE= ***
=NOTE= ******************************************************************
=NOTE= *** CA11'S RMS PROCEDURE FOR TEST TSO SUBMITTED JOBS
=NOTE= ******************************************************************
=NOTE= ***
=NOTE= &&U11STEP EXEC PGM=U11RMS,PARM='&TYPRUN',REGION=6M
=NOTE= XXU11STEP EXEC PGM=U11RMS,PARM='F',REGION=6M
=NOTE= XX@SSNCAT7 DD DUMMY
=NOTE= XXRMSRPT DD SYSOUT=*
=NOTE= XXSYSUDUMP DD SYSOUT=I
=NOTE= XXABNLIGNR DD DUMMY
000005 //LIBR EXEC PGM=LIBR, * CHANGED SOURCE
000006 // PARM='NRJS,NJTA,IEX=R59001B,OEX=AUXINC'
000007 //STEPLIB DD DSN=DBITS.DBA.PGMLIB,DISP=SHR |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
Dick,
I guess OP wants to do the syntax check without compiling the cobol program so that the errors and messages are displayed in the cobol code. |
|
Back to top |
|
|
ug123 Warnings : 1 New User
Joined: 01 Mar 2007 Posts: 39 Location: Chennai
|
|
|
|
yes u r obsolutely correct..
I need to check the syntax of the cobol code and to show the error and warning messages in the cobol code itself. While typing 'RESET' in the command prompt those messages should go as it is working in jclprep.. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Ugandar,
Quote: |
yes u r obsolutely correct.. |
Just wanted to know, why do you need such tool? Is there any reason behind this. |
|
Back to top |
|
|
ug123 Warnings : 1 New User
Joined: 01 Mar 2007 Posts: 39 Location: Chennai
|
|
|
|
Just doing a tool bcoz everytime while compiling if there is any error we have to check the spool and we have to modify the program. Just for time constraint I am doing this tool..
Thanks,
Ugandar.. |
|
Back to top |
|
|
|