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
 

 

Copying select fields from vb to vb files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Tue Oct 25, 2011 2:19 pm    Post subject: Copying select fields from vb to vb files
Reply with quote

Hi,

I have a requirement to copy records from a 111 bytes vb file to another 107 vb file excluding a 4 bytes field as shown below.

SORT FIELDS=COPY
OUTFIL FNAMES=DWNLD,INCLUDE=(5,3,CH,EQ,C'AME'),
BUILD=(1,4,5:9,103)
END

When i ran above code, i get 'DWNLD OUTREC - SHORT RECORD'.
Length of Records in my input file DWNLD is varying and what i given in build statement is the maximum length '103' of the required field.

Please help me in solving the issue.

Thanks
Vijay
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Oct 25, 2011 2:41 pm    Post subject: Reply to: DFSORT - Copying select fields from vb to vb files
Reply with quote

Code:
BUILD=(1,4,5:9)


Like that should be 9-to-the-end-of-the-current-record. As long as none of your records are less than five bytes long (+ RDW) then you should be OK.
Back to top
View user's profile Send private message
cvijay784
Warnings : 1

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Tue Oct 25, 2011 3:02 pm    Post subject: Reply to: DFSORT - Copying select fields from vb to vb files
Reply with quote

Wow...Its working fine. Thanks a lot.

Vijay
Back to top
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Oct 25, 2011 8:21 pm    Post subject: Reply to: DFSORT - Copying select fields from vb to vb files
Reply with quote

No problem. You do realise that the previously short records are now even shorter?
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Sum Fields ballaswaroop DFSORT/ICETOOL 4 Tue May 02, 2017 11:07 am
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm


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