IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

sort data conversion


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
iggy

New User


Joined: 10 Mar 2006
Posts: 4

PostPosted: Fri Mar 10, 2006 2:02 am
Reply with quote

I am trying to extract a portion of a record using sort. The record layout is as follows: sd0904050698001c1c,,,,,
I need to copy the data in postion 3-12 to the outrec, change the data in position 13 which is comp-3 and position 15 which is comp-3 to 001 and 1 resepectively to the outrec.
I can manage 3-12 fine, but cannot find the correct syntax for the remaining positions.
Any assistance is appreciated
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Fri Mar 10, 2006 2:33 am
Reply with quote

Quote:
the data in position 13 which is comp-3 and position 15 which is comp-3 to 001 and 1 resepectively


Not sure what you mean. It looks like 13-14 has X'001C' (2 bytes) and 15 has X'1C' (1 byte), but you say you want to change them to '001' (3 bytes) and '1' (1 byte), so you're adding a byte. If you want '001' and '1' regardless of what's in 13-14 and 15, you could use C'001',C'1'. If you want to convert the PD value in those fields to ZD values, you could use 13,2,PD,TO=ZD,LENGTH=3,15,1,PD,TO=ZD,LENGTH=1 or 13,2,PD,EDIT=(TTT),15,1,PD,EDIT=(T).

If none of that helps, you need to explain more clearly what you want to do.
Back to top
View user's profile Send private message
iggy

New User


Joined: 10 Mar 2006
Posts: 4

PostPosted: Fri Mar 10, 2006 2:42 am
Reply with quote

Seems it lost the field that is in postion 15.
New Outrec:
0820385479001
0860498952002
0820469274002
many more records follow,,,
Inrec
SD0820385479...
ECFFFFFFFFFF011
2408203854790CC
--------------
SD0860498952...
ECFFFFFFFFFF022
2408604989520CC
--------------
SD0820469274...
ECFFFFFFFFFF022
2408204692740CC
Back to top
View user's profile Send private message
iggy

New User


Joined: 10 Mar 2006
Posts: 4

PostPosted: Fri Mar 10, 2006 2:46 am
Reply with quote

I found the problem, was the size of the output file
THank you very much.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top