Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

pseudo code for a CLIST

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
mavesum

New User


Joined: 17 Nov 2008
Posts: 4
Location: United states

PostPosted: Fri Dec 12, 2008 4:50 pm    Post subject: pseudo code for a CLIST
Reply with quote

Hi All,

CLIST is new to me . I have a simple CLIST which according to its developer "TEST A GDG GENERATION FOR EXISTANCE"

This is the CLIST . I am not able to understand the synatx , could anyone please explain me this in pseudo code.

Code:
SET &A = &STR(PRODGA.GL.DTL&GLCOY)
CONTROL MSG LIST
SET &SYSOUTTRAP = 102
LISTCAT LVL('&A')
IF &LASTCC < 4 THEN +
    IF &SYSOUTLINE < 100 THEN DO
        SET &B = &GDGMAX * 2 + 2
        IF &B > &SYSOUTLINE THEN +
            SET &LASTCC = 4
        END
    ELSE
ELSE +
    SET &LASTCC = 4
END


"Code"d for readability
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Dec 12, 2008 8:32 pm    Post subject: Reply to: pseudo code for a CLIST
Reply with quote

I don't know CLIST very well either, but I don't understand what it's trying to do either. It might help if you would post a runtime output of the CLIST with all diagnostic traces active.

I get an error because the variables &GLCOY and &GDGMAX have no values.

You usually use the IDCAMS LISTCAT command with the LVL parameter when you want to list all of the generations that belong to the given base entry. You usually use the IDCAMS LISTCAT command with the ENT parameter for a single generation.
Back to top
View user's profile Send private message
mavesum

New User


Joined: 17 Nov 2008
Posts: 4
Location: United states

PostPosted: Fri Dec 12, 2008 9:53 pm    Post subject:
Reply with quote

Thnx Kevin for writing ...I just have this CLIST .Actually i need to rewrite this CLIST in some other language for which I must understand what exactly it does .

I can provide you the JCL which is calling this CLIST

//XXXXXB JOB (ACCT0000000),'GAD826J',PRTY=2,
)SEL &OFFPEAK=Y
// CLASS=O
)ENDSEL
)SEL &OFFPEAK^=Y
// CLASS=4
)ENDSEL
//*
//JESA OUTPUT CLASS=A
//JESU OUTPUT CLASS=U
//JESDS1 OUTPUT CLASS=U,JESDS=ALL
//*
//* SKELETON JCL FOR THE NATURAL ON-LINE GASS PROGRAM
//* GAD826P6. TWO NATURAL PROGRAMS, GAD826P7 AND GAD826P8,
//* ARE SUBMITTED FROM THIS JCL.
//*
//STEP01 EXEC PGM=IKJEFT01
//SYSPROC DD DSN=SYS2.AGL.CLIST,DISP=SHR
//SYSTSPRT DD SYSOUT=(,),OUTPUT=*.JESU
//SYSTSIN DD *
%AGLGAD01 &GDGMAX &GLCOY
/*
Back to top
View user's profile Send private message
mavesum

New User


Joined: 17 Nov 2008
Posts: 4
Location: United states

PostPosted: Fri Dec 12, 2008 9:54 pm    Post subject:
Reply with quote

AGLGAD01 is the CLIST
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2025
Location: Silicon Valley

PostPosted: Fri Dec 12, 2008 10:14 pm    Post subject: Reply to: pseudo code for a CLIST
Reply with quote

SET is for assigning a value to a variable.

Surely you can figure out the IF / THEN and ELSE statements.
Likewise, you should be able to match up the DO and END statements.

Search the CLIST manual for SYSOUTTRAP.

What is left that you do not understand?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts PL/I code tuning/Performance improvement Virendra Shambharkar PL/I & Assembler 4 Mon Dec 05, 2016 11:57 am
No new posts What is the code in CLIST to enable t... jackzhang75 CLIST & REXX 1 Fri Dec 02, 2016 3:02 am
No new posts IDEAL - Code Retrieval yugendran CA Products 0 Fri Nov 25, 2016 3:27 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us