On Wed, 7 Dec 2011 19:45:58 -0800, Scott Ford wrote:

>I have the following situation:

I'm having trouble parsing your post.  Do you mind if I pick it apart?

>I am calling a program via Cobol 

You have a Cobol program?

>and the output is RECFM=VBA,LRECL=133,BLKSIZE=1330 (only an example)  
>The actual allocations are done dynamically via BPXWDYN and work fine 
>no problem.

Ok.  There is no DD statement in your JCL.

>I then close the file and free it and re-allocate it ( no JCL ) for this 
>file its dynamic and of course I can read it.

After writing the data set, you close it, free it and reallocate it so that 
you can open it for input?  Same DDNAME or different?

>If I code a 'DD' with a RECFM=VB,LRECL=137 it works great with no problems.

Ok. I assume without the BPXWDYN calls?

>I can I do the same internally inside my Cobol code without a 'DD' stmt ?

Isn't that what you said you were doing first with BPXWDYN?

-- 
Tom Marchant

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

Reply via email to