IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Very long input rec. Need to chop it into 750 bytes


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
madmartinsonxx

New User


Joined: 10 Dec 2010
Posts: 96
Location: Massachusetts

PostPosted: Fri Sep 16, 2011 2:28 am
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Sep 16, 2011 4:09 am
Reply with quote

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
View user's profile Send private message
madmartinsonxx

New User


Joined: 10 Dec 2010
Posts: 96
Location: Massachusetts

PostPosted: Fri Sep 16, 2011 9:34 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 0
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts force tablespace using LISTDEF input DB2 1
No new posts Two input files & writing counter... DFSORT/ICETOOL 12
No new posts Use input file with OMIT rcd keys? DFSORT/ICETOOL 15
Search our Forums:

Back to Top