|
<<SNIP>>
My requirement was to get the record length of a file in order to
pass that to a file transfer program as a parameter. I used DSPFD
command in a CL program. The command used in order to get the record
length of a particular database file that I was interested in is as
below:
DSPFD FILE(xxxxDTA/xxxxPF) TYPE(*RCDFMT) OUTPUT(*OUTFILE)
OUTFILE(QTEMP/xxxxPF)
The record length of xxxxDTA/xxxxPF is 5777
The record length I see in the OUTFILE is 290. This was my problem.
In order to check the file field description of the OUTFILE, I used
a DSPFFD command:
DSPFFD QTEMP/xxxxPF
I assumed that I'd see the record length of QTEMP/xxxxPF (i.e the
OUTFILE) to be the same (5777).
Should I be looking for that somewhere else other than in the
OUTFILE?
On Sat, 18 Feb 2012 12:31:09 -0800 CRPence wrote:
<<SNIP>>
If not simply a misunderstanding of what was being viewed [e.g.
accidentally viewing DSPFFD of the named OUTFILE() in library
QTEMP, instead of looking at the value of RFLEN for the row data
stored in the output file], then perhaps a detailed description
involving the scripted requests and the effect\output of each step,
rather than the attempt to describe in /words/ would be more
fruitful.?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.