Yes thanx, this appears to be the problem.  Evidently in the JCL I had to 
execute PGM=IKJEFT01, instead of my program and include a:

//SYSTSIN  DD *
  PROFILE PREFIX(MyHLQ)
  ISPSTART PGM(my program) 

But the issue now is that I get a 998 return code stating that on TBOPEN of 
ISPSPROF, the table is in use.  Well I allocated the ISPSPROF as ddname CIDTABL 
DD DISP=SHR,DSN=MyHLQ.ISPF.ISPPROF.  So I'm not sure what that problem is.

The only thing I have noticed in the online documentation is that many use an:
//SYSTSIN  DD *
  PROFILE PREFIX(MyHLQ)
  ISPSTART CMD(my clist)

But I want to execute a COBOL program, not a CLIST.  

TYI for any suggestions on how to get around this problem...  

-----Original Message-----
From: IBM Mainframe Discussion List 
Behalf Of Shmuel Metz (Seymour J.)
Subject: Re: Displaying ISPF Panels from a COBOL program

>After several years, I must once again process ISPF Panels from
>within a COBOL program and I cannot get it to work.

Are you calling your program from within ISPF? You can't use ISPF
services if ISPF isn't running.

I believe that SAMPLIB has examples of displaying panels from COBOL.

>Yet still I get a RC=20 (severe error) when I do the ISPLINK call to
>the  panel and the panel does not display.  I simply cannot remember
>what else  needs to be done, to display ISPF panels from within a
>COBOL program.

VDEFINE for your variables, but RC 20 suggests that your program isn't
running under ISPF, so the VDEFINE would also fail. The ISPF
documentation describes how to run ISPF in batch.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to