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

control card in jcl with fileaid


IBM Mainframe Forums -> Compuware & Other Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
varalakshmi.G

New User


Joined: 04 Jun 2007
Posts: 55
Location: Hyderabad

PostPosted: Fri Nov 16, 2007 2:44 pm
Reply with quote

hi ,

this control card is giving me erro.can any one help me out

$$DD01 OPTION COPY
OUTREC IFTHEN=(WHEN=(46,1,CH,NOT EQ,C' '),AND,
(1,1,CH,EQ,C'0'),
OVERLAY=(1:C' '))


problem: i need to check the coloum 46 for non-blank charector and also the ist coloumn equal to zero then replace the outfile of ist coloumn with space.

iam getting the error that no valid function in control card. i am using fileaid for copying.


can any one help me out.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Nov 16, 2007 2:54 pm
Reply with quote

Lakshmi,

Quote:
$$DD01 OPTION COPY
OUTREC IFTHEN=(WHEN=(46,1,CH,NOT EQ,C' '),AND,
(1,1,CH,EQ,C'0'),
OVERLAY=(1:C' '))

Wow!!!! good control card which uses FA as well as SORT statements.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Nov 16, 2007 3:06 pm
Reply with quote

Lakshmi,

Try the following -

Code:
  SORT FIELDS=COPY                                         
  INREC IFTHEN=(WHEN=(46,1,CH,EQ,X'40',AND,1,1,CH,EQ,C'0'),
                 OVERLAY=(1:X'40'))
Back to top
View user's profile Send private message
varalakshmi.G

New User


Joined: 04 Jun 2007
Posts: 55
Location: Hyderabad

PostPosted: Fri Nov 16, 2007 3:11 pm
Reply with quote

but this control card giving error

like no valid function
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Nov 16, 2007 3:13 pm
Reply with quote

Lakshmi,

The control card provided use SORT utility not FA.
Back to top
View user's profile Send private message
varalakshmi.G

New User


Joined: 04 Jun 2007
Posts: 55
Location: Hyderabad

PostPosted: Fri Nov 16, 2007 3:16 pm
Reply with quote

please suggest me with fileaid utility
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Nov 16, 2007 3:18 pm
Reply with quote

Lakshmi,

Execute a SORT utility and not FA.

Murali,

Lakshmi wrote:
Quote:
coloum 46 for non-blank charector


The control card should be

Code:
SORT FIELDS=COPY                                               
INREC IFTHEN=(WHEN=(46,1,CH,NE,X'40',AND,1,1,CH,EQ,C'0'),     
               OVERLAY=(1:X'40'))                             
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Nov 16, 2007 3:20 pm
Reply with quote

Aaru,

Good point.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Fri Nov 16, 2007 3:51 pm
Reply with quote

Varalakshmi,

Use this FA JCL for your requirement.

Code:
//SYSIN    DD  *                             
$$DD01 COPY IF=(1,EQ,C'0'),                   
            AND=(46,NE,X'40'),               
            REPL=(1,X'40')                   
/*                                           
Back to top
View user's profile Send private message
varalakshmi.G

New User


Joined: 04 Jun 2007
Posts: 55
Location: Hyderabad

PostPosted: Fri Nov 16, 2007 6:47 pm
Reply with quote

Hi Aaru,

My Problem was resolved with your JCL.
Thanks for your help.

Regards,
Lakshmi
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Sat Nov 17, 2007 9:41 pm
Reply with quote

Glad that i was able to help you icon_biggrin.gif
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 -> Compuware & Other Tools

 


Similar Topics
Topic Forum Replies
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Generate output lines (SYSIN card for... DFSORT/ICETOOL 4
No new posts Need suggestion on a sort card DFSORT/ICETOOL 10
Search our Forums:

Back to Top