IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

CONVERT SYSIN TO A DATASET


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
joe12613
Warnings : 1

New User


Joined: 18 Aug 2005
Posts: 2

PostPosted: Sat Sep 05, 2009 1:17 am
Reply with quote

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 ? icon_rolleyes.gif

Any help would be appreciated
Thanks
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat Sep 05, 2009 1:32 am
Reply with quote

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
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Sat Sep 05, 2009 11:34 am
Reply with quote

Probably its time for you to learn basics of JCL.

Give a hit to Manuals tab and go through JCL manuals.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Sep 05, 2009 2:42 pm
Reply with quote

This is an online-interactive-web-enabled-IBM-JCL Course - on an IBM website, hosted, sponsered and maintained by IBM.
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Sun Sep 06, 2009 12:57 am
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Sun Sep 06, 2009 2:56 pm
Reply with quote

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
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Sun Sep 06, 2009 8:40 pm
Reply with quote

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
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Sun Sep 06, 2009 10:27 pm
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Mon Sep 07, 2009 12:07 am
Reply with quote

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
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Mon Sep 07, 2009 7:19 am
Reply with quote

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
View user's profile Send private message
joe12613
Warnings : 1

New User


Joined: 18 Aug 2005
Posts: 2

PostPosted: Sun Sep 13, 2009 5:55 am
Reply with quote

Thanks to eveybody!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top