MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

increase the record length?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
naren_ab
Beginner


Joined: 07 Jan 2003
Posts: 32
Topics: 10

PostPosted: Mon Jul 17, 2006 11:05 am    Post subject: increase the record length? Reply with quote

I am trying to convert a 256 byte VB, to 23086 VB file. I am using sort, and I am getting error. Can you help? Thank You
My sort card :-

Code:
//SYSIN    DD  *               
  SORT FIELDS=COPY             
  OUTREC FIELDS=(1,256,22780:X)


Code:

SYNCSORT FOR Z/OS  1.2.0.0R    U.S. PATENTS: 4210961, 5117495   (C) 2005 SYNCSO
                                   z/OS   1.4.0 
SYSIN :                                                                       
  SORT FIELDS=COPY                                                             
  OUTREC FIELDS=(1,256,22780:X)                                               
WER276B  SYSDIAG= 56625, 657382, 657382, 1628807                               
WER164B  8,928K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,             
WER164B     0 BYTES RESERVE REQUESTED, 3,104,400 BYTES USED                   
WER146B  36K BYTES OF EMERGENCY SPACE ALLOCATED                               
WER108I  SORTIN   : RECFM=VB   ; LRECL=   256; BLKSIZE=  6233                 
WER237I  OUTREC RECORD LENGTH = 22780                                         
WER110I  SORTOUT  : RECFM=VB   ; LRECL= 23036; BLKSIZE= 27998                 
WER462I  OUTPUT LRECL DIFFERS FROM SORTOUT LRECL                               
WER244A  OUTREC - SHORT RECORD                                                 
WER211B  SYNCSMF  CALLED BY SYNCSORT; RC=0000                                 
WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jul 18, 2006 7:57 am    Post subject: Reply with quote

naren_ab,

Quote:

WER462I OUTPUT LRECL DIFFERS FROM SORTOUT LRECL
WER244A OUTREC - SHORT RECORD


This should have given you a clue. your Input file has short records. Try this job

Code:

//STEP0100 EXEC  PGM=IDCAMS                       
//SYSPRINT DD SYSOUT=*                             
//IN       DD DSN=your input 256 vb file,
//            DISP=SHR         
//OUT      DD DSN=your output 23086 vb file,
//            DISP=(NEW,CATLG,DELETE),                       
//            UNIT=SYSDA,                         
//            SPACE=(CYL,(X,Y),RLSE),             
//            DCB=(LRECL=23086,RECFM=VB,BLKSIZE=0)
//SYSIN    DD *                                   
  REPRO IFILE(IN) OFILE(OUT) REPLACE               
/*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Bill Dennis
Advanced


Joined: 03 Dec 2002
Posts: 579
Topics: 1
Location: Iowa, USA

PostPosted: Tue Jul 18, 2006 8:03 am    Post subject: Reply with quote

What???? The LRECL on the file need only describe the LARGEST possible record. The beauty of a VB file is that the records don't HAVE to be any certain length or filled with blank spaces! Run a copy and give the output file an LRECL=23086 but some records may be shorter. Your program simply needs to identify each field and it's length.

If you must continue, your OUTREC syntax may be wrong. Msg WER237I says O/P record is only 22780, not 22780 padded onto 256.
_________________
Regards,
Bill Dennis

Disclaimer: My comments on this foorum are my own and do not represent the opinions or suggestions of any other person or business entity.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group