Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Moving values to a variable of copybo... Vignesh Sid COBOL Programming 6 Wed Sep 06, 2017 1:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us