Adding characters



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Adding characters

Postby Samrita S » Sat Oct 08, 2011 11:21 am

HI,

I have one more requirement:

My Input is:

File1:
AAAAAAAA
BBBBBBBB

File 2:
XXXXXXXX
YYYYYYYYYYY
ZZZZZZZZZ

and the outpt should be:
AAAAAAAA
BBBBBBBB
'XXXXXXXX';
'YYYYYYYYYYY';
'ZZZZZZZZZ';

I tried with sort and outrec fields and include, but the quotes and colon is not coming in my output. Please help me out.

Thanks,
Saira
Samrita S
 
Posts: 21
Joined: Mon Oct 03, 2011 8:41 am
Has thanked: 0 time
Been thanked: 0 time

Re: Override for Utility ID in JCl

Postby NicC » Sat Oct 08, 2011 11:22 pm

This is a completely different topic - why did you add it to the old one?

I do not see a colon (:) in your expected output but I do see semi-colons - which do you mean?

Read the manual about how to insert quotes - like other languages you probably need to double or triple them. The manual should tell you. And without seeing what you have tried how do you expect anyone to help you?
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Adding quotes

Postby Frank Yaeger » Mon Oct 10, 2011 11:06 pm

Samrita,

I split your topic. Please start a new topic for a new subject.

Here's a DFSORT/ICETOOL job that will do what I think you're asking for. I assumed your input files have RECFM=FB and LRECL=80. Be sure to use MOD for the //OUT file.

//S1    EXEC  PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG  DD SYSOUT=*
//IN1 DD *
AAAAAAAA
BBBBBBBB
/*
//IN2 DD *
XXXXXXXX
YYYYYYYYYYY
ZZZZZZZZZ
/*
//OUT DD DISP=(MOD,CATLG,DELETE),DSN=...
//TOOLIN DD *
COPY FROM(IN1) TO(OUT)
COPY FROM(IN2) TO(OUT) USING(CTL1)
/*
//CTL1CNTL DD *
  INREC BUILD=(1,80,JFY=(SHIFT=LEFT,LEAD=C'''',
    TRAIL=C''';'))
/*
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
User avatar
Frank Yaeger
Global moderator
 
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 15 times

Re: Adding characters

Postby Samrita S » Tue Oct 11, 2011 11:11 am

Thanks Frank
Samrita S
 
Posts: 21
Joined: Mon Oct 03, 2011 8:41 am
Has thanked: 0 time
Been thanked: 0 time

Re: Adding characters

Postby Samrita S » Tue Oct 11, 2011 11:52 am

Hi Frank,

I am not getting any new topic tab on my screen, so that I can post a new topic. Sorry about that.

Please let me know if I can do anything
Last edited by Samrita S on Tue Oct 11, 2011 11:53 am, edited 1 time in total.
Samrita S
 
Posts: 21
Joined: Mon Oct 03, 2011 8:41 am
Has thanked: 0 time
Been thanked: 0 time

Re: Adding characters

Postby Samrita S » Tue Oct 11, 2011 11:52 am

Hi,

I have another question also.

I need to trigger a mail when an abend occurs in Savers. It should check the jobs running in the savers and should trigger a mail to a particular team if any abend occurs.
I know it can be done by adding a step in the last of JCL by coding COND parameter. But we are not supposed to change the job as it is a production job. So please help me out. :)
Samrita S
 
Posts: 21
Joined: Mon Oct 03, 2011 8:41 am
Has thanked: 0 time
Been thanked: 0 time

Re: Adding characters

Postby BillyBoyo » Tue Oct 11, 2011 11:57 am

Samrita S wrote:Hi Frank,

I am not getting any new topic tab on my screen, so that I can post a new topic. Sorry about that.

Please let me know if I can do anything


If you see any screen which gives you a list of topics, you should see a "new topic" button at the top left.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Adding characters

Postby BillyBoyo » Tue Oct 11, 2011 12:15 pm

Samrita S wrote:Hi,

I have another question also.

I need to trigger a mail when an abend occurs in Savers. It should check the jobs running in the savers and should trigger a mail to a particular team if any abend occurs.
I know it can be done by adding a step in the last of JCL by coding COND parameter. But we are not supposed to change the job as it is a production job. So please help me out. :)


We have no idea what "Savers" might be.

If you are not able to change the JCL then you are stuck. Ask the people who are responsible for your Scheduler if they can suggest something.

It would not be normal to just change the production JCL, but you'd do it in your development set-up first, then migrate it all the way up to production, just like you would a program (except, maybe, along the way some JCL-writer team takes over your "working" JCL and standardises it for your site).
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Adding characters

Postby Samrita S » Tue Oct 11, 2011 12:19 pm

Hi,

Savers means message class-message log.
Its not possible to do that, they wont give the access also :(

Regards
Samrita
Samrita S
 
Posts: 21
Joined: Mon Oct 03, 2011 8:41 am
Has thanked: 0 time
Been thanked: 0 time

Re: Adding characters

Postby Frank Yaeger » Tue Oct 11, 2011 11:34 pm

I am not getting any new topic tab on my screen, so that I can post a new topic. Sorry about that.

Please let me know if I can do anything


When you go to the JCL Forum, you should see a NEWTOPIC button at the top that you can use. Are you saying you don't?
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
User avatar
Frank Yaeger
Global moderator
 
Posts: 1079
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 15 times

Next

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post