Need to format my REXX output

IBM's Command List programming language & Restructured Extended Executor

Re: Need to format my REXX output

Postby Pedro » Thu Oct 15, 2020 1:07 am

Sorry, I am not familiar with the data...

but based on your desired "I want it to look like" example, it looks like this stem variable has two columns of data in it and they do not seem to align well:
contenuto = value(nome_colonna"."rows)

I think you should parse CONTENUTO into two variables and make sure they align better. Something like:
contenuto = value(nome_colonna"."rows)
parse var contenuto  DA_jobname DA_cpupr
Say LEFT(DA_jobname,8) RIGHT(DA_cpupr,8,' ')
Pedro Vera
User avatar
Posts: 684
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: Need to format my REXX output

Postby willy jensen » Thu Oct 15, 2020 1:25 am

you might want to use the STRIP function to ensure no surrounding blanks.
willy jensen
Posts: 455
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 69 times


Return to CLIST & REXX


  • Related topics
    Last post