Include (NOT case sensitive)



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

Include (NOT case sensitive)

Postby LasseH » Tue Oct 28, 2014 8:54 pm

Where to put TRAN=LTOU (if that will do the work)
Don't like lower case in JCL if I can avoid it.

Doing a parse to extract a number in a row, the text is partly lower case.

the PARSE looks like this:
//*--------------------------------------------------------   
//* STEPNAME: S020                                           
//* STEPINFO: EXTRACT AMOUNT OF RECORDS IN GBALOG             
//*--------------------------------------------------------   
//S020     EXEC PGM=SORT                                     
//SORTIN   DD *
*** Total of read records:  000000000000321         
*** Records processed    :  000000000000313         
//SYMNAMES DD *                                               
RELREC,C'*** TOTAL OF READ RECORDS:  '                   
THETEXT,01,28,CH                                             
//TOOLMSG  DD SYSOUT=*                                       
//SORTOUT  DD DISP=(NEW,PASS),                               
//            LRECL=015,RECFM=FB,                             
//            SPACE=(TRK,(01,01),RLSE),                       
//            DSN=&&GBACNT                                   
//DFSMSG   DD SYSOUT=*                                       
//SYSOUT   DD SYSOUT=*                                       
//SYSPRINT DD SYSOUT=*                                       
//SYSIN    DD *                                               
  OPTION COPY                                                 
  INREC PARSE=(%=(ENDAT=RELREC),                             
        %00=(STARTAFT=BLANKS,FIXLEN=15)),                     
        BUILD=(%00)                                           
  INCLUDE COND=(THETEXT,EQ,RELREC)                           
//*                                                           


//Lasse
LasseH
 
Posts: 70
Joined: Mon Nov 08, 2010 2:51 pm
Has thanked: 7 times
Been thanked: 1 time

Re: Include (NOT case sensitive)

Postby BillyBoyo » Tue Oct 28, 2014 11:22 pm

The manual tells you where TRAN=LTOU can go, and there is no way around that. INREC will process after INCLUDE COND. No way around that. With your sample, "*** R" will get the hit you want. Is that true for your entire file? You can put SYSIN to a dataset for your testing (I'm assuming it is on a PDSE for Production). Or do the reformatting and use OUTFIL after you've done the lower-casing. INCLUDE COND the "** R" and then INCLUDE= the lower-cased stuff.

Well done for SYMNAMES. But you'll need to type that in mixed-case anyway :-) That can go on another dataset...
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Include (NOT case sensitive)

Postby NicC » Wed Oct 29, 2014 4:18 am

Don't like lower case in JCL if I can avoid it.

It is compulsory for JCL to be in upper case. The interpreter 'barfs' if it find JCL in lower case. (Unless something has changed recently.)
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Include (NOT case sensitive)

Postby LasseH » Wed Oct 29, 2014 1:20 pm

Thanks, will use mixedcase in "searchargument" (Symnames)
//Lasse
LasseH
 
Posts: 70
Joined: Mon Nov 08, 2010 2:51 pm
Has thanked: 7 times
Been thanked: 1 time


Return to DFSORT/ICETOOL/ICEGENER

 


  • Related topics
    Replies
    Views
    Last post