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
 
Common control card which reformats all the input files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ihatesugar
Warnings : 1

New User


Joined: 22 Oct 2006
Posts: 43

PostPosted: Wed Mar 28, 2007 5:34 pm    Post subject: Common control card which reformats all the input files
Reply with quote

Hi,

I have 4 input files, which needs to be reformatted.
Is there any way of specifying a common control card which reformats all the input files and produce corresponding 4 output files?
I mean, a single step which uses a single control card which reformats 4 input files to 4 output files.

This is just for learning. is it possible to do so?
Your inputs will be valuable.

Thanks
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Mar 28, 2007 5:48 pm    Post subject:
Reply with quote

Its possible with ICETOOL.

Sample JCL -

Code:
//SAMPSTEP EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//*
//IPFILE1 DD DSN=YOUR.FIRST.IPFILE,DISP=SHR   ASSUME LRECL=100
//OPFILE1 DD DSN=YOUR.FIRST.OPFILE,DISP=....,
//       LRECL=80,..........
//*
//IPFILE2 DD DSN=YOUR.SECOND.IPFILE,DISP=SHR   ASSUME LRECL=120
//OPFILE2 DD DSN=YOUR.SECOND.OPFILE,DISP=....,
//       LRECL=10,..........
//*
//TOOLIN DD *

** FOR FIRST FILE
     COPY FROM(IPFILE1) TO(OPFILE1) USING(FRST)
** SECOND FILE
     COPY FROM(IPFILE2) TO(OPFILE2) USING(SECN)
/*
//*
//FRSTCNTL  DD *
  OUTREC FIELDS=(1,80)   * FIRST 80 BYTEST
/*
//SECNCNTL DD *
  OUTREC FIELDS=(1,10)   * FIRST 10 BYTEST
/*
Back to top
View user's profile Send private message
ihatesugar
Warnings : 1

New User


Joined: 22 Oct 2006
Posts: 43

PostPosted: Wed Mar 28, 2007 7:16 pm    Post subject: Re: SORT
Reply with quote

Thanks for the quick response.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts SORT Trailer Count - LRECL Output co... amorante DFSORT/ICETOOL 5 Tue Aug 29, 2017 8:57 pm
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 5 Sat Aug 19, 2017 2:33 pm

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