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

Help: Extracting some fields from VB to FB


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
yuvaraj80

New User


Joined: 03 Oct 2005
Posts: 10

PostPosted: Tue May 02, 2006 1:19 am
Reply with quote

Hi,

I used SORT to extract some columns from a VB file to an FB file. I get following error message.

ICE043A 3 INVALID DATA SET ATTRIBUTES SPECIFIED SORTOUT RECFM

Can someone please tell me if there is a way to copy from VB to FB like how I have tried below?

Your help is appreciated,
Yuvaraj

The SORT step is pasted below -

//EXTRACT EXEC PGM=SORT,REGION=1M
//SYSPRINT DD SYSOUT=*
//SYSABEND DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=ISDXYXN.SCON00P.GB.BCOAZ34D.AMF.G0053,
// DISP=SHR
//SORTOUT DD DSN=ISDXYXN.SCON00P.GB.BCOAZ34D.AMF.G0053.EXT,
// DISP=(NEW,CATLG,DELETE),
// DATACLAS=SMALL,
// DCB=(RECFM=FB,LRECL=16)
//SYSIN DD *
SORT FIELDS=COPY
OUTREC FIELDS=(5,9,PD,M0)
/*
Back to top
View user's profile Send private message
yuvaraj80

New User


Joined: 03 Oct 2005
Posts: 10

PostPosted: Tue May 02, 2006 1:42 am
Reply with quote

Guys,

I got it done. Used CONVERT statement with OUTFIL OUTREC. It worked.

Thanks for all those who tried to help me.

Find the SORT step below -

Code:

//EXTRACT EXEC  PGM=SORT,REGION=1M                           
//SYSOUT   DD  SYSOUT=*                                       
//SORTIN   DD  DSN=ISDXYXN.SCON00P.GB.BCOAZ34D.AMF.G0053,     
//             DISP=SHR                                       
//SORTOUT  DD  DSN=ISDXYXN.SCON00P.GB.BCOAZ34D.AMF.G0053.EXT,
//             DISP=(NEW,CATLG,DELETE),                       
//             DATACLAS=SMALL,                               
//             DCB=(RECFM=FB,LRECL=18)                       
//SYSIN     DD *                                             
  SORT FIELDS=COPY                                             
  OUTFIL OUTREC=(5,9,PD,M0),CONVERT
/*
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 May 02, 2006 2:11 am
Reply with quote

Right. See the following Smart DFSORT Tricks for more information on converting from VB to FB and from FB to VB:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/srtmst01.html#t11

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/srtmst03.html#t09

Note that you don't need:

// DCB=(RECFM=FB,LRECL=18)

DFSORT will set it automatically.
Back to top
View user's profile Send private message
yuvaraj80

New User


Joined: 03 Oct 2005
Posts: 10

PostPosted: Tue May 02, 2006 2:20 am
Reply with quote

thx...I browsed the link that you provided...
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Help in extracting data between doubl... DFSORT/ICETOOL 5
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts Extracting Compression Statistics fro... PL/I & Assembler 2
No new posts Cobol COMP-2 fields getting scrambled... Java & MQSeries 6
Search our Forums:

Back to Top