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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm


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