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

Rexx - write - without stem variable


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top