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
 
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 Need urgent suggestion on DFSORT subratarec DFSORT/ICETOOL 6 Wed Mar 21, 2018 8:46 pm
No new posts Formatting using DFsort Guru Nandu DFSORT/ICETOOL 5 Thu Nov 30, 2017 7:33 am
No new posts Compare VSAM files using DFSORT pshongal DFSORT/ICETOOL 5 Thu Nov 23, 2017 10:24 am
No new posts Compare and COPY using DFSORT pshongal DFSORT/ICETOOL 3 Fri Nov 17, 2017 9:49 am
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm

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