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

To display my name through JCL


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

New User


Joined: 14 Dec 2006
Posts: 2
Location: Pune

PostPosted: Thu Dec 14, 2006 11:42 am
Reply with quote

Hi,
Can anybody tell me how can i dispaly my name using JCL???

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

New User


Joined: 05 May 2005
Posts: 61

PostPosted: Thu Dec 14, 2006 1:51 pm
Reply with quote

What do u mean by you want to display your name.

If you want to write it in some dataset then use below jcl.

Code:
//SORTIN   DD *                                         
  RAJEN PATEL                                           
//SORTOUT DD DSN=YOURID.NAME.DATASET,             
//               DISP=(NEW,KEEP,DELETE),VOL=SER=ABC002     
//SYSUDUMP DD SYSOUT=H                                   
//SYSOUT   DD SYSOUT=*                                   
//SYSIN    DD *                                         
 SORT FIELDS=COPY                                       
 OUTREC FIELDS=(C'HI SURUCHI. MY NAME IS ',1,13,44X)     
/*                                                       
//


Here output dataset is of LRECL=80.

If you want to see your name in SYSOUT then use below.

Code:
//SORTIN   DD *                                       
  RAJEN PATEL                                         
//SORTOUT  DD SYSOUT=*                               
//*SORTOUT  DD DSN=XUTC536.MYNAME.DIS,               
//*           UNIT=DISK,SPACE=(CYL,(20,5),RLSE),     
//*           DISP=(NEW,KEEP,DELETE),VOL=SER=PCF002   
//SYSUDUMP DD SYSOUT=H                               
//SYSOUT   DD SYSOUT=*                               
//SYSIN    DD *                                       
 SORT FIELDS=COPY                                     
 OUTREC FIELDS=(C'HI SURUCHI. MY NAME IS ',1,13,44X) 
/*                                                   
//



Let me if this satisfy your condition or not.

Thanks,
Rajen.
Back to top
View user's profile Send private message
Suruchi

New User


Joined: 14 Dec 2006
Posts: 2
Location: Pune

PostPosted: Thu Dec 14, 2006 2:10 pm
Reply with quote

I needed the 2nd one.
Thanks Rajen for ur response...

Cheers,
Suruchi..
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 How to display the leading zeros of a... DB2 7
No new posts SDSF display Max-RC in different colors TSO/ISPF 4
No new posts Converting a file from PD to display ... SYNCSORT 4
No new posts Unable to display comp variable COBOL Programming 4
No new posts Adding FIND to ISPF Panel display of ... TSO/ISPF 3
Search our Forums:

Back to Top