Inserting the string in an empty PS file by usiing Sortcard



IBM's flagship sort product DFSORT for sorting, merging, copying, data manipulation and reporting. Includes ICETOOL and ICEGENER

Inserting the string in an empty PS file by usiing Sortcard

Postby kabirex » Wed Feb 16, 2011 10:26 am

Hi,

Could pls anyone let me know how to insert a string in empty PS file by using Sortcard? In JCL, the SORTIN should be dummy and SORTOUT should be that empty Ps file in which the string to be inserted.

It would be great if the sample sortcard and jcl is given. Thanks!
kabirex
 
Posts: 4
Joined: Mon Feb 14, 2011 10:03 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Inserting the string in an empty PS file by usiing Sortcard

 

Re: Inserting the string in an empty PS file by usiing Sortc

Postby steve-myers » Wed Feb 16, 2011 10:35 am

What you are saying is you want to write a fixed record to a new dataset. I have to think there are simpler solutions than using a sort product! IEBDG anyone?
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: Inserting the string in an empty PS file by usiing Sortc

Postby kabirex » Wed Feb 16, 2011 1:02 pm

Yes, I wanna write fixed record in a new dataset. Please let me know if there are any solution otherthan sort process. Thanks!
kabirex
 
Posts: 4
Joined: Mon Feb 14, 2011 10:03 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Inserting the string in an empty PS file by usiing Sortc

Postby steve-myers » Wed Feb 16, 2011 7:49 pm

Look at the manual this link points to. You will find at least two programs that will do the task you want. We will not, indeed, we cannot, do your work for you.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: Inserting the string in an empty PS file by usiing Sortc

Postby Frank Yaeger » Thu Feb 17, 2011 12:25 am

kabirex,

You can do this with DFSORT. But you need to give more information. What is the RECFM and LRECL of the output file? What do you want the output record to look like exactly?
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1080
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 14 times

Re: Inserting the string in an empty PS file by usiing Sortc

Postby kabirex » Thu Feb 17, 2011 2:25 pm

Empty PS file's RECFM is FB and lrecl is 80. I wanna insert the string 'SUCCESS' into empty PS file.
kabirex
 
Posts: 4
Joined: Mon Feb 14, 2011 10:03 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Inserting the string in an empty PS file by usiing Sortc

Postby steve-myers » Thu Feb 17, 2011 7:12 pm

kabirex wrote:Empty PS file's RECFM is FB and lrecl is 80. I wanna insert the string 'SUCCESS' into empty PS file.
Look at the manual this link points to. You will find at least two programs that will do the task you want. We will not, indeed, we cannot, do your work for you.
steve-myers
Global moderator
 
Posts: 1886
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 197 times

Re: Inserting the string in an empty PS file by usiing Sortc

Postby skolusu » Thu Feb 17, 2011 10:33 pm

kabirex wrote:Empty PS file's RECFM is FB and lrecl is 80. I wanna insert the string 'SUCCESS' into empty PS file.


Use the following DFSORT JCL

//STEP0100 EXEC PGM=SORT             
//SYSOUT   DD SYSOUT=*               
//SORTIN   DD *                     
//SORTOUT  DD DSN=Your output file,
//            DISP=(NEW,CATLG,DELETE),
//            UNIT=SYSDA,
//            SPACE=(TRK,(1,0),RLSE)
//SYSIN    DD *                     
  SORT FIELDS=COPY                   
  OUTFIL REMOVECC,HEADER1=('SUCCESS')
/*         
Kolusu - DFSORT Development Team (IBM)
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
skolusu
 
Posts: 586
Joined: Wed Apr 02, 2008 10:38 pm
Has thanked: 0 time
Been thanked: 39 times

Re: Inserting the string in an empty PS file by usiing Sortc

Postby Frank Yaeger » Thu Feb 17, 2011 11:51 pm

the SORTIN should be dummy


If you want the SORTIN to be DUMMY instead of DD *, you can use:

//SORTIN DD DUMMY,RECFM=FB,LRECL=80
Frank Yaeger - DFSORT Development Team (IBM) - yaeger@us.ibm.com
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
=> DFSORT/MVS is on the Web at http://www.ibm.com/storage/dfsort
User avatar
Frank Yaeger
Global moderator
 
Posts: 1080
Joined: Sat Jun 09, 2007 8:44 pm
Has thanked: 0 time
Been thanked: 14 times

Re: Inserting the string in an empty PS file by usiing Sortc

Postby kabirex » Tue Feb 22, 2011 5:01 pm

Thank you, Kolusu and Frank.
kabirex
 
Posts: 4
Joined: Mon Feb 14, 2011 10:03 pm
Has thanked: 0 time
Been thanked: 0 time


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post