View previous topic :: View next topic
|
Author |
Message |
neil.bryson
New User
Joined: 30 Sep 2008 Posts: 2 Location: Chester, UK
|
|
|
|
Hi there,
I'm trying to pull back the contents of a very large SAR report using SARBCH. When you view the report in SAR, it is broken down into sections acting like an index i.e. "SECTION 001", "SECTION 002" etc.
My question is does SARBCH have a parameter that will allow me to pull back a specific section of the report to a dataset? I've tried the following;
Code: |
/LOAD ID=REPORT2 GEN=1234 INDEX='SECTION 002'
|
but SAR complains that the index paramater is too long (apparantly IT should only be one byte). |
|
Back to top |
|
|
neil.bryson
New User
Joined: 30 Sep 2008 Posts: 2 Location: Chester, UK
|
|
|
|
I've managed to get this working so I'll list the solution in case anyone finds this in the future.
Code: |
/PRINT ID=REPORT2 VIEW=1 GEN=1234 SELECT='SECTION 002' |
Unfortunatly the SELECT and VIEW parameters only work with PRINT so it isn't a perfect solution but it doesn't take much effort to strip the SAR headers and trailers off.
That said, if anyone knows if there is a way of doing this with LOAD I'm all ears! |
|
Back to top |
|
|
|