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
 

 

Copy a VB format file to FB format file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
deepak_munjal

New User


Joined: 30 May 2008
Posts: 43
Location: Mumbai

PostPosted: Mon Jul 06, 2009 5:31 pm    Post subject: Copy a VB format file to FB format file
Reply with quote

Hi all,

I have searched this topic on this forum but didn't find anywhere.
Could anyone help me....
I have to copy all the records from a VB file(LRECL=779) to a FB file(LRECL=179).
I need to copy only first 179 positions from input file.

I am using SORT utility with following this code:

Code:

//SORTIN   DD DISP=SHR,
//         DSN=TEST.deepak.input
//SORTOUT  DD DISP=(NEW,CATLG,DELETE),
//         UNIT=DISK,
//         SPACE=(TRK,(9600,9600),RLSE),
//         DSN=TEST.deepak.output
//SYSIN     DD *
   SORT FIELDS=COPY
   OUTREC FIELDS=(1,179)
/*
//*


I'm getting this error:---

1,- CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R10 - 07:40 ON MON JUL
SORT FIELDS=COPY
OUTREC FIELDS=(1:5,179)
3 INVALID DATA SET ATTRIBUTES: SORTOUT RECFM - REASON CODE IS 08
0 VLSHRT NOT USED FOR SORT, MERGE, INCLUDE, OMIT OR SUM STATEMENT FIELDS
0 C5-K90014 C6-K90014 C7-BASE C8-K42136 E7-K44564
3 END OF DFSORT

Deepak
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Mon Jul 06, 2009 5:42 pm    Post subject: Reply to: Copy a VB format file to FB format file
Reply with quote

Here's a couple of similar previous topics you might want to review:

http://www.ibmmainframes.com/viewtopic.php?t=28435
http://www.ibmmainframes.com/viewtopic.php?t=23265

as well as a link to the "Smart DFSORT Tricks" document:

http://www.ibm.com/support/docview.wss?rs=0&uid=isg3T7000094
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Mon Jul 06, 2009 9:55 pm    Post subject:
Reply with quote

Deepak,

Change your DFSORT control statements to the following:

Code:

  SORT FIELDS=COPY           
  OUTFIL VTOF,BUILD=(5,179)       
Back to top
View user's profile Send private message
deepak_munjal

New User


Joined: 30 May 2008
Posts: 43
Location: Mumbai

PostPosted: Tue Jul 07, 2009 1:46 am    Post subject: Reply to: Copy a VB format file to FB format file
Reply with quote

Thanks now its working.
Can you please just explain where we need to use OUTFIL and where we need to use OUTREC... ?
Tell me meaning of VTOF.... And function of BUILD... if you know ...

Thanks in advance...
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Tue Jul 07, 2009 2:18 am    Post subject:
Reply with quote

Quote:
Tell me meaning of VTOF.... And function of BUILD... if you know ...


Given that I've been developing DFSORT and ICETOOL for over 25 years, you could say that "I know". icon_lol.gif

VTOF converts VB input records to FB output records.

BUILD indicates the fields to be included in the output record.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

http://www.ibm.com/support/docview.wss?rs=0&uid=isg3T7000080

The OUTFIL statement has many operands not available with the OUTREC statement such as FTOV, VTOF, STARTREC, ENDREC, SAVE, HEADER1, etc.

For complete details on DFSORT's OUTREC statement, see:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA30/3.14?DT=20080528171007

For complete details on DFSORT's OUTFIL statement, see:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CA30/3.13?DT=20080528171007
Back to top
View user's profile Send private message
sajjan jindal
Warnings : 1

New User


Joined: 09 Sep 2007
Posts: 60
Location: india

PostPosted: Tue Jul 07, 2009 9:42 am    Post subject: Reply to: Copy a VB format file to FB format file
Reply with quote

Hey Frank,

You are an excellent guy, helping people in such a humble way. I have seen so many replying here in the forum with a lots of attitude.
But you seem to be outstanding in the way reply.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Jul 07, 2009 12:12 pm    Post subject:
Reply with quote

Quote:
if you know
Just for a Note -- He has "invented" the ICETOOL. In other words, he is The Kernel-writer of that. So he does know... icon_smile.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Jul 07, 2009 2:06 pm    Post subject: Re: Reply to: Copy a VB format file to FB format file
Reply with quote

sajjan jindal wrote:
Hey Frank,

You are an excellent guy, helping people in such a humble way. I have seen so many replying here in the forum with a lots of attitude.
But you seem to be outstanding in the way reply.


you are correct. Frank, who suports a product that is sold, shows unlimited patience for those who
  • never bother to ask a co-worker
  • never bother to look at a manual
  • never bother to look at other threads with the same requirement
  • never bother to take a couple of seconds and make their requirement understandable
  • never bother to realize that many who attempt to help are doing it for free and on their time
  • only consider their needs
  • are basically very childish and think that they should be treated with respect, that they do not show for others
  • for the most part should not be in this profession


yeah, I am probably one of those that who you think has an attitude.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


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

PostPosted: Tue Jul 07, 2009 8:38 pm    Post subject:
Reply with quote

Quote:
Hey Frank,

You are an excellent guy, helping people in such a humble way. I have seen so many replying here in the forum with a lots of attitude.
But you seem to be outstanding in the way reply.


Well, thanks for the nice words, but unfortunately I'm far from humble at times and my "attitude" often does show through. But I do try.
Back to top
View user's profile Send private message
deepak_munjal

New User


Joined: 30 May 2008
Posts: 43
Location: Mumbai

PostPosted: Wed Jul 08, 2009 8:45 pm    Post subject:
Reply with quote

Thanks a lot everyone.

Appreciate your attention.

Deepak
Back to top
View user's profile Send private message
sahil41352

New User


Joined: 31 Dec 2014
Posts: 3
Location: India

PostPosted: Wed Dec 28, 2016 11:26 pm    Post subject: Reply to: Copy a VB format file to FB format file
Reply with quote

I am facing the issue in this. Could anyone help please.

CODE :

//FBOUT DD DSN=LD.D9X.FLAT.TLK.ULOAD.TEST,
// DISP=(NEW,CATLG,DELETE),RECFM=FB,
// LRECL=1060,SPACE=(1060,(20,5),RLSE),
// AVGREC=M
//SYSIN DD *
OPTION COPY
OUTFIL FNAMES=FBOUT,VTOF,OUTREC=(5,1060)
/*
//*

Error:
RECORD TYPE IS V - DATA STARTS IN POSITION 5
VLSHRT NOT USED FOR SORT, MERGE, INCLUDE, OMIT OR SUM STATEMENT FIELDS
JOBNAME: P9XCOPY , STEPNAME: S9XSORT
BLOCKSET TECHNIQUE IN CONTROL
BLOCKSET COPY TECHNIQUE SELECTED
VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
- CONTROL STATEMENTS FOR 5650-ZOS, Z/OS DFSORT V2R2 - 12:49 ON WED DE
OPTION COPY
OUTFIL FNAMES=FBOUT,VTOF,OUTREC=(5,1060)
END OF FBOUT FIELD BEYOND MAXIMUM RECORD LENGTH
C5-I37057 C6-I35397 C7-I35397 C8-I35397 E9-I35397 E7-I37057
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Thu Dec 29, 2016 12:04 am    Post subject:
Reply with quote

In the future, please start new topics rather than resurrect 7-year old ones.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7993
Location: Bellevue, IA

PostPosted: Thu Dec 29, 2016 1:34 am    Post subject:
Reply with quote

Code:
VLSHRT NOT USED FOR SORT, MERGE, INCLUDE, OMIT OR SUM STATEMENT FIELDS
 JOBNAME: P9XCOPY , STEPNAME: S9XSORT
This is a clue.
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 1 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 3 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts How to pick only YYMMDD from DATE1P (... atulbaviskar SYNCSORT 7 Wed Mar 22, 2017 11:39 am
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm


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