Jump to content


Raul Fernandez

Member Since 09 Jan 2002
Offline Last Active Mar 09 2004 01:18 PM
-----

Topics I've Started

Multiple Call

12 January 2004 - 06:00 PM

Hi, All
How can I call multiple function from a function?

Thanks,

Raul Fernandez

Can I compare to ascii file

06 August 2002 - 02:25 PM

Hi, How can I compare two ascii file and put the differences into another file.

I used diff command, but this command add < or > in the first position of the resulting file and I do not want it.

Thanks

PROBLEM COMPARING TWO ASCII FILES

06 August 2002 - 01:17 PM

Hi all,

I need some help with a problem I have. Following is a description of the problem:

What I want to accomplish:

I have two ASCII files and want to create a third one with the not matching records (comparing file1 with file2).

What I'm doing:

I've created a function with one characteristic containing file1, file2 and file3 (resulting file). I have just one logical file definition, so I'm using ALIAS to point to different physical file (file1 and file2).

DEFAULT LOGIC:
ALIAS ('LOGIC_FILE1','FILE1')
ALIAS ('LOGIC_FILE2','FILE2')
ALIAS ('LOGIC_FILE3','FILE3')
* a different logic file was created with the same
file definition

FILE INFORMATION (Characteristic 1)
LOGIC_FILE1 LOOKUP (ALIAS FILE1)
LOGIC_FILE2 LOOKUP (ALIAS FILE2)
LOGIC_FILE3 ADD (ALIAS FILE3)

When file2 is read the information it brings is the same information of file1. By the way, the information in the two files are different.

Any help will be greatly appreciated,

Thanks

Problem writing to an ASCII file

17 June 2002 - 11:18 PM

Hello,

I'm working with C-ISAM file. I defined an ASCII file with external format flagged as YES and file type SEQ.

The problem:
my output file has fixed length, so I decide to define a field for each field requested. When I run the function I received the following error:

101 - INVALID EXTERNAL TYPE
< FILE NAME >
LS #: < ls screen were fields are assigned >

Then I decide to change the fields for just one with the full size (359 chars). I'm not longer getting the error describe above but instead I'm getting other one describe below:

Because the record is a fixed length I fill the field with space to complete the field length. The weird thing is that at the end of the record PROIV is not writing the spaces I'm telling to. By the way I'm writing CR+LF at the end of the line.

Thank You
Raul Fernandez

ASCII file reading problem

26 February 2002 - 06:41 PM

Hello,
I'm working in PROIV 4.5 for AIX. I want to transfer an ASCII file to my application within AIX.

How can I read this file from my application to update an existing file within my application?

Thanks in Advance