Need JCL



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

Need JCL

Postby Nexus » Fri Sep 25, 2009 11:30 pm

Hi
am having the input in flat file like this

BP/MUFYI01/0409MUFYI012009040AMUFYI012009040B
BP/MUFYI02/0409MUFYI022009040AMUFYI022009040B
BP/MUFYI03/0409MUFYI032009040AMUFYI032009040B
BP/MUFYI04/0409MUFYI042009040AMUFYI042009040B
BP/MUFYI05/0409MUFYI052009040AMUFYI052009040B
BP/MUFYI06/0409MUFYI062009040AMUFYI062009040B
BP/MUFYI07/0409MUFYI072009040AMUFYI072009040B
BP/MUFYI08/0409MUFYI082009040AMUFYI082009040B
BP/MU/01PV/0408MU1PV040800000AMU1PV04080000B

and my output should be like this... I need to break the records like below mentioned

BP/MUFYI01/0409MUFYI012009040A
BP/MUFYI01/0409MUFYI012009040B
BP/MUFYI02/0409MUFYI022009040A
BP/MUFYI02/0409MUFYI022009040B
BP/MUFYI03/0409MUFYI032009040A
BP/MUFYI03/0409MUFYI032009040B
BP/MUFYI04/0409MUFYI042009040A
BP/MUFYI04/0409MUFYI042009040B
BP/MUFYI05/0409MUFYI052009040A
BP/MUFYI05/0409MUFYI052009040B
BP/MUFYI06/0409MUFYI062009040A
BP/MUFYI06/0409MUFYI062009040B
BP/MUFYI07/0409MUFYI072009040A
BP/MUFYI07/0409MUFYI072009040B
BP/MUFYI08/0409MUFYI082009040A
BP/MUFYI08/0409MUFYI082009040B
BP/MU/01PV/0408MU1PV040800000A
BP/MU/01PV/0408MU1PV040800000B

Can any one please help.. Thanks in advance :)
Nexus
 
Posts: 1
Joined: Fri Sep 25, 2009 11:26 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Need JCL

 

Re: Need JCL

Postby dick scherrer » Fri Sep 25, 2009 11:55 pm

Hello and welcome to the forum,

What do you want to execute in JCL. JCL alone cannot manipulate files. . . Only programs can. This would include utility programs such as the sort product in use on the system, file-aid, Easytrieve, etc.

You need to determine which tool of the ones available on your system you are going to use. You also need to post the "rules" for getting from the input to the output. Data examples are most helpful, but the rules also need to be posted. Also, menton the positions within the data of the relevant fields as well as the recfm and lrecl of the files.

If you learn nothing else new today, please learn that JCL can only execute programs. . . ;)
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Need JCL

Postby expat » Sat Sep 26, 2009 4:59 pm

Also, that is often considered impolite to just ask for code without showing the efforts you have made yourself.
expat
 
Posts: 382
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 1 time

Re: Need JCL

Postby MrSpock » Sat Sep 26, 2009 5:42 pm

expat wrote:Also, that is often considered impolite to just ask for code without showing the efforts you have made yourself.


...and to do it at least three times each under a different user id. And to keep bumping the post when it hasn't been responded to fast enough...
User avatar
MrSpock
Global moderator
 
Posts: 810
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 2 times


Return to JCL