View previous topic :: View next topic
|
Author |
Message |
madmartinsonxx
New User
Joined: 10 Dec 2010 Posts: 96 Location: Massachusetts
|
|
|
|
Hi,
I saw a post a while back where Skolusu ? was describing how to take a variable byte input record with multiple records therein and chop it into XXXX byte records using IFOUTLEN.
My req is first to chop the variable length record into 750 bytes, because thats where the creator of the of the file on the PC happened to put an X'25', and then get the REAL data record from those which is 582 bytes.
I just am not savvy enough to filter down to that exact post. Yes I looked at the manual and looked online but the one i read here was real effective and tight. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You need to explain more clearly what you're trying to do.
Please show an example of the records in your input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input file and expected output file. |
|
Back to top |
|
|
madmartinsonxx
New User
Joined: 10 Dec 2010 Posts: 96 Location: Massachusetts
|
|
|
|
Frank,
Thank you for your time. We got around this situation by overriding the FTP defaults when we went to GET the file off the server. the X'25' was always in position 705 so we did one of these in the connection string to the server:
TESTPWRPLANTBATCH.XXXXXX.COM
SYASY92
SYASY92
LOCSITE DCB LRECL=705 RECFM=FB BLOCKSI=705 WRAPRECORD
Then we BUILD(1,582) to get what we really need as the actual data records. Again, many thanks. |
|
Back to top |
|
|
|