View previous topic :: View next topic
|
Author |
Message |
joe12613 Warnings : 1 New User
Joined: 18 Aug 2005 Posts: 2
|
|
|
|
Hi
I would like to know whether it is possible to convert SYSIN data to dataset and execute the JOB. Ex
Code: |
//STEP0200 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SORTIN DD DSN=@PLIN42.TEST.FILE1,DISP=SHR
//SORTOUT DD DSN=@PLIN42.TEST.OFILE1,
// DISP=(,CATLG),SPACE=(TRK,(5,1),RLSE),UNIT=D,
// DCB=(LRECL=10,BLKSIZE=0,RECFM=FB)
//SYSIN DD *
OPTION COPY
INREC FIELDS=(1,3,5,2)
//*
|
From the above Jcl , I wanted to convert SYSIN parameter(OPTION COPY AND INREC FIELDS=(1,3,5,2) to dataset or a contorl card and execute the same JCL. Will it possible ?
Any help would be appreciated
Thanks |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Yes, just put it in a dataset or pds member with a lrecl=80 and change the "//sysin dd *" to "//sysin dd dsn=dataset,disp=shr". |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Probably its time for you to learn basics of JCL.
Give a hit to Manuals tab and go through JCL manuals. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
you can do that , this increase the performance of the job as u need not to change the job, you can just change the member name and things will be more simpler, in good practices its recommended to pass by member |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi
what exactly does this mean, how does it increase the performance of the job ?
Quote: |
this increase the performance of the job as u need not to change the job, you can just change the member name and things will be more simpler |
Gerry |
|
Back to top |
|
|
Ketan Varhade
Active User
Joined: 29 Jun 2009 Posts: 197 Location: Mumbai
|
|
|
|
Hi Gerry ,
Performance in terms of its increases the modularity of the job and hence resulting in more flexible to change and and test. |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Quote: |
increases the modularity of the job and hence resulting in more flexible to change and and test.
|
I guess that doesn't termed as Performance |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Ketan Varhade wrote: |
Hi Gerry ,
Performance in terms of its increases the modularity of the job and hence resulting in more flexible to change and and test. |
What a (expletive deleted) load of bullthis. More flexible to change? You still have to change the member that contains the sort statement, either its name in the JCL or its contents, so it actually makes things more difficult. |
|
Back to top |
|
|
MBabu
Active User
Joined: 03 Aug 2008 Posts: 400 Location: Mumbai
|
|
|
|
This definition of performing better (easier to use by a wide range of users in varied situations) is satisfied well if the step is made into a proc. Then the user simply overrides the SYSIN statement, and possibly other statements, with inline data or a data set. That is the whole reason for procs. So it is half right. |
|
Back to top |
|
|
joe12613 Warnings : 1 New User
Joined: 18 Aug 2005 Posts: 2
|
|
|
|
Thanks to eveybody! |
|
Back to top |
|
|
|