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

Need to resolve an issue using JCL DFSORT command


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

New User


Joined: 01 Mar 2007
Posts: 2
Location: India

PostPosted: Thu Apr 26, 2007 12:38 pm
Reply with quote

Hi,

I need to add 4 digits at the begning of my file in increasing order. How can I do this using DFSORT utility of JCL.

Example:
Suppose data in input file is
arun garg
amit mohan
manoj tyagi
ss s s s ssss

output file should be like
0000arun garg
0001amit mohan
0002manoj tyagi
0003ss s s s ssss

Please suggest any general solution......
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Thu Apr 26, 2007 12:51 pm
Reply with quote

Manoj,

Use the follwoing (DFSORT technique)-
Code:

//SYSIN DD *
   INREC FIELDS=(1:SEQNUM,4,ZD,      * SEQNUMBER
              5:1,80)       * YOUR ORIGINAL DATA (ASSUMED LRECL=80)
   OPTION COPY
/*
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 RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
Search our Forums:

Back to Top