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. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm


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