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
 
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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Addition of two records on 2 fields amar143 SYNCSORT 8 Tue Oct 03, 2017 11:14 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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