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: 7308

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: 7308

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 Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Copying Panvalet members to PDS LOGESHWARAN K CA Products 4 Mon Mar 06, 2017 10:45 am
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts Sort two file having same field, one ... himanshu malik DFSORT/ICETOOL 7 Thu Feb 02, 2017 10:09 am
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am


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