home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.sys.tandy      Life is dandy cuz you're gettin a Tandy!      5,684 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 4,113 of 5,684   
   Mike Y to Ira   
   Re: JCL files from XP   
   01 Jun 06 08:35:48   
   
   From: joe@user.com   
      
   "Ira"  wrote in message   
   news:0mgr725k64e2i1vcc9flunj6k6jriia48t@4ax.com...   
   > Greets,   
   >   
   > In maintaining the site, I am constantly in need of multi file   
   > operations (my current need is that I have received a large number of   
   > ORC files, and I want to make sure all the ones stored in ASCII are   
   > converted to ORC, which requires me to do a JCL on ORCONV for each   
   > file, since I cant use wildcards inside the emulator).   
   >   
   > My problem with this is that each time I try to create a JCL file   
   > using an XP editor, the JCL file never runs in the emulator.  I am   
   > pretty sure that it has to do with needing an 0A0D (LF and CR) on the   
   > TRS-80, but that XP only generates the 0D.   
   >   
   > So ... does anyone know how I can go about creating JCL files in a   
   > text editor which will run under an emulator?   
   >   
   > Thanks   
   > Ira   
      
   I'm pretty sure your editor in XP ends a text file with 0D 0A.  To take that   
   out, use debug.  Just use "debug test.txt" to edit the file test.txt.  Then   
   hit the "r" key to show the registers.  CX will contain the length of the   
   file (BX:CX if its bigger than 16 bits).  Just change CX to be 1 less ("rcx"   
   prompts for a new value for CX) then write the file (with a "w") and it   
   should be fine.  By lessening the file size by 1 byte you effectively cut   
   off   
   that trailing 0A   
      
   Mike   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca