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 copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm


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