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

Can this be done in DFSORT


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

New User


Joined: 10 May 2006
Posts: 1
Location: Kolkata,India

PostPosted: Wed May 10, 2006 9:37 am
Reply with quote

Hi,
My require ment is as followes.
My input file is having record length 1068(FB) and out put too.
From 170 position I have one field Acct no having PICX(7).
My requirement is that if that field contain less than 7 digits then that should be appended as 0 else as it is.

E.g. 1234567 will be moved as 1234567
123456 will be moved as 0123456
12345 will be moved as 0012345 and so on.

Hope I have provided the requirement in detail.
Please some one provide me the JCL(sortcard) if this is possible.

Input:
--7----+
235248
82792
82792
82792
82792
82792
82792
82792
878484
output:
---7----+
235248
082792
082792
082792
082792
082792
082792
082792
878484
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Wed May 10, 2006 8:21 pm
Reply with quote

Here's a DFSORT job that will do what you asked for:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=... input file (FB/1068)
//SORTOUT DD DSN=...  output file (FB/1068)
//SYSIN    DD    *
  OPTION COPY
  OUTREC OVERLAY=(170:170,7,UFF,M11,LENGTH=7)
/*
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 Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
No new posts DFSORT - VB file RDW getting overridden DFSORT/ICETOOL 3
Search our Forums:

Back to Top