Lots of replies - with varying degrees of accuracy and current COBOL support
usefulness.  However, both of these are easy and well documented in current
native COBOL.

For getting the PARM string (no matter its length), use the LE callable
service CEE3PR2. See:
 
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/CEEA3180/2.2.5.17


(This avoids issues with 100 byte strings and CBLOPTS run-time option
setting).

  ***

For dynamic allocation (all types of files, QSAM, VSAM, Line sequential),
etc, do use COBOL Dynamic Allocation facilities.  See:
  http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/igy3lr40/4.2.3.1 

and its following section as well as:
  http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/igy3pg40/1.8.3 

NOTE:
  The COBOL samples still use "putenv" - but I would agree with the
suggestion that you use CEEENV instead.  See:
 
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/CEEA3180/2.2.5.34


 

"R.S." <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Both questions regard COBOL
> 
> 1. JCL EXEC ...,PARM='parameter'
> Can I read data from PARM field in EXEC statement ?
> Any ACCEPT ?
> 
> 2. Dynamic allocation
> Can I use permanent dataset without DDNAME ?
> In other words can I specify dataset name instead of ddname ?
> 
> -- 
> Radoslaw Skorupka
> Lodz, Poland
> 
> 
> --
> BRE Bank SA
> ul. Senatorska 18
> 00-950 Warszawa
> www.brebank.pl
> 
> Sad Rejonowy dla m. st. Warszawy 
> XII Wydzial Gospodarczy Krajowego Rejestru Sadowego, 
> nr rejestru przedsiebiorców KRS 0000025237
> NIP: 526-021-50-88
> Wedlug stanu na dzien 01.01.2007 r. kapital zakladowy BRE Banku SA (w
calosci oplacony) wynosi 118.064.140 zl. W zwiazku z realizacja warunkowego
podwyzszenia kapitalu zakladowego, na podstawie uchwal XVI WZ z dnia
21.05.2003 r., kapital zakladowy BRE Banku SA moze ulec podwyzszeniu do
kwoty 118.760.528 zl. Akcje w podwyzszonym kapitale zakladowym beda w
calosci oplacone.
> 
> ----------------------------------------------------------------------
> 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

----------------------------------------------------------------------
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