Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Question related to Data dictionary f... rexx77 SYNCSORT 3 Thu Aug 31, 2017 7:23 am
No new posts Extract Data till prev hour balaji81_k DB2 16 Fri Aug 25, 2017 9:25 pm
No new posts FTP data transfer from PC to Mainfram... AJAYREDDY All Other Mainframe Topics 8 Wed Aug 23, 2017 9:59 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us