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 VB file to VB file

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

New User


Joined: 21 Nov 2006
Posts: 48
Location: mumbai

PostPosted: Tue Mar 11, 2008 6:32 pm    Post subject: Copying VB file to VB file
Reply with quote

Hi,
I am trying to copy one VB file (with lenth 1079) to another file (with length 1063) .
I have already created FILEB with length 1063.
I written following code but it is abending with ABENDU0217.

Code:

//STEP001 EXEC PGM=IEFBR14                             
//SYSOUT DD SYSOUT=*                                   
//BICOUT DD DSN=FILEB,
//          DISP=(NEW,CATLG,DELETE),                   
//          DCB=(RECFM=VB,LRECL=1063),                 
//          SPACE=(CYL,(10,10),RLSE),                   
//          UNIT=SYSDA                                 
//*-----------------------------------------------------
//*--                     SORT STEP                     
//*-----------------------------------------------------
//STEP1 EXEC PGM=SORT                                   
//SORTIN DD DSN=FILEA,DISP=SHR     
//SORTOUT DD DSN=FILEB,           
//        DISP=SHR                                     
//SYSIN DD *                                           
   SORT FIELDS=COPY                                     
/*                                                     
//SYSOUT DD SYSOUT=*                                   
//SYSPRINT DD SYSOUT=*                                 
 


Can you suggest what is the problem in the JCL?

Thanks,
Sudhakar.
Back to top
View user's profile Send private message

sudhakar_lendave

New User


Joined: 21 Nov 2006
Posts: 48
Location: mumbai

PostPosted: Tue Mar 11, 2008 6:38 pm    Post subject: Reply to: Copying VB file to VB file using SORT
Reply with quote

In addition to above,
The input file FILEA doesnot contain any record with length more than 1063.
I hope this will be helpful.
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 Mar 11, 2008 9:58 pm    Post subject:
Reply with quote

Quote:
The input file FILEA doesnot contain any record with length more than 1063.


I ran the scenario you mentioned with DFSORT (no records longer than 1063 in FILEA) and got a RC=0.

The U0217 is associated with message ICE217A which you would get if FILEA did contain a record with a length of more than 1063 bytes. For example, when FILEA had a record with a length of 1064 bytes, I received this ICE217A message:

ICE217A 0 1064 BYTE VARIABLE RECORD IS LONGER THAN 1063 BYTE MAXIMUM FOR SORTOUT

I assume you received a similar message indicating that at least one of your records is longer than 1063 bytes. The LRECL for FILEB must be large enough to contain the longest record from FILEA.
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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