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

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

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 SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 5 Sat Jan 21, 2017 4:02 am
No new posts Syncsort Help to group fields sudhakarraju SYNCSORT 6 Thu Dec 29, 2016 1:38 am
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm


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