Tape record length

 5 Replies
 0 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
John
Basic Member Send Private Message
Posts: 6
Basic Member
We have an interface that needs to create a fixed record length of 6000.  The workdef is defined as tape with a record length of 6000.  When the record is written, the record length is truncated where the last byte of data is found, which is around 4000 short of the required 6000 length required.  If I put a "." in byte 6000, the record length is fine but the receiving vendor cannot accept the file.  I am trying to use the cnvtape utility to force the record length but the file being written is 0 bytes.
mikeP
Veteran Member Send Private Message
Posts: 151
Veteran Member

We use a Lawson utility called CNVEXP to create a fixed rec length direct deposit file.

It lets you convert files to fixed length records of a user specified length.  See the System Utils Reference guide.

 

I've never tried it with a 6000 byte length though.

John
Basic Member Send Private Message
Posts: 6
Basic Member
cnvexp is for sequential files. When I run it on my tape file, I get the message "Invalid record Size - 6000"
mikeP
Veteran Member Send Private Message
Posts: 151
Veteran Member

I wondered about 6000 maybe pushing the envelope.  We actually use it for our ACH tape file, but the reclen is only 94:

 

cnvexp -f ...\pr160\1\tape 94 > ...\pr160\1\tapeout.txt 
 

Ragu Raghavan
Veteran Member Send Private Message
Posts: 477
Veteran Member
how about defining the file as Seq or Ext seq, record length 6002 instead of 6000 and forcing in life feed/carriage return in the last two bytes hex 0D0A.
John
Basic Member Send Private Message
Posts: 6
Basic Member
Thank you Ragu! I think that does it!