View previous topic :: View next topic
|
Author |
Message |
itjagadesh
New User
Joined: 05 Dec 2006 Posts: 89 Location: chennai
|
|
|
|
My input files have HDR, Detail and TRL records and the LRECL is 80. I want to combine all the input records by adding 1 byte sort key at 81th position (if HDR means 0, TRL means 9) and then need to write into outrec file 1-80th position using the key at 81th position. While doing this, I am getting "INEFFICIENT USE OF INREC" message in the sysout. Could please tell me how to solve this? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hello There,
Would you please provide your sort card , sample i/p ,o/p and error message? |
|
Back to top |
|
|
itjagadesh
New User
Joined: 05 Dec 2006 Posts: 89 Location: chennai
|
|
|
|
SYSIN:
INREC FIELDS=(1:80,81:1,3,CHANGE=
(1,C'HDR',C'0',C'TRL',C'9'),NOMATCH=(C'1'))
SORT FIELDS=(81,1,CH,A)
OUTREC FIELDS=(1,80)
INPUT:
1234567
HDR
7890123
1234556
TRL
OUTPUT:
HDR
1234567
7890123
1234556
TRL |
|
Back to top |
|
|
itjagadesh
New User
Joined: 05 Dec 2006 Posts: 89 Location: chennai
|
|
|
|
I am able to execute the sortcard successfully....But i am also getting the "POTENTIALLY INEFFICIENT USE OF INREC message in the sysout.
May i know why this message is coming in the sysout? How to solve this? |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Which sort product you are using? |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
If you post the complete SYSOUT form the job you execute -- one would be able to sugggest what happend at your end. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
That's a Syncsort message. I'm moving this thread to the JCL Forum. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
POTENTIALLY INEFFICIENT USE OF INREC |
This will also have a message id - which you chose not to post for some reason
Suggest you look up the message id in the Syncsort documentation.
If you cannot find the documentation, and your organization is licensed to use the product, you can get your own copy from Syncsort support:
zos_tech@syncsort.com |
|
Back to top |
|
|
|