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
 

 

Align the data with SYNCSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
NAGARJUN CARALAPATI

New User


Joined: 09 Oct 2007
Posts: 22
Location: chennai.India

PostPosted: Tue Oct 09, 2007 6:47 pm    Post subject: Align the data with SYNCSORT
Reply with quote

I want to align the data present in the input as output.

Find my data details below.

Code:
                 
  ASDF ASDFS COPY SDFSGWER         
  ASDF COPY SDFSGWSD               
  ASDF COPY SDFSGWAC               
  COPY SDFSGWSE                   
  SDFSSDF COPY SDFSGWSD           
  SDF COPY SDFSGWAR               


My desired output:

Code:

SDFSGWER
SDFSGWSD
SDFSGWAC
SDFSGWSE
SDFSGWSD
SDFSGWAR
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: Tue Oct 09, 2007 8:59 pm    Post subject:
Reply with quote

If you happen to have access to DFSORT, you can use the following DFSORT job to do what you asked for:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file
//SORTOUT DD DSN=...  output file
//SYSIN    DD    *
  OPTION COPY
  INREC PARSE=(%01=(STARTAFT=C'COPY ',FIXLEN=8)),
    BUILD=(%01)
/*
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Tue Oct 09, 2007 9:00 pm    Post subject:
Reply with quote

You will have to explain the "rules" for the conversion a little better...
The CHANGE subparameter might be what you need.
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 Oct 10, 2007 10:51 am    Post subject:
Reply with quote

I think, Franks' solution will not work for TS requirement. PARSE is not available in SyncSort (I tried to use it some time back, didn't work for me).
Back to top
View user's profile Send private message
Aaru

Senior Member


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

PostPosted: Wed Oct 10, 2007 11:46 am    Post subject: Reply to: Align the data with SYNCSORT
Reply with quote

Anuj,

Quote:
think, Franks' solution will not work for TS requirement


What is TS and why do u think so? Frank had posted a DFSORT job.

Quote:
PARSE is not available in SyncSort (I tried to use it some time back, didn't work for me).


A similar topic involviing PARSE/SYNCSORT was discussed few days ago.

http://ibmmainframes.com/viewtopic.php?t=24948
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 Oct 10, 2007 2:49 pm    Post subject:
Reply with quote

Yeah ..I'm aware of that thread. My motive was to make the TS aware about the gist of that thread, as subject line asks about SyncSort. I might have used
Quote:
I think, Franks' solution may/may not not work for TS requirement, if his/her shop uses SyncSort

then it would been be rather clear.
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
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


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