Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts Getting Mutiple input from Panels vidyaa CLIST & REXX 12 Mon Aug 14, 2017 1:28 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Need input in Scheduling Benchwarmer CA Products 5 Tue Jun 06, 2017 1:44 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us