Hi. I'm trying to enhance mi skills in pipe / specs and other.
I did following. DIRM SCAN USER and received 'dvhscan output ' to A. Then I ran this.. /*********************************************************************/ /* z/VM ***********************************************************/ /* extract CP acc and check from directory ****/ /* input from 'dirm scan user ' .. ****/ /* discard users with only G acc .. ****/ /*********************************************************************/ PIPE 'CMS ID!SPEC W3 1!VAR SYSPLEX' /* SYSPLEX NAME */ PIPE "(END #) < dvhscan output a ", '! drop first ', '! drop last ', '! chop 80 ', '! spec w1 1 w4 10 w5 20 w6 27 w7 33 ', '! A: NLOCATE 33-34 /G / ', '! sort 1-8 ', '! LITERAL ' ' ', '! LITERAL USER cp access ', '! LITERAL ' ' ', '! LITERAL 'SYSPLEX' ', '! > sortcpa data a ', '# ', 'A:', '! > testdat DATA A ' exit rc After the SPEC line data looks like this.. (saved under way to ensure position etc...) !...+....1....+....2....+....3....+....4. DIRMSAT AUTOONLY 128M 256M BG 6VMRAC30 LBYONLY 20M 32M BG SYSADMIN LBYONLY 16M 16M G 6VMPTK30 LBYONLY 32M 32M EG 6VMHCD20 LBYONLY 32M 64M GE MAINT630 LBYONLY 256M 1000M ABCDEFG PMAINT LBYONLY 128M 1000M G VMSERVP AUTOONLY 64M 64M BG 6VMLEN20 LBYONLY 32M 64M G And according to what I see then the result from this A: NLOCATE 33-34 /G / ' Should be that all G only users was removed from list. ! CP Priviliges starts in pos. 33 and there ought to be a 'blank' after only G users !... But result is this. !...+....1....+....2....+....3....+....4. 0 * * * Top of File * * * 1 DMLZ630 2 3 USER cp access 4 5 ÅALLOCÅ NOLOG 6 ÅDIRECTÅ NOLOG 7 ÅPAGEÅ NOLOG 8 ÅSPOOLÅ NOLOG 9 ÅSYSCKPÅ NOLOG 0 ÅSYSWRMÅ NOLOG 1 ÅTDISKÅ NOLOG 2 ADM NOLOG 32M 32M G 3 AUTOL54 AUTOONLY 32M 32M ABCDEG 4 BIN NOLOG 32M 32M G 5 BLDCMS AUTOONLY 64M 64M EG 6 BLDNUC AUTOONLY 2G 2G EG 7 BLDRACF AUTOONLY 32M 64M EG 8 BLDSEG AUTOONLY 2G 2G EG 9 CMS1 WD5JU8QP 32M 64M G 0 DAEMON NOLOG 32M 32M G 1 DATAMOVE AUTOONLY 32M 128M BG 2 DBVLP1 LBYONLY 1024M 2G BGSZ 3 DBVLP2 LBYONLY 1024M 2G BGSZ 4 DBVLP3 LBYONLY 1024M 2G BGSZ 5 DBVLP4 LBYONLY 1024M 2G BGSZ 6 DEFAULT NOLOG 32M 32M G 7 DIRMAINT AUTOONLY 128M 256M BDG 8 DIRMSAT AUTOONLY 128M 256M BG This is cut from PIPE manual. When NLOCATE is used to search for a string, uppercase and lowercase representations of the same characters do not match. A match is found only if the data in the input records matches the target string you specify, including blank characters. Blank characters contained in the input stream must match the blank characters specified in the target string. Is the DVHSCAN OUTPUT containing some characters which is not 'blank' after the G.. ? I wonder.. THX in advance.. Allan Linnemann Advisory IT-Specialist IBM SO Delivery, Server Systems Operations z/OS & z/VM RACF - Security Administration Mobile: +45 2880 9557 E-mail: [email protected] Linnemann: www.linnemann.it Find me on: "About z/OS i say as Mark Twain 'The report of my death was an exaggeration'" Prøvensvej 1 - B114 2605 Brøndby Denmark IBM Danmark ApS Kongevejen 495 B 2840 Holte, Danmark CVR nr.: 65305216 Medmindre andet er angivet ovenfor: / Unless Otherwise Stated Above: IBM Danmark ApS Kongevejen 495 B 2840 Holte, Danmark CVR nr.: 65305216
