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 prefix a value

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

New User


Joined: 01 Nov 2006
Posts: 3

PostPosted: Thu Dec 13, 2007 3:19 pm    Post subject: How to prefix a value
Reply with quote

I have an input file with n records with lrecl =8
Eg:

Vp0110
Vp0013
Vp0014a
Vp234556

I want this to be prefixed with value prog.

Expected output:

progVp0110
progVp0013
progVp0014a
progVp234556

All this using jcl only.
Back to top
View user's profile Send private message

krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Thu Dec 13, 2007 3:38 pm    Post subject:
Reply with quote

Code:
//*******************************************************
//STEP1    EXEC PGM=SORT                                 
//SYSOUT   DD SYSOUT=*                                   
//SORTIN   DD *                                         
Vp0110                                                   
Vp0013                                                   
Vp0014a                                                 
Vp234556                                                 
/*                                                       
//SORTOUT  DD SYSOUT=*                                   
//SYSIN    DD *                                         
  INREC BUILD=(C'prog',1,8)                             
  SORT FIELDS=COPY                                       
/*                                                       


SORTOUT
Code:
progVp0110 
progVp0013 
progVp0014a
progVp234556
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 No TSO prefix doesn't get the input boyti ko CLIST & REXX 4 Thu Apr 28, 2016 3:31 pm
No new posts "Prefix not in table" error... Soumick Sarkar DB2 1 Mon Nov 11, 2013 11:04 am
No new posts Profile prefix for a user id Pedro TSO/ISPF 12 Thu Feb 24, 2011 4:07 pm
No new posts Prefix of Datacom return code seman18 CA Products 4 Fri Dec 31, 2010 9:07 am
No new posts command to know the prefix Pedro TSO/ISPF 19 Wed Jun 02, 2010 12:52 pm

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