Date: Sat, 16 Oct 2004 06:33:30 GMT
Reply-To: Alan Churchill <REM0VETHISSTRINGTechSupport@SAVIAN.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Alan Churchill <REM0VETHISSTRINGTechSupport@SAVIAN.NET>
Subject: DCB-information on a PC-file
The file system handles it all for you on a PC. A possible source of info:
It really depends on what you are trying to do. I think a question along those lines might be easier to answer.
Bear with me since it has been a few years since my MVS days and coding DCBs…but on the mainframe, all resources need to be allocated prior to use. The PC operates very differently in that resources are demanded and received on the fly. Hence you have static information, at that time, about a file but there aren't caps per se on what it can hold. Also, I can call a picture a .gif or a .txt: the extension is merely a ‘suggestion' but the file system determines the type based upon an event (user click saying ‘open this in an image editor) or a binary representation in the file.
The article above describes accessing the file system for the info but I would be leery of going down this route w/o knowing more about what you are trying to do. SAS has some insights into the file system however there are other ways of getting much more information (including going through SAS to an O\S type of command).
"Bridging SAS and Microsoft technologies"
On a mainframe-file I am used to specify a number of DCB-informations
about a file, e.g. record length (LRECL), record format (VB, VBA, FB),
block size (BLKSIZE) etc.
But what about a PC-file? Is this information kept in the file-type,
e.g. .txt, .doc, .xls, .sas etc.? Can't be the whole truth.
How are PC-files in general organized (text- vs. binary-files etc.),
and how do I retrieve this information?