Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Very long input rec. Need to chop it into 750 bytes
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 Moderator


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

PostPosted: Fri Sep 16, 2011 4:09 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Formating the Input file sreekusr DFSORT/ICETOOL 3 Fri Feb 17, 2017 10:40 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 37 Tue Dec 06, 2016 8:04 pm
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us