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
 

 

sort data conversion

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: sort data conversion
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 Moderator


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

PostPosted: Fri Mar 10, 2006 2:33 am    Post subject:
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    Post subject: Used 13,2,PD,EDIT=(TTT),15,1,PD,EDIT=(T) and got,,,
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    Post subject: Thanks Frank,
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sorting group data rajella DFSORT/ICETOOL 4 Sun Jan 22, 2017 11:32 pm
No new posts Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm


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