View previous topic :: View next topic
|
Author |
Message |
pavan reddy
New User
Joined: 21 Dec 2020 Posts: 15 Location: India
|
|
|
|
Hi, I am trying to report all ML1 files in mainframe dataset, the dcollect output record structure for ML1 is as below
34 (22) BITSTRING
11.. ....
..11 1111
1 UCFLAG1
UCLEVEL
*
INFORMATION FLAG 1
LEVEL OF VOLUME (L0, L1;
I am trying to print as HEADER('miglevel') on(39,1,BI) and it prints a number 160
please help me in printing the flag so that i can identify whether it is a ml1 or ml2 files |
|
Back to top |
|
|
pavan reddy
New User
Joined: 21 Dec 2020 Posts: 15 Location: India
|
|
|
|
I tried with HEADER('miglevel') on(UMLEVEL) which is also not working, so looking for some help to the right code |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1231 Location: Bamberg, Germany
|
|
|
|
For DCOLLECT ML1 Data you would write:
Code: |
INCLUDE COND=(73,1,BI,EQ,B'01......') |
|
|
Back to top |
|
|
pavan reddy
New User
Joined: 21 Dec 2020 Posts: 15 Location: India
|
|
|
|
Hi Joerg,
Thanks for your response...I was able to pull the output with Include cond but i want to report that as a column in my output whether the file is in ML1 or ML2(let me know if it is possible to report inte form of a header like we report for DSN - HEADER('datasetname') on(29,44,CH) |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1231 Location: Bamberg, Germany
|
|
|
|
You need to translate the Bit value before using them as text field. You can use INREC and IFTHEN=(WHEN=(..)) and OVERLAY for that.
Code: |
..n:73,1,CHANGE=(3,
B'10......',C'ML2',
B'01......',C'ML1',
B'00......',C'ONL').. |
|
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
Back to top |
|
|
pavan reddy
New User
Joined: 21 Dec 2020 Posts: 15 Location: India
|
|
|
|
Thank you for the support. |
|
Back to top |
|
|
Joerg.Findeisen
Senior Member
Joined: 15 Aug 2015 Posts: 1231 Location: Bamberg, Germany
|
|
|
|
@Pavan: It seems you were successful, right? |
|
Back to top |
|
|
|