IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Regarding EXECIO * DISKW


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
murugan_mf

Active User


Joined: 31 Jan 2008
Posts: 148
Location: Chennai, India

PostPosted: Fri Jan 16, 2009 11:17 pm
Reply with quote

Hi,

I'm writing the string murugan in a PS three times. Pelase find the below code. The code is sucessful while running, but when I open that PS, it is empty.

Please let me know where I'm wrong. Initially, ALLOC of that PS is given correctly.
Code:

.
.
.
DO J = 1 TO 3                                                           
   OUTREC = 'MURUGAN'                           
   SAY OUTREC                                           
 "EXECIO * DISKW MYOUTD (STEM OUTREC"                   
END     
.
.
.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Fri Jan 16, 2009 11:28 pm
Reply with quote

You did not use a stem variable.
Back to top
View user's profile Send private message
murugan_mf

Active User


Joined: 31 Jan 2008
Posts: 148
Location: Chennai, India

PostPosted: Fri Jan 16, 2009 11:41 pm
Reply with quote

Thanks for your reply.

That's not a STEM variable.

When I use
Code:
"EXECIO * DISKW MYOUTD (OUTREC"

I'm getting this error.
Code:
IRX0617E EXECIO error. Unrecognized or ambiguous keyword option found.

Please let me know how to correct it.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Jan 17, 2009 1:25 am
Reply with quote

First, a link to the documentation for the EXECIO command.

There are a bunch of methods you could use to obtain your desired results. Here are a few:

Code:

/* REXX */
...
Do j = 1 To 3
  Interpret outrec||j "=" 'MURUGAN'
End
"EXECIO * DISKW myoutd (STEM outrec FINIS"
...

Do j = 1 To 3
  outrec.j = 'MURUGAN'
End
"EXECIO * DISKW myoutd (STEM outrec. FINIS"
...

outrec = 'MURUGAN'
Do j = 1 To 3
  Queue outrec
End
"EXECIO * DISKW myoutd (FINIS"
...

outrec = 'MURUGAN'
Do j = 1 To 3
  Queue outrec
End
"EXECIO "Queued()" DISKW myoutd (FINIS"
...

Do j = 1 To 3
  outrec = 'MURUGAN'
  Queue outrec
  "EXECIO 1 DISKW myoutd"
End
"EXECIO 0 DISKW myoutd (FINIS"
...

outrec = 'MURUGAN'
Do j = 1 To 3
  Push outrec
End
"EXECIO 3 DISKW myoutd (FINIS"
...
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2546
Location: Silicon Valley

PostPosted: Sun Jan 18, 2009 10:05 pm
Reply with quote

I prefer the stem approach:
Code:

Do j = 1 To 3
  outrec.j = 'MURUGAN'
End
"EXECIO * DISKW myoutd (STEM outrec. FINIS"



For the queue examples, I think you should use a new stack
Code:

NEWSTACK
outrec = 'MURUGAN'
Do j = 1 To 3
  Queue outrec
End
"EXECIO * DISKW myoutd (FINIS"
DELSTACK
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts REXX EXECIO STEM No newline CLIST & REXX 3
No new posts To Understand EXECIO Read Parameter OPEN CLIST & REXX 2
No new posts why i need hit enter after EXECIO * D... CLIST & REXX 10
No new posts EXECIO DISKW "successful", ... CLIST & REXX 6
No new posts ISPF Length error while running REXX ... TSO/ISPF 10
Search our Forums:

Back to Top