On Sat, 14 Nov 2020 13:52:15 -0600, Kirk Wolf wrote: > >> On 14/11/2020 12:54 am, Kirk Wolf wrote: >> >> > The new commands (getpds and putpds) use BPAM+BSAM ... > >If you were reading a UNIX file, you would need to know whether it had >IBM-style RDWs, or l4 (which is compatible with FILEDATA=RECORD) > One way you might know is from the tag information. Empirically, contrary to the doc, a RECORD tag overrides the default when a file is allocated with JCL DD PATH=... > >-l rdw has a length that includes the 4-byte RDW length, compatible with >IBM > Close enough. Using Data Sets mentions 1 byte reserved and 3 bytes length. (Sounds like S/360 addressing conventions.)
>FYI - the "fromdsn" and "todsn" commands also have these options, but they >read or write a single data set. > Do todsn and putpds respect the file tags if "-s source-codepage" or "-l4" and "-b" and "-l" is omitted? Does putpds have a facility to undo "getpds -l4"? If getpds overwrites an existing file does its existing FILEDATA and CCSID tags prevail over defaulted options to getpds? Do command line options override file tags quietly or with warnings? -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
