View previous topic :: View next topic |
Author |
Message |
karunkallore Beginner
Joined: 11 Dec 2004 Posts: 103 Topics: 39
|
Posted: Thu Dec 08, 2005 5:43 pm Post subject: To find record length of a PS file. |
|
|
Hi,
Is there a way in which to a program ( either COBOL or PL/I ) i can find the record length of a physical sequential file ?
Thanks in advace,
Karun. |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Fri Dec 09, 2005 7:54 am Post subject: |
|
|
Also, the JFCB will only reflect the dcb information after the data set is opened. |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Fri Dec 09, 2005 8:18 am Post subject: |
|
|
Karunkallore,
As Semigeezer said the DCB will be loaded only when the dataset is opened. So, if you are trying to dynamically allocate some datasets through COBOL and read them them - then this is not the right method. B'cas u need to declare the FD section with the exact LRECL of your file. You can't vary this info. dynamically during run time.
Thanks,
Phantom |
|
Back to top |
|
 |
karunkallore Beginner
Joined: 11 Dec 2004 Posts: 103 Topics: 39
|
Posted: Fri Dec 09, 2005 11:37 am Post subject: For report Generation. |
|
|
Hi Phantom/Semigeezer,
Thank you very much for the insight. Yes i a looking forward to read the LRECL of a PS file from a COBOL program. This file is already catalogued and is not allocated dynamically in the code.
This information is required as an input to another set of applications ( in my shop ) to generate reports.
I will go through the referece links given and work on it.
Thank you once again for the help !!!
MVSFORUMS rocks !!!!!
Karun. |
|
Back to top |
|
 |
|
|