IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

retrieve volume records from decollect using icetool.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Praveen Kumar Kolar

New User


Joined: 18 Mar 2021
Posts: 31
Location: India

PostPosted: Tue May 25, 2021 3:27 am
Reply with quote

Hi Team,

Can someone please help me with the ICETOOL JCL to generate the list of SMS and NON SMS managed volumes from the vol level decollect report.

I have tried to generate it using the below jcl but was unsuccessful.

code:

SORT FROM(RAWDCOL) TO(DCOL1) USING(SMFI)
DISPLAY FROM(DCOL1) LIST(OUT#REP) -
NOHEADER ON(29,6,CH) -
ON(81,2,HEX) -
ON(35,1,BI)
BLANK
/*
//SMFICNTL DD *
SORT FIELDS=(29,6,CH,A)
INCLUDE COND=(9,1,CH,EQ,C'V')

statement:

I am getting the volume name and device number but the sms/non sms information is missing.

30(X'1E') BITSTRING 1 DCVFLAG1 INFORMATION FLAG #1
.... ..11 DCVPHYST PHYSICAL STATUS


VALUES FOR DCVPHYST—PHYSICAL STATUS OF VOLUME
1 BIT 00000011 DCVMANGD VOLUME IS MANAGED BY SMS
1 BIT 00000001 DCVINITL IN CONVERSION TO SMS
1 BIT 00000000 DCVNMNGD NON-SMS MANAGED VOLUME
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1255
Location: Bamberg, Germany

PostPosted: Tue May 25, 2021 8:39 am
Reply with quote

Please, remember to use code tags!

Use something like this to convert the Bit value to a string:
Code:
.. 35,1,CHANGE=(7,B'......00',C'NonSMS ', 
                  B'......01',C'Initial', 
                  B'......11',C'Convert'),
                  NOMATCH=(C'???????') ..
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1255
Location: Bamberg, Germany

PostPosted: Tue May 25, 2021 9:37 pm
Reply with quote

Praveen Kumar Kolar wrote:
SORT FIELDS=(29,6,CH,A)
INCLUDE COND=(9,1,CH,EQ,C'V')

Consider using plain SORT instead of ICETOOL or SYNCTOOL. For what you are doing it's more straight forward. Also put statements in the order they are executed.
DCOLLECT is working with two letter codes, please use it like this:
Code:
INCLUDE=(9,2,CH,EQ,C'V ')
Back to top
View user's profile Send private message
Praveen Kumar Kolar

New User


Joined: 18 Mar 2021
Posts: 31
Location: India

PostPosted: Thu May 27, 2021 10:37 pm
Reply with quote

Hi Team,

I was able to get the list of non sms volumes using the below condition.

[/code]

SORT FIELDS=(29,6,CH,A)
INCLUDE COND=(9,1,CH,EQ,C'V',AND,35,1,BI,EQ,B'......00')

Thank you all for the help.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1255
Location: Bamberg, Germany

PostPosted: Fri May 28, 2021 7:57 am
Reply with quote

See https://www.ibm.com/docs/en/zos/2.1.0?topic=works-dfsort-processing and change your SYSIN accordingly.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Shift left VB record without x00 endi... DFSORT/ICETOOL 11
Search our Forums:

Back to Top