Page 1 of 1

Help needed in viewing RDW of a record.

Posted: Sat Dec 26, 2015 10:40 am
by VB RDW
Hi,

How can we see the RDW of a file using file-aid?

After making search I found some suggestions like this:

Code: Select all

//STEP01  EXEC PGM=FILEAID                  
//SYSPRINT DD SYSOUT=*                      
//DD01     DD DSN=... input.file,DISP=SHR 
//SYSIN   DD *                              
$$DD01  LIST RDW=3 
/* 
Or form the manual:
Example 1:
$$DD01 LIST RDW=3,IF=(1,EQ,C'A'),MOVE=(1,100,1)
Example 1 lists the first 100 bytes of all records of this variable-length dataset that contain the character A in the first data byte of the record (not including the 4-byte system RDW). The RDW is not included during record processing as specified by the RDW parameter and is not printed since the MOVE parameter is present with the LIST function.
But what is the meaning of RDW=3? I have also seen RDW=2. What exactly that mean? Also in manual example, what is the benefit of using MOVE=(1,100,1)?

Re: Help needed in viewing RDW of a record.

Posted: Sat Dec 26, 2015 3:33 pm
by nicc
Did you a) look at the syntax diagrams and the explanations, b) try the examples?

Re: Help needed in viewing RDW of a record.

Posted: Sat Dec 26, 2015 6:40 pm
by Robert Sample
The File Aid Batch Reference Manual has a good explanation of the use of RDW=, including the various values that can be used. If your site is licensed for File Aid, then you have access to the manuals and can read this explanation yourself.

Re: Help needed in viewing RDW of a record.

Posted: Sat Dec 26, 2015 9:13 pm
by ApexNC
From the File Aid MVS Reference Summary, p. 68:
[ ftp://ftp.compuware.com/pub/cso/germany ... ummary.pdf ]

RDW

Controls the inclusion or exclusion of the record descriptor word for variablelength
record processing. Must be the first parameter specified after a function.

RDW=n

Values for n are:
0 (Default) Include the RDW during record processing and display it on output.
1 Include the RDW during record processing, but do not display it on output.
2 Do not include the RDW during record processing, but display it on output.
3 Do not include the RDW during record processing, and do not display it on output

Personally, whenever a tool starts to impede rather than facilitate, I just use basic assembler language and all these annoyances usually disappear.

Re: Help needed in viewing RDW of a record.

Posted: Sun Dec 27, 2015 10:58 am
by VB RDW
ApexNC wrote:From the File Aid MVS Reference Summary, p. 68:
[ ftp://ftp.compuware.com/pub/cso/germany ... ummary.pdf ]

RDW

Controls the inclusion or exclusion of the record descriptor word for variablelength
record processing. Must be the first parameter specified after a function.

RDW=n

Values for n are:
0 (Default) Include the RDW during record processing and display it on output.
1 Include the RDW during record processing, but do not display it on output.
2 Do not include the RDW during record processing, but display it on output.
3 Do not include the RDW during record processing, and do not display it on output

Personally, whenever a tool starts to impede rather than facilitate, I just use basic assembler language and all these annoyances usually disappear.
Thank you so much. It helps.