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
 
How to increase a field's size in a record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
donevin

New User


Joined: 07 Jun 2005
Posts: 70
Location: South Africa

PostPosted: Wed Jan 18, 2006 8:30 pm    Post subject: How to increase a field's size in a record
Reply with quote

I want to increase a field's size in a record when the first seven chars are = 'NT01001'. Say for instance the field must be increased from pic 9(3) to pic 9(5) but the record length stays the same. I've tried ICETOOL but can't seem to get it right?
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 Jan 18, 2006 9:31 pm    Post subject:
Reply with quote

You didn't give much detail, so I'll give you a made up example to show you how to do this.

9(3) is a 3-byte ZD field. 9(5) is a 5-byte ZD field.

Let's say your input file has RECFM=FB and LRECL=80. The input records look like this:

NT01001123
NT01001005
NT02001631

and you want the output file to have RECFM=FB and LRECL=80 with records that look like this:

NT0100100123
NT0100100005
NT02001631

You can use a DFSORT job like this:

Code:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file (FB/80)
//SORTOUT DD DSN=...  output file (FB/80)
//SYSIN    DD    *
  OPTION COPY
  INREC IFTHEN=(WHEN=(1,7,CH,EQ,C'NT01001'),
         BUILD=(1,7,8:8,3,ZD,TO=ZD,LENGTH=5,13:11,68))
/*


If you need more specific help, you need to describe in detail what you're trying to do.
Back to top
View user's profile Send private message
donevin

New User


Joined: 07 Jun 2005
Posts: 70
Location: South Africa

PostPosted: Thu Jan 26, 2006 7:57 pm    Post subject: Solved
Reply with quote

Thank you very much Frank. Your example was sufficient. I was able to expand my jobcard from your suggestion.
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 VSAM - Accessing beyond record size Benchwarmer JCL & VSAM 6 Wed Apr 11, 2018 9:20 pm
No new posts How to include a particular field val... sakrat DFSORT/ICETOOL 8 Fri Apr 06, 2018 8:27 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Copying only first and last word from... chandan.inst SYNCSORT 4 Wed Jan 31, 2018 4:19 pm

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