On Mon, 20 Apr 2009 14:06:28 -0500, Elardus Engelbrecht
<[email protected]> wrote:

<snip>
>
>Good idea. That is if that 'refomartter' knows how to handle records with
>unknown record length. SMF type 30 is a good example.

Not really that difficult.

>
<snip>
>Not to discourage you, but what about SMF records type 30 with variable
>lengths? How will you handle this? I'm just curious.

Greatly simplified, image a SMF 30:4's information about the DDs in a step.
There are multiple DDs and could be multiple DSNs on multiple volumes.

//INFILE DD DSN=FILE1,UNIT=SYSDA,VOL=SER=VOL001
// DD DSN=FILE2,UNIT=SYSDA,VOL=SER=(VOL002,VOL003)
//OUTFILE DD DSN=FILE2,VOL=SER=VOL004

<STEP>
<DDS>
<DD>
<DDSTMT>
<NAME>INFILE</NAME>
<CONCAT>1</CONCAT>
<VOLUMES>
<VOLUME>
<VOLSER>VOL001</VOLSER>
<UCB>2F37</UCB>
</VOLUMES>
</DDSTMT>
<DDSTMT>
<NAME>INFILE</NAME>
</CONCAT>2</CONCAT>
</VOLUMES>
<VOLUME>
<VOLSER>VOL002</VOLSER>
<UCB>28B7</UCB>
</VOLUME>
<VOLUME>
<VOLSER>VOL003</VOLSER>
<UCB>2B73</UCB>
</VOLUME>
</VOLUMES>
</DDSTMT>
</DD>
<DD>
<DDSTMT>
<NAME>OUTFILE</NAME>
<VOLUMES>
<VOLUME>
<VOLSER>VOL004</VOLSER>
<UCB>3B7C</UCB>
</VOLUME>
</VOLUMES>
</DDSTMT>
</DD>
</DDS>
</STEP>


Looks horrible, but not that difficult to process using XML. XML is not
really meant to be human readable.

>
>>Back to my hole.
>
>No! Come back! If you can market your 'reformatter', you will get rich! :-D
>
>Groete / Greetings
>Elardus Engelbrecht

----------------------------------------------------------------------
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

Reply via email to