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
 

 

Can this be done in DFSORT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Can this be done in DFSORT
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 Moderator


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

PostPosted: Wed May 10, 2006 8:21 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts DFSORT sorting only specific records akodakka DFSORT/ICETOOL 4 Thu Aug 04, 2016 11:24 am
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm


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