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
 
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am

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