Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
HighTouch Absent Member.
Absent Member.
356 views

Need help related to using a C$SYSTEM Tasklist > redirection to a file name to be read again. See code provided. Things I learned: I have to use 255 versus 129 and it works for a non-acuthin (thick) user, but the @[DISPLAY] will not create the file

 

 

 ACCEPT SYSTEM-INFORMATION FROM SYSTEM-INFO.
           IF STATION-ID (1:2) = "at"
           STRING
            "@[DISPLAY]:c:\apps\PIDLIST-" DELIMITED BY SIZE    
              STATION-ID DELIMITED BY " "
               ".csv" DELIMITED BY SIZE
                  INTO WS-TASK-LIST-CSV-FILE-NAME
           else
             STRING
            "c:\apps\PIDLIST-" DELIMITED BY SIZE    
              STATION-ID DELIMITED BY " "
               ".csv" DELIMITED BY SIZE
                  INTO WS-TASK-LIST-CSV-FILE-NAME
           end-if.
           ACCEPT SYSTEM-INFORMATION FROM SYSTEM-INFO.
           STRING "tasklist.exe /FO CSV /NH | "
                 delimited by size
               "findstr wrun32.exe > "
               DELIMITED BY SIZE
                WS-TASK-LIST-CSV-FILE-NAME DELIMITED BY " "           
                 INTO CMD-LINE.  
           CALL "C$SYSTEM" USING CMD-LINE, 255
               giving EXIT-STATUS.

0 Likes
1 Reply
HighTouch Absent Member.
Absent Member.

RE: Need help related to using a C$SYSTEM Tasklist > redirection to a file name to be read again. See code provided. Things I learned: I have to use 255 versus 129 and it works for a non-acuthin (thick) user, but the @[DISPLAY] will not create the

RESOLVED, USED VALUE 64 FOR BOTH CONDITIONS OF IF/ELSE AND ELIMINATED IF/ELSE OF COURSE.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.