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.
rodlee Absent Member.
Absent Member.
2631 views

Windows Server 2012 and C$SYSTEM

Jump to solution

We updated to Acu 9.2.2 on Windows Server 2012 to address the reported issue with C$SYSTEM for Windows 8 assuming our issue with Server 2012 was related to the same.  The purpose of the call is to display a pdf file with the default pdf viewer as follows:

          move spaces to ws-file-name
           string 
               "C:\Image\a.pdf"
              into ws-file-name
            end-string
           inspect ws-file-name replacing
                       trailing " " by low-value.

           call "C$SYSTEM" using ws-word-file-name, 97
                giving status-code.

This method works with XP, Win7 (32 and 64), Windows 8, and Windows Server 2008.

Any ideas on how we can resolve?

Thanks.

 

 

 

Tags (1)
0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

RE: Windows Server 2012 and C$SYSTEM

Jump to solution

I was doing some testing on Windows Server 2012 last year and I noticed that the Power Shell works a bit differently than a Command Prompt. Wiith the Powershell it works better when you preface your command with cmd /c

Try a call to System and use the cmd /c and see if your PDF displays.

View solution in original post

0 Likes
3 Replies
Micro Focus Expert
Micro Focus Expert

RE: Windows Server 2012 and C$SYSTEM

Jump to solution

The sample program calls vi.exe. You can either make sure you have vi.exe on your system (in the PATH), or use another program. Note that the program MUST be a non-GUI program (so notepad.exe won't test the error).On the Windows 2012 server, does this program run:

      identification division.

      program-id. ziptest is initial.

      environment division.

      input-output section.

      file-control.

      data division.

      file section.

      working-storage section.

      copy "acucobol.def".

      77 Ftp-Stat       pic 9(9) comp-4 value 0.

      procedure division.

      Main section.

  call "c$system" using

               "vi.exe systest.cbl",

               csys-minimized

          end-call

          exit program.

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: Windows Server 2012 and C$SYSTEM

Jump to solution

I was doing some testing on Windows Server 2012 last year and I noticed that the Power Shell works a bit differently than a Command Prompt. Wiith the Powershell it works better when you preface your command with cmd /c

Try a call to System and use the cmd /c and see if your PDF displays.

View solution in original post

0 Likes
rodlee Absent Member.
Absent Member.

RE: Windows Server 2012 and C$SYSTEM

Jump to solution

That did it!   Thank you!

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.