Print command in rexx



IBM's Command List programming language & Restructured Extended Executor

Print command in rexx

Postby chinkump » Thu Apr 24, 2014 12:05 am

Hi Experts,

What is the significance of below command.
jobnm,jobnbr,jobdsn and jobname is being populated in the program

ADDRESS TSO "output "jobnm"("jobnbr")",
"print('"jobdsn"("strip(jobname)")') keep"

When I am trying to execute the above function in a single line rexx exec it is throwing some Space abend.
ADDRESS TSO "OUTPUT Z103468#(JOB00069) PRINT(Z103468.JCL(JOBNAME)) KEEP"

Can some on pls help.

Thanks,
Chinkump
chinkump
 
Posts: 26
Joined: Fri Jan 20, 2012 10:48 pm
Has thanked: 3 times
Been thanked: 0 time

Re: Print command in rexx

Postby Akatsukami » Thu Apr 24, 2014 12:35 am

"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: Print command in rexx

Postby Pedro » Thu Apr 24, 2014 1:59 am

it is throwing some Space abend.

Show us the messages.

Wild guess: You need to allocate a larger data set to contain your output.

I would not save the job output (lrecl=133) to a JCL file (likely lrecl=80)
Pedro Vera
User avatar
Pedro
 
Posts: 684
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: Print command in rexx

Postby chinkump » Thu Apr 24, 2014 10:20 pm

Thanks experts...
chinkump
 
Posts: 26
Joined: Fri Jan 20, 2012 10:48 pm
Has thanked: 3 times
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post