How to resolve the algorithm Hostname step by step in the REXX programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Hostname step by step in the REXX programming language
Table of Contents
Problem Statement
Find the name of the host on which the routine is running.
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Hostname step by step in the REXX programming language
Source code in the rexx programming language
say value('COMPUTERNAME',,"ENVIRONMENT")
say value('OS',,"ENVIRONMENT")
say value('COMPUTERNAME',,"SYSTEM")
say value('OS',,"SYSTEM")
say userid()
'VER' /*this passes the VER command to the MS DOS system. */
/* Rexx */
address command "hostname -f" with output stem hn.
do q_ = 1 to hn.0
say hn.q_
end q_
exit
You may also check:How to resolve the algorithm Factorions step by step in the Raku programming language
You may also check:How to resolve the algorithm Associative array/Creation step by step in the Nim programming language
You may also check:How to resolve the algorithm Gamma function step by step in the M2000 Interpreter programming language
You may also check:How to resolve the algorithm Conditional structures step by step in the Fancy programming language
You may also check:How to resolve the algorithm Rhonda numbers step by step in the Julia programming language