View previous topic :: View next topic
|
Author |
Message |
pavanchandana
New User
Joined: 05 Sep 2008 Posts: 15 Location: Hyderabad
|
|
|
|
Hi All
Can you tell me how to move x(30) to S9(15)v usage comp-3 using syncsort
Thank you |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Post some sample input/output records and the starting position of relevant fields. Also the LRECL/RECFM of input/output |
|
Back to top |
|
|
pavanchandana
New User
Joined: 05 Sep 2008 Posts: 15 Location: Hyderabad
|
|
|
|
LRECL=489 and RECFM=FB.
The starting position of the input field is 21. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
Post some sample input/output records |
30 numeric digits will require 16 bytes in packed decimal. How did you arrive at 15? How does your input look like? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Can you tell me how to move x(30) to S9(15)v usage comp-3 using syncsort |
As worded, it cannot be done - at least not with a result that is usable.
What you have asked (whether it is what you intended or not) is how to move 30 characters (30 bytes) into 8 bytes (15 packed digits + a sign).
If you show complete details of what you want to do someone will be better able to reply.
The most important part of getting help from the forum is clearly posting what you want. Something to keep in mind is that while your question is completely clear to you, it may not be to those who read it |
|
Back to top |
|
|
|