Page 1 of 2

ISPMLIB errors

PostPosted: Mon May 21, 2012 12:19 am
by Viswanathchandru
Dear all,

I'm trying to display some messages through the ISPF panel designed. Intension is as usual to pop up a message when the user gives a wrong input. But when ever i give a wrong input i'm getting the message as

CMG999                                                         
                                                               
Message syntax error.                                         
MSG001A  - contains invalid format syntax in first record.     
                                                                                                                           
                                                                                                                           
Current dialog statement:                                     
SETMSG MSG(MSG001A)                                           
But i dont understand the reason. Here is how the message looks like
MSG001A 'Operand missing' .ALARM=YES
'Required positional operand missing.'
I tried comparing this with the manual but i dont find differences. Please guide where do i go wrong.


Regards,
Viswa

Re: ISPMLIB errors

PostPosted: Mon May 21, 2012 1:37 am
by NicC
What is the name of the member holding the message?

Re: ISPMLIB errors

PostPosted: Mon May 21, 2012 5:07 pm
by Viswanathchandru
Hello NiCc, Thanks for addressing the post.

Its in the member MSG00.

Regards,
Viswa

Re: ISPMLIB errors

PostPosted: Mon May 21, 2012 6:50 pm
by Pedro
Show us the entire message member.

Re: ISPMLIB errors

PostPosted: Mon May 21, 2012 7:01 pm
by Viswanathchandru
hello pedro,

I'm not understanding. The full name of the message member is MSG00 and it contains onlY one message as shown above. please advice me what should i post.

Regards,
Viswa

Re: ISPMLIB errors

PostPosted: Mon May 21, 2012 9:17 pm
by Pedro
Turn off the line numbers.

Of course, it is only a guess because you decided not to show us columns 73-80.

Re: ISPMLIB errors

PostPosted: Tue May 22, 2012 1:54 pm
by Viswanathchandru
Hello Pedro, Please find the below member contents. Let me know if i need to give more information on this.


EDIT       XXXXXX.SMF.MSGLIB(MSG00) - 01.14               Columns 00001 00072
****** ***************************** Top of Data ******************************
=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
000001 MSG001 'Operand missing' .ALARM=YES                                     
000002 'Required positional operand missing. Reenter command'                 
****** **************************** Bottom of Data ****************************

Also, "NUM OFF" on the command line didnt give improvement. Pleas advice.

Regards,
Viswa

Re: ISPMLIB errors

PostPosted: Tue May 22, 2012 1:57 pm
by enrico-sorichetti
just take a decision...
in the initial description if the problem You complain that
SETMSG MSG(MSG001A)

and then You show for member MSG00 that only MSG001 is there

the message You are trying to display is NOT there !

Re: ISPMLIB errors

PostPosted: Tue May 22, 2012 5:18 pm
by Viswanathchandru
Hello enrico,

Thanks for addressing the post. Ton's of appologies for giving a wrong dislplaY. it is MSG001A. Again i tried "NUM ON" followed bY "NUM OFF" and tried executing the same rexx. Neither i found the error message nor i found the message getting displaYed. ReallY confused. Can anYone suggest me a better waY of working with ISPMLIB. not sure what the waY i use is the best one or not. Posting here the rexx part. Please make a correction to mY previous post. Its not MSG001 instead its MSG001A and that was mY mistake while copYing it.. Please let me know how to proceed. Rexx calling the message:

 "ISPEXEC ADDPOP"                 
 "ISPEXEC SETMSG MSG(MSG001A)"   
 "ISPEXEC REMPOP"                 
and the member MSG00 contains.

****** ***************************** Top of Data ******************************
=COLS> ----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
000001 MSG001A 'Operand missing' .ALARM=YES                                   
000002 'Required positional operand missing. Reenter command'                 
****** **************************** Bottom of Data ****************************


Regards,
Viswa

Re: ISPMLIB errors

PostPosted: Tue May 22, 2012 7:13 pm
by Pedro
Whenever you are making changes to ISPF parts, you should exit ISPF, then start with
ISPF TEST


ISPF caches some of the parts and even when you make changes, it uses the original cached version. When you start with ISPF TEST, it avoids the caching.