View previous topic :: View next topic
|
Author |
Message |
thesumitk
Active User
Joined: 24 May 2013 Posts: 156 Location: INDIA
|
|
|
|
Hi All,
I have searched it in the forum and internet but did notget an answer which suffice my purpose .Below is my requirement.. PLease assist
I have a cobol program where I am passing the parm as FB or VB .. Based on this parameter I need to create the file either fixed length or variable length ,, I need the FD section definition for this .. IN JCL I am achiving this by parameters passed and use of symbloics but In COBOL I am not able to get what My FD section look like .. Please Guide .. Thanks in Advance.
Regards
Sumit |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
A COBOL file is either fixed length (FB) or variable length (VB). This attribute is determined at compile time and CANNOT be changed while the program is executing. You can use BPXWDYN to dynamically allocate a file in COBOL, but you need to give COBOL the FD to use with it -- and that FD must be fixed or variable length. The only way to change the FD is to edit the source and then recompile the program. |
|
Back to top |
|
|
|