IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to take particular fields from a VB file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
varalakshmi.G

New User


Joined: 04 Jun 2007
Posts: 55
Location: Hyderabad

PostPosted: Tue Sep 18, 2007 3:30 pm
Reply with quote

Hi,

Could u tell me that,if I want to retrieve only particular fields from a VB file and To sort that file What is the syntax of INREC fields.

Thanks in advance,
Varalakshmi.G
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue Sep 18, 2007 3:38 pm
Reply with quote

Have you looked at a sort manual?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Sep 18, 2007 4:26 pm
Reply with quote

Hi Varalakshmi,

Would u please provide us the sample i/p & o/p so that we can provide u sort card.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Tue Sep 18, 2007 5:05 pm
Reply with quote

As requested please provide us more details on your requirement.

One thing that has to be kept in mind while writing SORT card for VB datasets is to include the 4 bytes for RDW.

Please do a search on this forum as we have discussed this before.
Back to top
View user's profile Send private message
varalakshmi.G

New User


Joined: 04 Jun 2007
Posts: 55
Location: Hyderabad

PostPosted: Tue Sep 18, 2007 6:14 pm
Reply with quote

Hi,
I have an input file of VB format and i want only some particular fields of this i/p file and i want to do sorting on this file.I have added 4bytes to the length of the field while declaring the control card and i declared as
INREC FIELDS=(39,18)
SORT FIELDS=(39,18,CH,A) but it is giving U016 error.
Could u tell me abt this error.


Thanks.
Varalakshmi
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Tue Sep 18, 2007 6:22 pm
Reply with quote

varalakshmi.G wrote:
I have an input file of VB format and i want only some particular fields of this i/p file and i want to do sorting on this file.I have added 4bytes to the length of the field while declaring the control card and i declared as
INREC FIELDS=(39,18)
SORT FIELDS=(39,18,CH,A) but it is giving U016 error.
Could u tell me abt this error.
Wouldn't the inrec need the 1,4 for the llbb also?
What is the message number and text for the error?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Sep 18, 2007 9:26 pm
Reply with quote

Varalakshmi.G,

Assuming that you've accounted for the RDW in the starting positions, the correct DFSORT statements would be:

Code:

   INREC BUILD=(1,4,5:39,18)
   SORT FIELDS=(5,18,CH,A)


You must specify the RDW (1,4) in the INREC statement, and you must use the positions from the reformatted record for the SORT statement.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top