home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!uvaarpa!darwin.sura.net!cs.utk.edu!gatech!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!hri.com!noc.near.net!ns.draper.com!news.draper.com!MVS.draper.com!SEB1525
- From: SEB1525@MVS.draper.com (Steve Bacher)
- Newsgroups: bit.listserv.ibmtcp-l
- Subject: More FTP Fun (was: FTP Configuration Data Set Not Working)
- Message-ID: <19930128114027SEB1525@MVS.draper.com>
- Date: 28 Jan 93 16:40:00 GMT
- References: <54930128115345/0003858921NA2EM@mcimail.com>
- Sender: MVS NNTP News Reader <NNMVS@MVS.draper.com>
- Reply-To: seb1525@support4.draper.com
- Organization: Draper Laboratory
- Lines: 45
- Nntp-Posting-Host: mvs.draper.com
-
- Speaking of SENDSITE...
-
- I just discovered another "feature" of the latest incarnation of the
- MVS FTP client. If you want to send a RECFM=V dataset containing
- binary data to an ASCII site, but do it in such a way as to preserve
- the record information, the thing to do is to pretend it's RECFM=U
- and FTP it with binry mode. The resulting file on the Unix/Vax/etc.
- end will have the MVS RDW's and BDW's embedded in it, whence an
- enterprising utility writer could restore the original record
- boundaries.
-
- Well, this used to work by including the command
-
- LOCSITE RECFM=U
-
- in the MVS FTP command stream. No more. FTP not only sends that
- SITE FIXrecfm=VB... command based on the actual attributes of the
- data set you're sending, but toggling SENDSITE to stop this doesn't
- seem to have any effect at all on the resulting send, even though
- it skips the SITE command.
-
- There is a way to do it. But it requires going back to one of the
- old, old little-documented MVS tricks: allocating the data set to
- any old ddname with the RECFM=U attribute associated with it. So
- here's what you have to do.
-
- without TSO/E:
-
- ATTRIB JUNKATTR RECFM(U)
- ALLOC FI(JUNKDD) DA(BINARY.TEXT) USING(JUNKATTR)
-
- with TSO/E:
-
- ALLOC FI(JUNKDD) DA(BINARY.TEXT) RECFM(U)
-
- Then you do your FTP, specify BINARY and PUT BINARY.TEXT,
- and it works.
-
- But the fact that you have to do this via an old MVS trick is 100%
- backwards as far as useability. If this is representative of the
- direction in which IBM is headed, then ... (fill in the rest).
-
- --
- Steve Bacher (Batchman) Draper Laboratory
- Internet: seb@draper.com Cambridge, MA, USA
-