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
 

 

Need data from VB file to a VB file from particular position

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Agni

New User


Joined: 22 Nov 2007
Posts: 83
Location: Chennai

PostPosted: Tue Mar 18, 2008 2:00 pm    Post subject: Need data from VB file to a VB file from particular position
Reply with quote

Hi All,

I have a PS file (VB) of 1000 byte length. I need an output file of PS file(VB) length of 400 bytes. In that the data should be from the input file from the position 700 - 1000 i.e 300 bytes from the input file to an output file of 400 bytes length.

Thanks
Agni.
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: Tue Mar 18, 2008 9:26 pm    Post subject:
Reply with quote

I assume you aren't counting the RDW in positions 700-1000 so they should really be positions 704-1004. You would, of course, need an RDW in the output records, so the length would be 4 more than you've said.

Quote:
the data should be from the input file from the position 700 - 1000 i.e 300 bytes from the input file to an output file of 400 bytes length.


Huh? You want 300 bytes from the input file but the output file should be 400 bytes. Do you want to pad 300 byte records with 100 bytes of blanks? Or do you actually want 300 bytes output records and an LRECL for the output data set of 400?

Please describe what you want more clearly.
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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm


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