From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Padiyath Kumar Newsgroups: gmane.os.tru64.managers Subject: SUMMARY:Creating a a PC datafile from a Tru64 fortran Date: Tue, 26 Nov 2002 09:19:33 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: main.gmane.org 1038298707 25730 80.91.224.249 (26 Nov 2002 08:18:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2002 08:18:27 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18GavK-0006gq-00 for ; Tue, 26 Nov 2002 09:18:26 +0100 Original-Received: (qmail 3529 invoked by uid 5); 26 Nov 2002 08:20:20 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 3520 invoked by uid 49493); 26 Nov 2002 08:20:20 -0000 Original-Received: from Kumar.Padiyath@psi.ch by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-1.2/5.0):. Processed in 0.465405 secs); 26 Nov 2002 08:20:20 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 26 Nov 2002 08:20:19 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H6600M5VCHURF@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 26 Nov 2002 03:20:19 -0500 (EST) Original-Received: from psi12.psi.ch (psi12.psi.ch [129.129.190.112]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with SMTP id <0H6600A52CHGSP@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 26 Nov 2002 03:20:05 -0500 (EST) Original-Received: from 129.129.190.113 by psi12.psi.ch (InterScan E-Mail VirusWall NT) ; Tue, 26 Nov 2002 09:19:53 +0100 Original-Received: by psi13.psi.ch with Internet Mail Service (5.5.2650.21) id ; Tue, 26 Nov 2002 09:19:43 +0100 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Internet Mail Service (5.5.2650.21) Xref: main.gmane.org gmane.os.tru64.managers:2563 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2563 Many thanks for all the reply.The following examples works for both fortran and c programs: Fortran: ======= program test open(1,status='new', recordtype='stream_lf') n=1 do i=1,10 write(1,*) n n=n+1 end do end C-program: ========== #include #include main() { printf("Hello, World\r\n"); } with best regards, Kumar > Hello, > One of our user creating a data file from Fortran and C-program on Tru64. >He has got an open statement inside the programs for this file creation. >The data file contents are observed during the execution of the job on Tru64 >from a Window PC with a commecial graphic SW.Till now the user was using >SoftWindows SW on UNIX machine to create a PC file. The PC file requires >^M character at the end of each record. The question is: >How can he create the records with a ^M instead of ? >How he has to open his data file in the program? He wants to create >this PC file format so that he is in a position to evaluate the data >on the PC during the JOB runs on >Is there any arguement in the open statement which I can use? with regards, Kumar