View previous topic :: View next topic
Author
Message
vasanthz Global Moderator Joined: 28 Aug 2007Posts: 1743 Location: Tirupur, India
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
sergeyken Senior Member Joined: 29 Apr 2008Posts: 2088 Location: USA
Back to top
vasanthz Global Moderator Joined: 28 Aug 2007Posts: 1743 Location: Tirupur, India
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
Joerg.Findeisen Senior Member Joined: 15 Aug 2015Posts: 1295 Location: Bamberg, Germany
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
Please enable JavaScript!