COMMAND NOT FOUND



IBM's Command List programming language & Restructured Extended Executor

Re: COMMAND NOT FOUND

Postby sergeyken » Wed Sep 11, 2019 9:58 pm

samb01 wrote:Sorry but as you can see, my output dataset are in SHR and it works :

but i can't understand what is for you "output portion (sorry for my english...)


As "portion" I meant "the group of records going to the same file".

Since you are using keyword (FINIS after each record being written to the file, then every subsequent EXECIO for the same file will need to re-open it again before writing new line (and closing it again after that). When there is no explicit option (OPEN the file in REXX is open automatically if was closed before the I/O begins. Besides of absolute stupidity and inefficiency of performing the whole sequence of OPEN-WRITE-CLOSE for every line going to the file, as per zOS consideration, every new OPEN for output file without DISP=MOD, or DISP=NEW, or SYSOUT=* will position the file at the beginning of it before output begins, and hence overriding all its previous content.

I have been faced this issue so many times in my life that I don't want to run extra test just to demonstrate it to those who doesn't want to learn something.

I gave you an advice. You can accept it, or not, it's up to you.
Javas and Pythons come and go, but JCL and SORT stay forever.
User avatar
sergeyken
 
Posts: 408
Joined: Wed Jul 24, 2019 10:12 pm
Has thanked: 6 times
Been thanked: 40 times

Previous

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post