> -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Johnson, William > Sent: Thursday, October 13, 2005 2:17 PM > To: IBM-MAIN@BAMA.UA.EDU > Subject: DCB attributes for USS file > > > How can we determine DCB attributes for a USS file? We're > trying to do > an IEBGENER (SYNCSORT's flavor) from a particular path and getting > IEB317I JOB TERMINATED, NO INPUT BLKSIZE/LRECL because we don't know > what values to use for RECFM, LRECL, BLKSIZE. I assume it's not the > same as the HFS which contains the file? > > Bill Johnson
There is no such concept for UNIX file. For a TEXT file, each line can be an arbitrary length, terminated with a x'15'. If you need to copy it, you just must "know" what the maximum possible line length would be, probably based on knowing the nature of the program which created it. You can determine it with a small program which reads the file (I'd use either Perl or REXX, personally). #!/usr/bin/perl lrecl=0; while (<>) { chomp; # remove end-of-line character(s) reclen=length($_); #get length of current line lrecl = reclen unless lrecl > reclen; #update lrecl, if necessary } print "Maximum record read was $reclen bytes" -- John McKown Senior Systems Programmer UICI Insurance Center Information Technology This message (including any attachments) contains confidential information intended for a specific individual and purpose, and its' content is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this transmission, or taking any action based on it, is strictly prohibited. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html