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

SYNCSORT Fill Zero as prefix


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Itanium

Active User


Joined: 22 Jan 2006
Posts: 114
Location: India

PostPosted: Wed Aug 06, 2008 6:03 pm
Reply with quote

I have a file with below records

Code:

A 6
B 6
C 7
D 10
E 100


these records needs to be converted as below

Code:

A 006
B 006
C 007
D 010
E 100


Is there any way to attain this without writing a COBOL program ?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Aug 06, 2008 7:34 pm
Reply with quote

Hello Itanium,

Can you try out this.

Code:
//SYSIN    DD *               
  INREC FIELDS=(1,2,3,3,UFF,ZD)
  SORT FIELDS=COPY             
/*   


Thanks,
Arun
Back to top
View user's profile Send private message
Itanium

Active User


Joined: 22 Jan 2006
Posts: 114
Location: India

PostPosted: Wed Aug 06, 2008 7:40 pm
Reply with quote

Thanks Arun. This worked perfectly.

Thanks a lot for the quick turnaround.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Aug 06, 2008 7:43 pm
Reply with quote

You are welcome..... icon_biggrin.gif

Thanks,
Arun
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Count Records with a crietaria in a f... DFSORT/ICETOOL 5
No new posts DFSORT/SYNCSORT/ICETOOL JCL & VSAM 8
No new posts Syncsort "Y2C" Function SYNCSORT 1
Search our Forums:

Back to Top