Skip to content

Instantly share code, notes, and snippets.

@dkelosky
Created September 15, 2023 12:31
Show Gist options
  • Save dkelosky/837af4ec8195eeb1dd6b3521ace535b2 to your computer and use it in GitHub Desktop.
Save dkelosky/837af4ec8195eeb1dd6b3521ace535b2 to your computer and use it in GitHub Desktop.
REXX USSCMD
/* REXX */
cmd = "curl -k https://jsonplaceholder.typicode.com/posts/1 2>/dev/null"
address uss
"USSCMD COMMAND('"cmd"') STEM(RESPONSE)"
if RESPONSE.0 > 0 then do
do i = 1 to RESPONSE.0
say " " RESPONSE.i
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment