Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : By coding TIME=1440 or TIME=NOLIMIT, It will give a job or step an unlimited amount of time.

Google
 
Web mainframegurukul.com

Welcome to the mainframegurukul forums.

You are currently viewing our mainframe forums as a guest which gives you limited access to view most discussions, articles. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support at admin@mainframegurukul.com


Help me in patching a dataset

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> DFSORT , ICETOOL & Utilities
  View previous topic :: View next topic  
Author Message
shadowlight
Member


Joined: 13 Jul 2010
Posts: 2

PostPosted: Tue Jul 13, 2010 9:12 am    Post subject: Help me in patching a dataset Reply with quote

I'm having a problem patching a dataset.

Example:
I have here a dataset to be patch recl =80

JOSEPH
VON
DEZ

then i have a parm containing the word i will patch:

CHUNGTUYCO

output should be:

JOSEPH CHUNGTUYCO
VON CHUNGTUYCO
DEZ CHUNGTUYCO

By the way after the patching recl will still be same (80).. i only patch the 8th column of the dataset and so on.. no changes in recl..

anyone has an idea?.. thanks!
Back to top
View user's profile Send private message Yahoo Messenger

Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 949
Location: Mumbai, India

PostPosted: Tue Jul 13, 2010 2:13 pm    Post subject: Reply with quote

Well, only if I understood the probelem well (as the indentation in the shown output is not evident), try this:
Code:
//STEP001  EXEC PGM=SORT           
//SORTIN DD *                       
JOSEPH                             
VON                                 
DEZ                                 
//SORTOUT DD SYSOUT=*               
//SYSIN DD *                       
  OPTION COPY                       
  INREC FIELDS=(1,7,8:C'CHUNGTUYCO')
//SYSOUT DD SYSOUT=*               
//*
Output is:

Code:
********************************* TOP OF DATA ******
JOSEPH CHUNGTUYCO                                   
VON    CHUNGTUYCO                                   
DEZ    CHUNGTUYCO                                   
******************************** BOTTOM OF DATA ****

_________________
Anuj


//MYWALLET EXEC PGM=SPOUSE
//SYSIN DD DSN=MYWALLET.ALL,DISP=SHR
//SYSOUT DD DUMMY
Back to top
View user's profile Send private message
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 949
Location: Mumbai, India

PostPosted: Tue Jul 13, 2010 2:15 pm    Post subject: Reply with quote

Also, please learn to use BBcode when You post some code/error, that makes the text rather readable.
_________________
Anuj


//MYWALLET EXEC PGM=SPOUSE
//SYSIN DD DSN=MYWALLET.ALL,DISP=SHR
//SYSOUT DD DUMMY
Back to top
View user's profile Send private message
dbzTHEdinosauer
Moderator


Joined: 02 Oct 2006
Posts: 447

PostPosted: Tue Jul 13, 2010 2:52 pm    Post subject: Reply with quote

How to use BBcode: hyperlink here
_________________
Dick Brenholtz
American in Varel, Germany
Back to top
View user's profile Send private message
Frank Yaeger
Moderator


Joined: 18 Feb 2006
Posts: 510
Location: San Jose, CA

PostPosted: Tue Jul 13, 2010 9:49 pm    Post subject: Reply with quote

Quote:
By the way after the patching recl will still be same (80).. i only patch the 8th column of the dataset and so on.. no changes in recl..


Code:
     
  INREC FIELDS=(1,7,8:C'CHUNGTUYCO')


Note that this will produce an output data set with LRECL=18 rather than LRECL=80. To keep the same LRECL, the correct INREC statement would be:

Code:

 INREC OVERLAY=(8:C'CHUNGTUYCO')

_________________
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 949
Location: Mumbai, India

PostPosted: Wed Jul 14, 2010 8:11 am    Post subject: Reply with quote

Thanks Frank - I overlooked that part of the post Embarassed.

Have a good one,
_________________
Anuj


//MYWALLET EXEC PGM=SPOUSE
//SYSIN DD DSN=MYWALLET.ALL,DISP=SHR
//SYSOUT DD DUMMY
Back to top
View user's profile Send private message
shadowlight
Member


Joined: 13 Jul 2010
Posts: 2

PostPosted: Fri Jul 16, 2010 12:21 pm    Post subject: Reply with quote

thanks for all your replies..

but the word "CHUNGTUYCO" is in a parameter.. it should not be hardcoded.

any ideas?
Back to top
View user's profile Send private message Yahoo Messenger
Frank Yaeger
Moderator


Joined: 18 Feb 2006
Posts: 510
Location: San Jose, CA

PostPosted: Fri Jul 16, 2010 8:06 pm    Post subject: Reply with quote

Quote:
but the word "CHUNGTUYCO" is in a parameter.. it should not be hardcoded.


Perhaps DFSORT symbols would give you what you want, e.g.

Code:

...
//SYMNAMES DD *
Name,'CHUNGTUYCO'
...
//SYSIN DD *
  INREC OVERLAY=(8:Name)
...


You could use a sequential data set or PDS member for SYMNAMES as well.

If that's not what you want, then explain exactly what you mean by "in a parameter"? What are you trying to do and what are the restrictions?
_________________
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> DFSORT , ICETOOL & Utilities All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts IAM BEGINNER IN JCL ...PLZ HELP ME 3 Guest 13620 Wed Jul 07, 2010 8:20 am
anilsani285 View latest post
No new posts Hi plz help me out 5 Guest 5547 Wed Jul 07, 2010 8:18 am
anilsani285 View latest post
No new posts File-Aid Help 1 Nicholas 8853 Thu Apr 13, 2006 2:12 pm
rangab View latest post
No new posts Search Batch file-aid help 6 frenchman 9752 Tue Mar 28, 2006 5:30 pm
Guest View latest post
No new posts executing java program thru JCL 1 Guest 7989 Fri Mar 17, 2006 10:14 am
arrbee View latest post
 



This widget requires Flash Player 9 or better








Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB