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

AI writing DFSORT, REXX codes..


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Fri Dec 16, 2022 3:04 pm
Reply with quote

Asked Chat GPT AI to write some DFSORT control cards thinking it might not even know what DFSORT is.

"write dfsort cards to include records"

Although not exactly correct, but very impressive. It was able to write REXX, example creating ascii art of a cat etc...

Code:
//SORTJOB JOB (ACCT),'SORT EXAMPLE',MSGCLASS=H
//SORTIN DD DSN=input-file,DISP=SHR
//SORTOUT DD DSN=output-file,DISP=(NEW,CATLG,DELETE),
//            SPACE=(TRK,(50,50)),UNIT=SYSDA
//SYSIN DD *
  SORT FIELDS=(1,5,CH,A)
  INCLUDE COND=(1,EQ,C'ABC',AND,2,GT,100)
  INCLUDE COND=(3,EQ,C'XYZ',AND,4,EQ,C'123')
  OUTFIL REMOVECC,NODETAIL,
         TRAILER1=(COUNT=(M11,LENGTH=8)),
         BUILD=(1,5,6:1,5)
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2141
Location: USA

PostPosted: Fri Dec 16, 2022 5:43 pm
Reply with quote

What it's all about??? icon_rolleyes.gif icon_redface.gif icon_question.gif
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1744
Location: Tirupur, India

PostPosted: Fri Dec 16, 2022 5:48 pm
Reply with quote

It is chatbot but capable of a lot impressive things like writing programs or writing a movie script or having an organic conversation etc ... It's called CHAT GPT
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1337
Location: Bamberg, Germany

PostPosted: Fri Dec 16, 2022 5:55 pm
Reply with quote

The Bot should obey the sequence of statements, and try to avoid duplicate includes. Otherwise some of us will complain.

Code:
            INCLUDE COND=(1,1,CH,EQ,C'A)             
                                                     
ICE007A 0 SYNTAX ERROR                               
            INCLUDE COND=(1,1,CH,EQ,C'B)             
ICE002I 0 DUPLICATE OR CONFLICTING INCLUDE  STATEMENT
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Run rexx with JCL Job CLIST & REXX 1
No new posts Run rexx in batch job CLIST & REXX 7
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
No new posts REXX/CMS How to place command console... CLIST & REXX 4
Search our Forums:

Back to Top