Re: Examing Setting Return Codes in a CLIST/MACRO

2013-05-13 Thread Shmuel Metz (Seymour J.)
In 20130511.154412.1327...@webmail03.dca.untd.com, on 05/11/2013 at 07:44 PM, esst...@juno.com esst...@juno.com said: My question is How Do I properly Test and SET the Return Code in the EDIT MACRO LASTCC and MAXCC to test. EXIT CODE(foo) to set. Any examples would be appreciated.

Re: Examing Setting Return Codes in a CLIST/MACRO

2013-05-12 Thread esst...@juno.com
Thanks Dave hats exactly what Im Looking for - After posting I located a publication for CLISTs and CLIST Macros. -- Original Message -- From: Dave Salt ds...@hotmail.com To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Examing Setting Return Codes in a CLIST/MACRO Date: Sat, 11 May

Re: Examing Setting Return Codes in a CLIST/MACRO

2013-05-12 Thread esst...@juno.com
Setting Return Codes in a CLIST/MACRO Date: Sat, 11 May 2013 22:04:42 -0500 On Sat, 11 May 2013 17:09:19 -0400, Dave Salt wrote: The edit session ends with CANCEL, which means no changes were saved, which means ISPF sets the return code of the macro to 4. If you want to end with a different return

Examing Setting Return Codes in a CLIST/MACRO

2013-05-11 Thread esst...@juno.com
Hi, Not proffecient in CLISTS and RExx. Can I get some assistance with examining testing a return code in a CLIST Macro. In A CLIST i execute the following statements to edit a member of a PDS and use the ALTER MACRO to change all occurances of XXX. SET IOFUNC = STR(EDIT)

Re: Examing Setting Return Codes in a CLIST/MACRO

2013-05-11 Thread Dave Salt
SET EXITCODE = LASTCC do more stuff EXIT CODE(EXITCODE) Hope that helps, Dave Salt SimpList(tm) - try it; you'll get it! http://www.mackinney.com/products/program-development/simplist.html Date: Sat, 11 May 2013 19:44:12 + From: esst...@juno.com Subject: Examing Setting Return

Re: Examing Setting Return Codes in a CLIST/MACRO

2013-05-11 Thread retired mainframer
-MAIN@LISTSERV.UA.EDU :: Subject: Examing Setting Return Codes in a CLIST/MACRO :: :: Hi, :: Not proffecient in CLISTS and RExx. :: :: Can I get some assistance with examining testing a return code in a :: CLIST Macro. :: :: In A CLIST i execute the following statements to edit a member of a PDS

Re: Examing Setting Return Codes in a CLIST/MACRO

2013-05-11 Thread Paul Gilmartin
On Sat, 11 May 2013 17:09:19 -0400, Dave Salt wrote: The edit session ends with CANCEL, which means no changes were saved, which means ISPF sets the return code of the macro to 4. If you want to end with a different return code, you can hard code it like this: EXIT CODE(0) Or set it using this

Re: Examing Setting Return Codes in a CLIST/MACRO

2013-05-11 Thread Dave Salt
better to call the macro using VIEW instead of EDIT. Dave Salt SimpList(tm) - try it; you'll get it! http://www.mackinney.com/products/program-development/simplist.html Date: Sat, 11 May 2013 22:04:42 -0500 From: paulgboul...@aim.com Subject: Re: Examing Setting Return Codes in a CLIST