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
 

 

OUTREC RDW not included
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
suneelv

New User


Joined: 26 Aug 2008
Posts: 52
Location: inida

PostPosted: Wed Aug 27, 2008 12:17 pm    Post subject: OUTREC RDW not included
Reply with quote

Hi,

when i am copying part of the record of VB file of length 4004. iam got the error: OUTREC RDW not included. I want to copy from 61st position to end of the record.

the control card i mentioned as below:

Code:
//SYSIN     DD *         
  SORT FIELDS=COPY       
  OUTREC BUILD=(1:65,4008)
/*


The LERECL of output file i mentioned as 3943.

can any one tell me how to resolve this issue ?

Regards
Suneel
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 27, 2008 12:21 pm    Post subject:
Reply with quote

I would guess that the output is VB as well as the input.

Positions 1-4 are reserved for the RDW, so you need to write from pos 5 not pos 1.
Back to top
View user's profile Send private message
suneelv

New User


Joined: 26 Aug 2008
Posts: 52
Location: inida

PostPosted: Wed Aug 27, 2008 12:25 pm    Post subject: Reply to: SYNCSORT - OUTREC RDW NOT INCLUDED
Reply with quote

Hi,

After i mentioned position 5 also i got the same error.

Regards
Suneel
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 27, 2008 12:34 pm    Post subject:
Reply with quote

It may be worth taking a look in the manual, because it is a very long time I have used sort to create VB records from any other record, but I can recall having to specify or copy the RDW from the input record by using 1,4 as the first operand in the control statement.
Back to top
View user's profile Send private message
Aaru

Senior Member


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

PostPosted: Wed Aug 27, 2008 12:36 pm    Post subject: Reply to: SYNCSORT - OUTREC RDW NOT INCLUDED
Reply with quote

Suneel,

Quote:
The LERECL of output file i mentioned as 3943.


Code:
OUTREC BUILD=(1:65,4008)


If you still get the error after including the RDW, then this might be the problem

You are building records of length 4008 from byte 65 when actually the output record length is 3943.

POst the entire JCL.
Back to top
View user's profile Send private message
suneelv

New User


Joined: 26 Aug 2008
Posts: 52
Location: inida

PostPosted: Wed Aug 27, 2008 12:57 pm    Post subject: Reply to: SYNCSORT - OUTREC RDW NOT INCLUDED
Reply with quote

Hi

Below is the entire jcl:

Code:

//JS020    EXEC PGM=SORT                               
//SORTIN    DD DSN=i/p file name,     
//             DISP=SHR                               
//SORTOUT   DD DSN=o/p file name,
//             DISP=(,CATLG,DELETE),               
//             UNIT=PERMDA,MGMTCLAS=MB004408,         
//             SPACE=(CYL,(15,20),RLSE)
//SYSPRINT  DD SYSOUT=*                               
//SYSOUT    DD SYSOUT=*                               
//SYSIN     DD *                                       
  SORT FIELDS=COPY                                     
  OUTREC BUILD=(5:65,4008)   
/*
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


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

PostPosted: Wed Aug 27, 2008 1:34 pm    Post subject:
Reply with quote

Hi,

Try this -
Code:
SORT FIELDS=COPY                                     
  OUTREC BUILD=(1,4,65,3943)
Back to top
View user's profile Send private message
suneelv

New User


Joined: 26 Aug 2008
Posts: 52
Location: inida

PostPosted: Wed Aug 27, 2008 1:38 pm    Post subject: Reply to: SYNCSORT - OUTREC RDW NOT INCLUDED
Reply with quote

Hi Anju,

I tried with the same but it failed with error

OUTREC FIELD OUTSIDE RANGE

Regards
Suneel
Back to top
View user's profile Send private message
Aaru

Senior Member


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

PostPosted: Wed Aug 27, 2008 1:55 pm    Post subject: Reply to: SYNCSORT - OUTREC RDW NOT INCLUDED
Reply with quote

Suneel,

Try this

Code:
SORT FIELDS=COPY                                     
  OUTREC BUILD=(1,4,65,3939)
Back to top
View user's profile Send private message
suneelv

New User


Joined: 26 Aug 2008
Posts: 52
Location: inida

PostPosted: Wed Aug 27, 2008 3:16 pm    Post subject: Reply to: SYNCSORT - OUTREC RDW NOT INCLUDED
Reply with quote

Hi Aaru,

I tried but i got the error like OUTREC - SHORT RECORD

Regards
Suneel
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Aug 27, 2008 3:18 pm    Post subject:
Reply with quote

Hi,

try
Code:
  OPTION COPY           
  OUTREC BUILD=(1,4,65)


Gerry
Back to top
View user's profile Send private message
suneelv

New User


Joined: 26 Aug 2008
Posts: 52
Location: inida

PostPosted: Wed Aug 27, 2008 3:23 pm    Post subject: Reply to: SYNCSORT - OUTREC RDW NOT INCLUDED
Reply with quote

Hi Aaru,

It failed with the error

OUTPUT LRECL DIFFERS FROM SORTOUT LRECL
SORTOUT HAS INCOMPATIBLE LRECL
CONVERT FEATURE CANNOT BE USED WITH OVERLAY OR IFTHEN

Regards
Suneel
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 27, 2008 3:52 pm    Post subject:
Reply with quote

Suneel,

Have you actually read any of your SYNCSORT documentation ?
Back to top
View user's profile Send private message
suneelv

New User


Joined: 26 Aug 2008
Posts: 52
Location: inida

PostPosted: Wed Aug 27, 2008 3:55 pm    Post subject: Reply to: SYNCSORT - OUTREC RDW NOT INCLUDED
Reply with quote

Hi,

Yes i read...i trying in some otherways to resolve this issue.

Regards
Suneel
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 27, 2008 4:00 pm    Post subject:
Reply with quote

Have you tried the suggestion of gcicchet

And also in DFSORT there are OPTION parameters to resolve short records, if you have not already resolved that one.
Back to top
View user's profile Send private message
suneelv

New User


Joined: 26 Aug 2008
Posts: 52
Location: inida

PostPosted: Wed Aug 27, 2008 4:09 pm    Post subject: Reply to: SYNCSORT - OUTREC RDW NOT INCLUDED
Reply with quote

Hi,

Yes, i have tried that one also failed.

Regards
Suneel
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Aug 27, 2008 4:55 pm    Post subject:
Reply with quote

Hi,

what happens to records less than 61 bytes ?


Gerry
Back to top
View user's profile Send private message
suneelv

New User


Joined: 26 Aug 2008
Posts: 52
Location: inida

PostPosted: Wed Aug 27, 2008 5:23 pm    Post subject: Reply to: SYNCSORT - OUTREC RDW NOT INCLUDED
Reply with quote

Hi,

I want to strip out the records upto 60...i want to copy from 61 to end of the record.

Regards
Suneel
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 27, 2008 5:31 pm    Post subject:
Reply with quote

Suneel,

We think that we know what you want to do, but unless you post the output showing the exact error messages and answer the questions that you have been asked you are not going to get any help.

Please post the output showing the error messages and text, and try to answer Gerry's question.
Back to top
View user's profile Send private message
suneelv

New User


Joined: 26 Aug 2008
Posts: 52
Location: inida

PostPosted: Wed Aug 27, 2008 6:20 pm    Post subject: Reply to: SYNCSORT - OUTREC RDW NOT INCLUDED
Reply with quote

Hi,

This is the control car i have used:

OPTION COPY
OUTREC BUILD=(1,4,65)

The following error i got

OUTPUT LRECL DIFFERS FROM SORTOUT LRECL
SORTOUT HAS INCOMPATIBLE LRECL
CONVERT FEATURE CANNOT BE USED WITH OVERLAY OR IFTHEN

Regards
Suneel
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 -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORT- outrec ram_vizag DFSORT/ICETOOL 10 Tue Sep 27, 2016 12:50 am
No new posts OUTREC FILELDS FAILS WITH ICE126A 2 ... balaji81_k DFSORT/ICETOOL 8 Sat Jul 02, 2016 1:22 am
No new posts OUTREC RDW NOT INCLUDED krsenthil85 SYNCSORT 10 Fri May 06, 2016 3:22 am
No new posts OUTREC on OUTFIL error rocky_balboa DFSORT/ICETOOL 4 Thu Aug 27, 2015 10:26 am
No new posts OUTREC with IFTHEN Query... mkk157 DFSORT/ICETOOL 1 Wed Aug 26, 2015 5:17 pm


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