OnDemand Users Group

Support Forums => CMOD for Multiplatforms => Topic started by: LWagner on April 21, 2015, 09:32:49 PM

Title: .IND file format ?
Post by: LWagner on April 21, 2015, 09:32:49 PM
In migrating data across CMOD systems, the tools create .IND files.
I could not edit mine, save them and have them be usable.
To create them, can someone give me file specifics ?

Thanks in Advance
Title: Re: .IND file format ?
Post by: Justin Derrick on April 21, 2015, 10:38:38 PM
It could be line ending characters.  Use FTP in ASCII mode (if you're still allowed to use FTP) and it will correct the line endings when you copy from Windows to UNIX/Linux.

Otherwise, a description of the Generic Index format can be found in the Indexing Guide.

Hope that helps!

-JD.
Title: Re: .IND file format ?
Post by: LWagner on April 22, 2015, 05:15:27 PM
I created the .IND in Notepad. Two files in /arsauto on index server.  Nothing.
Added an empty filename.ARD , and filename.ARD was renamed to .ARD.failed.
But no 88 message for a failed load.
?
Title: Re: .IND file format ?
Post by: Ed_Arnold on April 22, 2015, 07:34:59 PM
Just a wild guess...the ind file is supposed to be lower case "ind".  Same as .out <---- lower case.

Ed
Title: Re: .IND file format ?
Post by: LWagner on April 22, 2015, 08:09:35 PM
lower case .ind .

Using a Windows CMOD index server with CMOD Configurator, not a daemon.
Could that make a difference in the filename format ? For PDF file, we use a seven part naming convention: MVS.JOB0000.app.appgroup.name-detail.data-type.pdf .
Might we need this ?
Title: Re: .IND file format ?
Post by: Justin Derrick on April 23, 2015, 10:00:07 AM
Hrm.  Are you sure you've got the 'fields' in the file name in the right order?  Silently marking the file as failed seems like it wasn't able to determine how to index the file.

-JD.
Title: Re: .IND file format ?
Post by: Alessandro Perucchi on April 28, 2015, 01:47:51 PM
I'm not sure to understand your problem... can you describe it in more details?

The format is basically like that:

CODEPAGE:XXX
GROUP_FIELD_NAME:name_field1
GROUP_FIELD_VALUE:my_value_1
...
GROUP_OFFSET:0
GROUP_LENGTH:0
GROUP_FILENAME:my_filename.out


And the order for the pairs GROUP_FIELD_NAME/VALUE are not important, except that first you must have GROUP_FIELD_NAME followed by GROUP_FIELD_VALUE.

Then you had the very old format of the .ind, which is not anymore valid (ended with CMOD V9.x, and maybe also removed with CMOD 8.5.0.6+, but not 100% sure) where you needed to put all the index field name at the beginning of the file, and then following this "header", you put the values of each documents sequentially.
Title: Re: .IND file format ?
Post by: Ed_Arnold on April 28, 2015, 01:55:28 PM
The .ind file the IVP uses is at:

/usr/lpp/ars/V8R5M0/samples/salesinvoice.ind

Ed
Title: Re: .IND file format ?
Post by: Alessandro Perucchi on April 28, 2015, 02:05:52 PM

:-) that works maybe in z/OS, but in MP there are no such file !! :-D