View previous topic :: View next topic
|
Author |
Message |
bamohan
New User
Joined: 29 Jan 2007 Posts: 33 Location: chennai
|
|
|
|
Is there any subroutine for finding the logical record length of the file.? What's the logic on how to find the lrecl of the file at run time?
bala |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
Here's a roundabout way:
SAS includes much file info in the SAS log.
1. run a SAS program to read one rec from the file
2. send the SAS log to a file, e.g., &&SASLOG
3. read the SAS log and find the line with the LRECL |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Well, simpler way is to add a REXX step which calls LISTDSI. SYSLRECL will contain the record length.
O. |
|
Back to top |
|
|
|