Precisely Speaking
February 04, 2012, 07:04:20 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: So what's news with you?  Tell us about it in "Getting To Know You"!
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: OPENSEQ Universe vs Unidata  (Read 3569 times)
DonQuixote
Uber-Pro
****
Posts: 99


To Dream the Impossible Dream...


« on: September 22, 2008, 11:43:04 AM »

In Universe, if the sequential file doesn't exist the ELSE statement can CREATE a sequential file.
But, what do you do in Unidata.  The Command CREATE does not exist.  I've tried the APPEND option in a WRITESEQ statement but the error is that the file is not open.  Any suggestions?
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1524



WWW
« Reply #1 on: September 24, 2008, 10:27:23 PM »

In Unidata you can do an ELSE NULL on the OPENSEQ, and then when you WRITESEQ variable APPEND ON buffer ... it'll create the file.  If you really want to create the file you can execute a "touch" on it via AIX, but then you have to know the path to the file and that can get to be a little problematic to read the VOC pointer and figure all that out.
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!