Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Rexx - write - without stem variable

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
PrabakarV

New User


Joined: 21 Dec 2007
Posts: 88
Location: My Desk

PostPosted: Thu Sep 24, 2009 1:01 pm    Post subject: Rexx - write - without stem variable
Reply with quote

hi...

I need to write the header in the ps - COPYOUT ....

Code:
DO CTR = 1 TO OUT.0                           
   COPYBOOK1 = OUT.CTR                         
   COPYBOOK1 = STRIP(COPYBOOK1)               
   COPYBOOK = COPYPDS||"("||COPYBOOK1||")'"   
   COPYBOOK = STRIP(COPYBOOK)                 
   HEADER = 'COPYBOOK STARTS HERE'             
   ADDRESS TSO                                 
   "ALLOCATE DD(COPY) DSN("||COPYBOOK||")SHR" 
   "EXECIO * DISKR COPY (FINIS STEM COPY."     
   "EXECIO * DISKW COPYOUT (FINIS STEM COPY." 
   "FREE F(COPY)"                             
END                 


but i dunno how to write without having stem variable.... i can able to write with copy. stem var.... I am new to rexx and trying to learn... can anyone please help me....
Back to top
View user's profile Send private message

Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Sep 24, 2009 1:46 pm    Post subject:
Reply with quote

Code:

  Push " some data to be written"                                     
  "Execio 1 Diskw OUTFILE   ( Finis"
Back to top
View user's profile Send private message
PrabakarV

New User


Joined: 21 Dec 2007
Posts: 88
Location: My Desk

PostPosted: Thu Sep 24, 2009 2:54 pm    Post subject:
Reply with quote

Thank u very much Sambhaji... It works fine...
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Thu Sep 24, 2009 4:37 pm    Post subject:
Reply with quote

Welcome.. icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us